aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/priv.h')
-rw-r--r--libdiskfs/priv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h
index 2e3db6ca..864b4271 100644
--- a/libdiskfs/priv.h
+++ b/libdiskfs/priv.h
@@ -89,7 +89,7 @@ diskfs_nrele (struct node *np)
if (!(PROTID)) \
return EOPNOTSUPP; \
\
- if (readonly) \
+ if (diskfs_readonly) \
return EROFS; \
\
np = (PROTID)->po->np; \
@@ -100,3 +100,5 @@ diskfs_nrele (struct node *np)
mutex_unlock (&np->lock); \
return err; \
})
+
+#define HONORED_STATE_MODES (O_APPEND|O_ASYNC|O_FSYNC|O_NONBLOCK)