diff options
Diffstat (limited to 'libdiskfs/node-create.c')
-rw-r--r-- | libdiskfs/node-create.c | 3 |
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) |