From a795457252de83a34d8802f0e37d440ba9505198 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 30 Jun 1997 21:58:05 +0000 Subject: Mon Jun 30 17:26:38 1997 Thomas Bushnell, n/BSG * diskfs.h (diskfs_hard_readonly): New variable. (diskfs_readonly): Doc change. * readonly.c (diskfs_readonly): Provide initialized declaration. (diskfs_check_readonly): If we cannot write the media and so we switch to readonly, set diskfs_hard_readonly too. (diskfs_set_readonly): If diskfs_hard_readonly is set, then inhibit any attempt to clear readonly status. --- libdiskfs/diskfs.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libdiskfs/diskfs.h') diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index e92158f4..4a87d16d 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -168,6 +168,9 @@ extern spin_lock_t diskfs_node_refcnt_lock; extern int pager_port_type; +/* Whether the filesystem is currently writable or not. */ +extern int diskfs_readonly; + struct pager; @@ -204,9 +207,9 @@ extern int diskfs_link_max; If this is exceeded, dir_pathtrans will return ELOOP. */ extern int diskfs_maxsymlinks; -/* The user must define this variable and set it if the filesystem - should be readonly. */ -extern int diskfs_readonly; +/* This variable is defined by diskfs; the suer should set it if + the filesystem media cannot be made writeable. */ +extern int diskfs_hard_readonly; /* The user must define this variable. Set this to be the node of root of the filesystem. */ -- cgit v1.2.3