Cannot remove zfs empty directory
Andriy Gapon
avg at FreeBSD.org
Fri Nov 6 21:50:20 UTC 2020
On 06/11/2020 16:05, Ali Abdallah 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.
Yet another suggestion, find inode number of the directory and its zfs dataset
name, then do zdb -dddd <dataset> <inum>.
--
Andriy Gapon
More information about the freebsd-fs
mailing list