From owner-cvs-all Wed Jul 26 16: 7: 6 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 1F8F637BFD7; Wed, 26 Jul 2000 16:07:02 -0700 (PDT) (envelope-from mckusick@FreeBSD.org) Received: (from mckusick@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA93463; Wed, 26 Jul 2000 16:07:01 -0700 (PDT) (envelope-from mckusick@FreeBSD.org) Message-Id: <200007262307.QAA93463@freefall.freebsd.org> From: Kirk McKusick Date: Wed, 26 Jul 2000 16:07:01 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ffs ffs_inode.c ffs_snapshot.c src/sys/ufs/ufs ufs_lookup.c ufs_vnops.c src/sys/vm vm_mmap.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG mckusick 2000/07/26 16:07:01 PDT Modified files: sys/ufs/ffs ffs_inode.c ffs_snapshot.c sys/ufs/ufs ufs_lookup.c ufs_vnops.c sys/vm vm_mmap.c Log: Clean up the snapshot code so that it no longer depends on the use of the SF_IMMUTABLE flag to prevent writing. Instead put in explicit checking for the SF_SNAPSHOT flag in the appropriate places. With this change, it is now possible to rename and link to snapshot files. It is also possible to set or clear any of the owner, group, or other read bits on the file, though none of the write or execute bits can be set. There is also an explicit test to prevent the setting or clearing of the SF_SNAPSHOT flag via chflags() or fchflags(). Note also that the modify time cannot be changed as it needs to accurately reflect the time that the snapshot was taken. Submitted by: Robert Watson Revision Changes Path 1.64 +4 -1 src/sys/ufs/ffs/ffs_inode.c 1.4 +7 -9 src/sys/ufs/ffs/ffs_snapshot.c 1.38 +15 -1 src/sys/ufs/ufs/ufs_lookup.c 1.141 +15 -5 src/sys/ufs/ufs/ufs_vnops.c 1.115 +2 -2 src/sys/vm/vm_mmap.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message