summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 20:35:50 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 20:35:50 +0000
commit22ed499dc8313fa5470a2b401d9f60d64c419a19 (patch)
tree27be5db75a0d8d8543c0ce544a42aeb8b43624df /libdiskfs
parent9fc5bceeed0f35c20e94155d5ff4cbc63a91fdb1 (diff)
(diskfs_check_readonly): New function.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/diskfs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 084c680a..f60b2b5e 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -1083,6 +1083,10 @@ error_t diskfs_append_std_options (char **argz, unsigned *argz_len);
/* Demultiplex incoming messages on ports created by libdiskfs. */
int diskfs_demuxer (mach_msg_header_t *, mach_msg_header_t *);
+/* Check if the filesystem is readonly before an operation that
+ writes it. Return 1 if readonly, zero otherwise. */
+int diskfs_check_readonly (void);
+
/* The diskfs library provides functions to demultiplex the fs, io,
fsys, interrupt, and notify interfaces. All the server routines
have the prefix `diskfs_S_'; `in' arguments of type file_t or io_t