rm cannot recursively delete directory on tmpfs on RPi2
Jia-Shiun Li
jiashiun at gmail.com
Fri Dec 7 05:34:14 UTC 2018
On Fri, Dec 7, 2018 at 12:36 AM Alan Somers <asomers at freebsd.org> wrote:
> On Wed, Dec 5, 2018 at 10:18 PM Jia-Shiun Li <jiashiun at gmail.com> wrote:
> >
> > amd64 and RPi3 do not have this issue.
> >
> > jsli at rpi2:/home/jsli 13:04 # uname -a
> > FreeBSD rpi2 13.0-CURRENT FreeBSD 13.0-CURRENT r341419 GENERIC-NODEBUG
> arm
> > jsli at rpi2:/home/jsli 13:05 # mount -t tmpfs tmpfs /mnt
> > jsli at rpi2:/home/jsli 13:05 # cd /mnt
> > jsli at rpi2:/mnt 13:05 # tar xf
> > /usr/ports/distfiles/sqlite-autoconf-3260000.tar.gz
> > jsli at rpi2:/mnt 13:05 # rm -rf sqlite-autoconf-3260000/
> > rm: sqlite-autoconf-3260000/tea: Operation not permitted
> > rm: sqlite-autoconf-3260000/: Directory not empty
> > jsli at rpi2:/mnt 13:05 #
> >
> > -Jia-Shiun
>
> Did you check for file flags? Do "ls -lod sqlite-autoconf-3260000/tea".
>
>
Unlikely caused by flags I think.
jsli at rpi2:/home/jsli # mount -t tmpfs tmpfs /mnt
jsli at rpi2:/home/jsli # cd /mnt
jsli at rpi2:/mnt # ls -R
jsli at rpi2:/mnt # mkdir dir
jsli at rpi2:/mnt # ls -R
dir/
ls: dir: directory causes a cycle
jsli at rpi2:/mnt #
looks inode no for directories are wrong
jsli at rpi2:/mnt # ll -ia
total 4
2 drwxr-xr-x 3 root wheel 36 Dec 7 09:55 ./
2 drwxr-xr-x 23 root wheel 512 Dec 3 17:04 ../
2 drwxr-xr-x 2 root wheel 0 Dec 7 09:55 dir/
jsli at rpi2:/mnt # ll -ia dir
total 0
2 drwxr-xr-x 2 root wheel 0 Dec 7 09:55 ./
2 drwxr-xr-x 3 root wheel 36 Dec 7 09:55 ../
jsli at rpi2:/mnt #
-Jia-Shiun
More information about the freebsd-current
mailing list