diff options
author | Roland McGrath <roland@gnu.org> | 1999-09-19 21:13:30 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-09-19 21:13:30 +0000 |
commit | 9a51ee3f9fbd12e2ded858c8b9c72b2d5e56b83d (patch) | |
tree | b12e1daa527863b7a75e1bb20c95f2e4dc7571b6 /libdiskfs/init-init.c | |
parent | 8f79eed4594225520bc8877e0f36a5ff015fc796 (diff) |
1999-09-19 Roland McGrath <roland@baalperazim.frob.com>
* node-times.c (diskfs_set_node_times): If _diskfs_noatime is set and
neither NP->dn_set_mtime nor NP->dn_set_ctime is set, clear
NP->dn_set_atime. Short-circuit return if none of dn_set_?time set.
* opts-common.c (diskfs_common_options): Include "priv.h".
Add aliases --ro/--rw for -r/-w. Add alias --nosuid for --no-suid,
--noexec for --no-exec. Move --suid-ok, --exec-ok here from ...
* opts-std-runtime.c (std_runtime_options): ... here.
(struct parse_hook): New member `noatime'.
(set_opts): Use H->noatime to set _diskfs_noatime.
(parse_opt): Grok -A and OPT_ATIME to set/clear H->noatime.
(OPT_ATIME): New macro.
(OPT_SUID_OK, OPT_EXEC_OK): Moved to ...
* priv.h: ... here.
(diskfs_common_options): Add const to decl.
* opts-std-startup.c (parse_startup_opt): Grok OPT_SUID_OK,
OPT_EXEC_OK, -A, and OPT_ATIME.
* init-init.c (_diskfs_noatime): New variable.
(_diskfs_nosuid, _diskfs_noexec): Use uninitialized defns.
* opts-append-std.c (diskfs_append_std_options): Add --no-atime if
_diskfs_noatime is set.
Diffstat (limited to 'libdiskfs/init-init.c')
-rw-r--r-- | libdiskfs/init-init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libdiskfs/init-init.c b/libdiskfs/init-init.c index 7853be26..11624763 100644 --- a/libdiskfs/init-init.c +++ b/libdiskfs/init-init.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 95, 96, 97, 98 Free Software Foundation, Inc. + Copyright (C) 1994, 95, 96, 97, 98, 99 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -30,7 +30,8 @@ mach_port_t diskfs_auth_server_port; volatile struct mapped_time_value *diskfs_mtime; mach_port_t diskfs_fsys_identity; -int _diskfs_nosuid = 0, _diskfs_noexec = 0; +int _diskfs_nosuid, _diskfs_noexec; +int _diskfs_noatime; struct hurd_port _diskfs_exec_portcell; |