Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Mar 2002 22:07:08 -0800
From:      Kirk McKusick <mckusick@beastie.mckusick.com>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        arch@FreeBSD.ORG
Subject:   Re: UFS snapshots in current 
Message-ID:  <200204010607.g31678D07951@beastie.mckusick.com>
In-Reply-To: Your message of "Sun, 31 Mar 2002 21:12:13 EST." <p05101501b8cd700e7c76@[128.113.24.47]> 

next in thread | previous in thread | raw e-mail | index | archive | help
	Date: Sun, 31 Mar 2002 21:12:13 -0500
	To: Kirk McKusick <mckusick@beastie.mckusick.com>
	From: Garance A Drosihn <drosih@rpi.edu>
	Subject: Re: UFS snapshots in current
	Cc: arch@FreeBSD.ORG

	At 2:14 PM -0800 3/31/02, Kirk McKusick wrote:

	>On your final question about making a pax archive, if you make
	>an archive of the real filesystem, the snapshot will show up
	>on the archive as a file the size of the filesystem partition.
	>If you mount the snapshot and then make an archive of that
	>filesystem, then the snapshot(s) in the archive will show up
	>as zero length files.

	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?  I have no urgent need for it, but
	it seems like it would be useful.

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

You can determine if a file is a snapshot by doing a stat
and checking for the SF_SNAPSHOT bit being set in the
st_flags field.

	Kirk McKusick

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?200204010607.g31678D07951>