aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2000-07-06 01:50:05 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2000-07-06 01:50:05 +0000
commit115f72d0d8bcf0cf44c6b7b25cb092ff0e11a235 (patch)
tree58cd28b00233634c9d1fd0110155837ffd3bb079 /sbin/mount
parent5bca844f391e65db619d1b4e997bdf5fd84c70cf (diff)
downloadsrc-115f72d0d8bcf0cf44c6b7b25cb092ff0e11a235.tar.gz
src-115f72d0d8bcf0cf44c6b7b25cb092ff0e11a235.zip
Add the snapshot option to mount_ufs.
Notes
Notes: svn path=/head/; revision=62664
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mntopts.h1
-rw-r--r--sbin/mount/mount_ufs.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sbin/mount/mntopts.h b/sbin/mount/mntopts.h
index 73c3c15a838f..a30a707306e8 100644
--- a/sbin/mount/mntopts.h
+++ b/sbin/mount/mntopts.h
@@ -56,6 +56,7 @@ struct mntopt {
#define MOPT_NOCLUSTERR { "clusterr", 1, MNT_NOCLUSTERR, 0 }
#define MOPT_NOCLUSTERW { "clusterw", 1, MNT_NOCLUSTERW, 0 }
#define MOPT_SUIDDIR { "suiddir", 0, MNT_SUIDDIR, 0 }
+#define MOPT_SNAPSHOT { "snapshot", 0, MNT_SNAPSHOT, 0 }
/* Control flags. */
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c
index 3c0b6fcb711f..d4c8181dd088 100644
--- a/sbin/mount/mount_ufs.c
+++ b/sbin/mount/mount_ufs.c
@@ -66,6 +66,7 @@ static struct mntopt mopts[] = {
MOPT_FORCE,
MOPT_SYNC,
MOPT_UPDATE,
+ MOPT_SNAPSHOT,
{ NULL }
};