From 22ed499dc8313fa5470a2b401d9f60d64c419a19 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 24 Jun 1996 20:35:50 +0000 Subject: (diskfs_check_readonly): New function. --- libdiskfs/diskfs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libdiskfs/diskfs.h') 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 -- cgit v1.2.3