summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2000-07-06 01:50:05 +0000
committermckusick <mckusick@FreeBSD.org>2000-07-06 01:50:05 +0000
commit6af3988496d8b25ce1504bfb06c041e220383c24 (patch)
treea57183cdc42130fa0546895258983a345e1e89d5 /sbin/mount
parent1c335da8a3e26d572a7102dace9539259034f10a (diff)
downloadFreeBSD-src-6af3988496d8b25ce1504bfb06c041e220383c24.zip
FreeBSD-src-6af3988496d8b25ce1504bfb06c041e220383c24.tar.gz
Add the snapshot option to mount_ufs.
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 73c3c15..a30a707 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 3c0b6fc..d4c8181 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 }
};
OpenPOWER on IntegriCloud