From 115f72d0d8bcf0cf44c6b7b25cb092ff0e11a235 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Thu, 6 Jul 2000 01:50:05 +0000 Subject: [PATCH] Add the snapshot option to mount_ufs. --- sbin/mount/mntopts.h | 1 + sbin/mount/mount_ufs.c | 1 + sbin/mount_ifs/mntopts.h | 1 + sbin/mount_ifs/mount_ufs.c | 1 + 4 files changed, 4 insertions(+) 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 } }; diff --git a/sbin/mount_ifs/mntopts.h b/sbin/mount_ifs/mntopts.h index 73c3c15a838f..a30a707306e8 100644 --- a/sbin/mount_ifs/mntopts.h +++ b/sbin/mount_ifs/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_ifs/mount_ufs.c b/sbin/mount_ifs/mount_ufs.c index 3c0b6fcb711f..d4c8181dd088 100644 --- a/sbin/mount_ifs/mount_ufs.c +++ b/sbin/mount_ifs/mount_ufs.c @@ -66,6 +66,7 @@ static struct mntopt mopts[] = { MOPT_FORCE, MOPT_SYNC, MOPT_UPDATE, + MOPT_SNAPSHOT, { NULL } };