Add support for a new flag: "nodevmtime". This sets the MNT_NODEVMTIME mount
flag.
This commit is contained in:
parent
cbc0f73bee
commit
7171fafd1d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mntopts.h,v 1.7 1997/10/30 22:49:35 enami Exp $ */
|
||||
/* $NetBSD: mntopts.h,v 1.8 1998/12/01 23:20:43 kenh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994
|
||||
|
@ -46,6 +46,7 @@ struct mntopt {
|
|||
#define MOPT_ASYNC { "async", 0, MNT_ASYNC, 0 }
|
||||
#define MOPT_NOCOREDUMP { "coredump", 1, MNT_NOCOREDUMP, 0 }
|
||||
#define MOPT_NODEV { "dev", 1, MNT_NODEV, 0 }
|
||||
#define MOPT_NODEVMTIME { "devmtime", 1, MNT_NODEVMTIME, 0 }
|
||||
#define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC, 0 }
|
||||
#define MOPT_NOSUID { "suid", 1, MNT_NOSUID, 0 }
|
||||
#define MOPT_RDONLY { "rdonly", 0, MNT_RDONLY, 0 }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: mount.8,v 1.23 1998/10/03 22:50:46 hubertf Exp $
|
||||
.\" $NetBSD: mount.8,v 1.24 1998/12/01 23:20:43 kenh Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1989, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -147,6 +147,9 @@ flag.
|
|||
Do not interpret character or block special devices on the file system.
|
||||
This option is useful for a server that has file systems containing
|
||||
special devices for architectures other than its own.
|
||||
.It Cm nodevmtime
|
||||
Do not update modification times on device special files. This option
|
||||
is useful on laptops or other systems that perform power management.
|
||||
.It Cm nocoredump
|
||||
Do not allow programs to create crash dumps (core files) on the file system.
|
||||
This option can be used to help protect sensitive
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mount.c,v 1.44 1998/08/25 19:18:16 ross Exp $ */
|
||||
/* $NetBSD: mount.c,v 1.45 1998/12/01 23:20:43 kenh Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1989, 1993, 1994
|
||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1989, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: mount.c,v 1.44 1998/08/25 19:18:16 ross Exp $");
|
||||
__RCSID("$NetBSD: mount.c,v 1.45 1998/12/01 23:20:43 kenh Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -96,6 +96,7 @@ static struct opt {
|
|||
{ MNT_NOATIME, 0, "noatime" },
|
||||
{ MNT_NOCOREDUMP, 0, "nocoredump" },
|
||||
{ MNT_NODEV, 0, "nodev" },
|
||||
{ MNT_NODEVMTIME, 0, "nodevmtime" },
|
||||
{ MNT_NOEXEC, 0, "noexec" },
|
||||
{ MNT_NOSUID, 0, "nosuid" },
|
||||
{ MNT_QUOTA, 0, "with quotas" },
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mount_ffs.c,v 1.8 1998/07/26 15:05:37 mycroft Exp $ */
|
||||
/* $NetBSD: mount_ffs.c,v 1.9 1998/12/01 23:20:43 kenh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994
|
||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)mount_ufs.c 8.4 (Berkeley) 4/26/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: mount_ffs.c,v 1.8 1998/07/26 15:05:37 mycroft Exp $");
|
||||
__RCSID("$NetBSD: mount_ffs.c,v 1.9 1998/12/01 23:20:43 kenh Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -71,6 +71,7 @@ static const struct mntopt mopts[] = {
|
|||
MOPT_UPDATE,
|
||||
MOPT_RELOAD,
|
||||
MOPT_NOATIME,
|
||||
MOPT_NODEVMTIME,
|
||||
MOPT_FORCE,
|
||||
{ NULL }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue