Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Nov 2015 16:55:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 204337] ZFS can have a non-empty directory, but the files don't exist.
Message-ID:  <bug-204337-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204337

            Bug ID: 204337
           Summary: ZFS can have a non-empty directory, but the files
                    don't exist.
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-fs@FreeBSD.org
          Reporter: Andrew@FreeBSD.org

I can easily get ZFS into a state where a directory is empty, but the files
within it don't exist. I can reproduce this by extracting base.txz from a
weekly snapshot. When I extract the tarball I got:

root@cavium:/tank/andrew # tar -xpf base.txz -C /tank/andrew/test/
./usr/share/man/man3/remainderl.3.gz: Can't create
'usr/share/man/man3/remainderl.3.gz'
./usr/share/man/man3/jdate.3.gz: Can't create 'usr/share/man/man3/jdate.3.gz'
./usr/share/man/man3/archive_write_add_filter_xz.3.gz: Can't create
'usr/share/man/man3/archive_write_add_filter_xz.3.gz'
...
./usr/share/man/man3/winnstr.3.gz: Can't create
'usr/share/man/man3/winnstr.3.gz'
./usr/share/man/man3/dwarf_func_cu_offset.3.gz: Can't create
'usr/share/man/man3/dwarf_func_cu_offset.3.gz'
./usr/share/man/man3/remainder.3.gz: Can't create
'usr/share/man/man3/remainder.3.gz'
tar: Error exit delayed from previous errors.

I've trimmed most of the errors as there were over 1000 lines. When I tried to
remove the test directory I got:

root@cavium:/tank/andrew # rm -fr test
rm: test/usr/share/man/man3: Directory not empty
rm: test/usr/share/man: Directory not empty
rm: test/usr/share: Directory not empty
rm: test/usr: Directory not empty
rm: test: Directory not empty
root@cavium:/tank/andrew # ls -lh test/usr/share/man/man3
ls: MD4FileChunk.3.gz: No such file or directory
ls: catanf.3.gz: No such file or directory
ls: gelf_getmove.3.gz: No such file or directory
ls: krb5_config_vget_strings.3.gz: No such file or directory
ls: quota_read.3.gz: No such file or directory
ls: rpc_clnt_create.3.gz: No such file or directory
ls: ufs_disk_close.3.gz: No such file or directory
ls: wcslcpy.3.gz: No such file or directory
total 0

Nether remounting, or rebooting fixed the error, it seems to be an issue in the
disk.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204337-3630>