Schroedingers files. Both there and not there.

Mattias Lindgren mlindgren at runelind.net
Mon Mar 16 21:30:38 UTC 2015


I’ve been having some issues over the past few months that I’m finally getting around to troubleshooting. I’m running FreeBSD 10.1-p5 with ZFS.  My nightly emails have been giving me output like:

Checking setuid files and devices:
find: /usr/include/dev/an_bak/if_aironet_ieee.h: No such file or directory

Checking negative group permissions:
find: /usr/include/dev/an_bak/if_aironet_ieee.h: No such file or directory
The reason for it being called an_bak is that the original file used to have the same errors, so I moved that directory and extracted a known good version of if_aironet_ieee.h. However now I’d just like to clean out the bad file.  
If I do an rm -rf on the file, it kicks me back to the command prompt like everything worked successfully, however if I ls that directory, it still shows up:
$ ls /usr/include/dev/an_bak/ if_aironet_ieee.h $ sudo rm -rf /usr/include/dev/an_bak/if_aironet_ieee.h $ ls /usr/include/dev/an_bak/ if_aironet_ieee.h
However, ls -al shows a different output:
$ ls -al /usr/include/dev/an_bak/ ls: if_aironet_ieee.h: No such file or directory total 17 drwxr-xr-x 2 root wheel 3 Dec 21 20:32 . drwxr-xr-x 31 root wheel 31 Mar 16 15:26 ..
I can move the an_bak folder to a different name within the same pool. However I cannot move that folder to a different zfs pool. I can not move just the file, either within the same pool or to a different pool.
This is only one of the files that is giving me the problem, the daily output also lists a few others, but they all exhibit the same behavior.
I tried sending the zfs dataset to another pool, and it exhibited the same problem. A scrub has not revealed any issues.  
Thanks,
Mattias





More information about the freebsd-bugs mailing list