Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Mar 2002 23:46:44 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Robert Watson <rwatson@FreeBSD.ORG>
Cc:        Kirk McKusick <mckusick@beastie.mckusick.com>, arch@FreeBSD.ORG
Subject:   Re: UFS snapshots in current
Message-ID:  <p05101503b8cd959547dc@[128.113.24.47]>
In-Reply-To: <Pine.NEB.3.96L.1020331214715.73912i-100000@fledge.watson.org>
References:  <Pine.NEB.3.96L.1020331214715.73912i-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 9:48 PM -0500 3/31/02, Robert Watson wrote:
>On Sun, 31 Mar 2002, Garance A Drosihn wrote:
>
>  > Hmm.  Is there any way for a regular user-land process to
>  > tell if a given file is a snapshot?  Something in the stat()
>  > info, or some other way to tell?
>
>Look for the SF_SNAPSHOT flag.  I don't recall if this is
>exported via the flags field via stat(), but it may well be.

It looks like it is.  In fact, it looks like we could just
change fflagstostr() to check for it, and 'ls -lo' would show
'snap' in the field of interesting flags.  This might be a
good idea, since a snapshot file is (I assume) truly
read-only. (I assume it's like schg, except that you can't
even use chflags to make it writable).

-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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