[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-fs
Subject:    Re: zfs snapdir: from hidden to visible and back again
From:       Pawel Jakub Dawidek <pjd () freebsd ! org>
Date:       2008-11-17 14:15:23
Message-ID: 20081117141523.GB2101 () garage ! freebsd ! pl
[Download RAW message or body]


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@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic