Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Nov 2020 18:56:52 +0300
From:      Mehmet Erol Sanliturk <m.e.sanliturk@gmail.com>
To:        gljennjohn@gmail.com
Cc:        Ali Abdallah <ali.abdallah@suse.com>, freebsd-fs@freebsd.org
Subject:   Re: Cannot remove zfs empty directory
Message-ID:  <CAOgwaMsD4EcX%2BsJXy%2Bj2Jf4UYO60knvigdkhYJVNEKnFOnvEDQ@mail.gmail.com>
In-Reply-To: <20201106152008.2e78020f@ernst.home>
References:  <20201106140501.kdlrytkjtqzuyd5t@frix230> <20201106152008.2e78020f@ernst.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 6, 2020 at 6:20 PM Gary Jennejohn <gljennjohn@gmail.com> wrote:

> On Fri, 6 Nov 2020 15:05:01 +0100
> Ali Abdallah <ali.abdallah@suse.com> wrote:
>
> > Hello,
> >
> > I'm having a strange issue deleting an empty folder on the zfs
> > dataset zroot/usr/home
> >
> > $ cd $HOME/.cache/chromium/Default
> > $ ls -la
> > drwx------  3 ali  ali  3 Nov  6 14:40 ./
> > drwx------  3 ali  ali  3 Nov  6 14:33 ../
> > drwxr-xr-x  2 ali  ali  4 Oct 19 11:30 cache/
> > $ rm -rf cache
> > rm: cache/: Directory not empty
> >
> > $ ls -ld cache
> > drwxr-xr-x  2 ali  ali  4 Oct 19 11:30 cache/
> >
> > the size is 4, which is strange since the directory looks totally empty.
> >
> > ls -la cache/
> > drwxr-xr-x  2 ali  ali  4 Oct 19 11:30 ./
> > drwx------  3 ali  ali  3 Nov  6 14:40 ..
> >
> > I don't have chromium since long time, originally the machine was
> > running FreeBSD 12.1 (now running FreeBSD 12.2), but the issue was
> > present before the upgrade.
> >
> > zpool status -v gives not errors at all.
> >
> > It is not a big deal, but just trying to understand what is happening
> > here.
> >
>
> Try ls -lo.  There might be some chflags(1) flags set which prevent
> deletion.
>
> --
> Gary Jennejohn
> _______________________________________________
>
>

Also there may be a file with a "blank" name .


Mehmet Erol Sanliturk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOgwaMsD4EcX%2BsJXy%2Bj2Jf4UYO60knvigdkhYJVNEKnFOnvEDQ>