Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Sep 2023 15:02:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 273858] zfs: a directory can't be removed and nothing can be created in it, but it can be moved
Message-ID:  <bug-273858-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 273858
           Summary: zfs: a directory can't be removed and nothing can be
                    created in it, but it can be moved
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org

I'm on 13.2-RELEASE. By accident, I had removed /usr/local. I restored it f=
rom
a backup. However, I discovered that /usr/local/etc/openvpn didn't get
restored. I'm not sure whether it was at first even removed.
Now, manually restoring it from .zfs/snapshots doesn't work. cp, rsync etc.
don't return error, but the files are not created. Even creating empty file=
s in
openvpn directory doesn't cause error, but the files are not created (with
touch).
Removing the directory also doesn't return error, but the directory is not
removed.
However, it can be moved (also to another directory, but only in the same
filesystem) and renamed.
I renamed it to openvpn2.

root@serwer:$/usr/local/etc$ find openvpn2
openvpn2
find: openvpn2: No such file or directory
root@serwer:$/usr/local/etc$ rmdir openvpn2
rmdir: openvpn2: Directory not empty
root@serwer:$/usr/local/etc$ rm -rf openvpn2
root@serwer:$/usr/local/etc$ ls openvpn2
root@serwer:$/usr/local/etc$ touch openvpn2/test
root@serwer:$/usr/local/etc$ ls openvpn2
root@serwer:$/usr/local/etc$ mv openvpn2 /tmp
mv: openvpn2: No such file or directory
mv: /bin/cp openvpn2 /tmp/openvpn2: terminated with 1 (non-zero) status

--=20
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-273858-227>