Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2018 10:00:40 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Dave Baukus <daveb@spectralogic.com>, "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>
Subject:   Re: ZFS file in a snapshot with a link count of 0
Message-ID:  <9c88705f-8af5-bf03-aa6b-fe4ecbad50e8@FreeBSD.org>
In-Reply-To: <dcf02d30-a871-a5e4-b893-8eb85e8d8fd1@spectralogic.com>
References:  <dcf02d30-a871-a5e4-b893-8eb85e8d8fd1@spectralogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@snapF1 pool0/vol0@snapF2
> Unable to determine path or stats for object 1030 in pool0/vol0@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9c88705f-8af5-bf03-aa6b-fe4ecbad50e8>