zfs snapdir: from hidden to visible and back again

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Nov 17 06:15:46 PST 2008


On Mon, Nov 17, 2008 at 01:57:28PM +0200, Andriy Gapon wrote:
> on 17/11/2008 06:31 Pawel Jakub Dawidek said the following:
> > On Fri, Nov 14, 2008 at 04:07:29PM +0200, Andriy Gapon wrote:
> >> on 14/11/2008 14:37 Andriy Gapon said the following:
> >>> Also, even with snapdir=hidden, I still can list snapshots (their
> >>> contents) if I ls full path with .zfs in it.
> >>> Is this right?
> >> And it seems that any snapshot accessed in this way gets automatically
> >> added to mounts. This doesn't seem to be reasonable.
> >>
> >> For example, periodic security script would report suid binaries found
> >> in these snapshots, etc.
> > 
> > Everything you described is expected behaviour.
> > 
> 
> I see. I guess there is no way to access something without mounting and
> no way to auto-unmount after use.
> Thanks.

You can setup a cron job which will try to unmount all the snapshots
every few minutes. If something is using the snapshot, unmount should
fail.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20081117/2bdeb750/attachment.pgp


More information about the freebsd-fs mailing list