ZFS file in a snapshot with a link count of 0

Andriy Gapon avg at FreeBSD.org
Fri Jun 22 07:00:46 UTC 2018


On 22/06/2018 02:25, Dave Baukus wrote:
> On a ZFS running something very close to 11.0-STABLE FreeBSD, I am able to get a
> file with a link count of 0 into a snapshot. If this file also has an extattr attached to it then
> this file appears to break zfs diff.
> 
> The main question is: should a file with a link count of 0 get into the snap shot ?

Yes.  The file is on disk, so it's in the snapshot as well.

> #
> zfs diff pool0/vol0 at snapF1 pool0/vol0 at snapF2
> Unable to determine path or stats for object 1030 in pool0/vol0 at snapF1: No such file or directory

Is this a fatal error or merely a warning?
If the former, then it needs to be fixed in zfs diff.


-- 
Andriy Gapon


More information about the freebsd-fs mailing list