Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2008 15:15:23 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-fs@FreeBSD.org
Subject:   Re: zfs snapdir: from hidden to visible and back again
Message-ID:  <20081117141523.GB2101@garage.freebsd.pl>
In-Reply-To: <49215C28.1020405@icyb.net.ua>
References:  <491D710A.9090308@icyb.net.ua> <491D8621.40101@icyb.net.ua> <20081117043042.GA2101@garage.freebsd.pl> <49215C28.1020405@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--PuGuTyElPB9bOcsM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=3Dhidden, 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.
> >=20
> > Everything you described is expected behaviour.
> >=20
>=20
> 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.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--PuGuTyElPB9bOcsM
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFJIXx6ForvXbEpPzQRArpvAJ9WK5J5WTZtlqAeWJUWiJO2jgjYigCgpJ2R
Z4YyBMC/P1emLEi462ZO6QI=
=yFXy
-----END PGP SIGNATURE-----

--PuGuTyElPB9bOcsM--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081117141523.GB2101>