summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-23 19:37:59 +0000
committerMiles Bader <miles@gnu.org>1995-04-23 19:37:59 +0000
commitc631e4b29872a5875f4b1c5a0663d30dcc83ac57 (patch)
tree9eedd5e323c7fe43c21b4e7f9419f76d357acdcd /libdiskfs
parent9a23f2b8f6782f4d7612b1d2e1437463b8d8752e (diff)
(diskfs_create_node): Return EROFS if diskfs_readonly.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/node-create.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdiskfs/node-create.c b/libdiskfs/node-create.c
index a6eea6fa..7bab4e2a 100644
--- a/libdiskfs/node-create.c
+++ b/libdiskfs/node-create.c
@@ -35,6 +35,9 @@ diskfs_create_node (struct node *dir,
struct node *np;
error_t err;
+ if (diskfs_readonly)
+ return EROFS;
+
/* Make the node */
err = diskfs_alloc_node (dir, mode, newnode);
if (err)