| Summary: | zfs: a directory can't be removed and nothing can be created in it, but it can be moved | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Piotr Kubaj <pkubaj> |
| Component: | kern | Assignee: | freebsd-fs (Nobody) <fs> |
| Status: | Open --- | ||
| Severity: | Affects Only Me | CC: | jfc |
| Priority: | --- | ||
| Version: | 13.2-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Piotr Kubaj
2023-09-16 15:02:49 UTC
I also tried moving openvpn2 to a newly created directory and removing that directory along with openvpn2. Here's what happened: root@serwer:$/usr/local/etc$ mkdir tmp root@serwer:$/usr/local/etc$ mv openvpn2 tmp/ root@serwer:$/usr/local/etc$ ls -l tmp total 5 drwxr-xr-x 5 root wheel 11 Sep 16 17:02 openvpn2 root@serwer:$/usr/local/etc$ find tmp tmp tmp/openvpn2 find: tmp/openvpn2: No such file or directory root@serwer:$/usr/local/etc$ rm -rf tmp rm: tmp: Directory not empty root@serwer:$/usr/local/etc$ ls -l tmp total 5 drwxr-xr-x 5 root wheel 11 Sep 16 17:02 openvpn2 Can you run stat . openvpn2 so we can see if there are any unusual flags on openvpn2, and whether it is considered to be on the same filesystem as its parent directory? The output is: 9613343378317154166 3880 drwxr-xr-x 22 root wheel 18446744073709551615 55 "Nov 13 19:40:46 2015" "Sep 16 22:08:34 2023" "Sep 16 22:08:34 2023" "Nov 13 19:40:46 2015" 4608 11 0x800 . 9613343378317154166 1783842 drwxr-xr-x 5 root wheel 18446744073709551615 11 "Nov 26 13:26:37 2015" "Sep 16 17:02:01 2023" "Sep 16 22:08:31 2023" "Nov 26 13:26:37 2015" 4096 10 0x800 openvpn2 I'm not sure why, but today I managed to remove the openvpn2 directory on the first attempt after not trying since reporting this bug. I'm 100% positive there was an issue, but it seems to be no more. |