[Bug 273858] zfs: a directory can't be removed and nothing can be created in it, but it can be moved
Date: Sat, 16 Sep 2023 15:02:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273858
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 from
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 files 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
--
You are receiving this mail because:
You are the assignee for the bug.