From bernd@heitec.net  Mon May  2 11:37:28 2005
Return-Path: <bernd@heitec.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 613E116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 May 2005 11:37:28 +0000 (GMT)
Received: from christel.heitec.net (christel.heitec.net [62.206.253.11])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 696DD43D39
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 May 2005 11:37:27 +0000 (GMT)
	(envelope-from bernd@heitec.net)
Received: from tostan.admin.er.heitec.net (paladin.heitec.net [62.206.253.14])
	by christel.heitec.net (Postfix) with ESMTP id 96DE8A8937
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 May 2005 13:20:08 +0200 (CEST)
Received: (from bernd@localhost)
	by tostan.admin.er.heitec.net (8.13.3/8.13.1/Submit) id j42BK8Jc094670;
	Mon, 2 May 2005 13:20:08 +0200 (CEST)
	(envelope-from bernd)
Message-Id: <200505021120.j42BK8Jc094670@tostan.admin.er.heitec.net>
Date: Mon, 2 May 2005 13:20:08 +0200 (CEST)
From: Bernd Luevelsmeyer <bernd@heitec.net>
Reply-To: Bernd Luevelsmeyer <bdluevel@heitec.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: filesystem snapshots are not "frozen"
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80533
>Category:       docs
>Synopsis:       filesystem snapshots are not "frozen"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 02 11:40:02 GMT 2005
>Closed-Date:    Thu Jun 16 03:20:22 GMT 2005
>Last-Modified:  Thu Jun 16 03:20:22 GMT 2005
>Originator:     Bernd Luevelsmeyer
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD 5.4-STABLE

>Description:
The handbook tells, for mounted filesystem snapshots, that
"Everything will be in the same state it was during the snapshot
creation time."

This is misleading. While the original snapshot will indeed have
the creation time contents, this may change after mounting it.
Users have the same permissions in the mounted snapshot filesystem
as they have in the "real" filesystem. Unless the snapshot is mounted
readonly, they can easily modify, delete or create files there. The
snapshot is in no way a "frozen" image of the snapshot creation time.

>How-To-Repeat:
I create a file as user "bernd", then take a snapshot as root, then
modify the snapshot's file as user.

$ cd /home/bernd
$ mkdir test
$ echo hello > test/file
$ cat test/file
hello
$ su -m
Password:
# mksnap_ffs /home /home/snap
# mdconfig -a -t vnode -f /home/snap
md12
# mount /dev/md12 /mnt
# cat /mnt/bernd/test/file
hello
# exit
$ echo world > /mnt/bernd/test/file
$ cat /mnt/bernd/test/file
world

>Fix:
Change the "will be in the same state" sentence from the handbook to
"will initially be in the same state".
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hmp 
State-Changed-When: Thu Jun 16 03:20:09 GMT 2005 
State-Changed-Why:  
Committed.  Thanks Bernd! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=80533 
>Unformatted:
