diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-02-05 00:38:03 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-02-05 00:38:03 +0000 |
commit | 71c4af222b73a998323193bb4be5e5e54f2eb44c (patch) | |
tree | 9844001762620eb7e15d2107c181622be487bb88 /libdiskfs | |
parent | 38c79bb0fe96af4275e5a753a11637ed8943115f (diff) |
Formerly priv.h.~9~
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/priv.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h index 5e53c55b..cfbc780e 100644 --- a/libdiskfs/priv.h +++ b/libdiskfs/priv.h @@ -41,8 +41,7 @@ enum porttype }; spin_lock_t _diskfs_node_refcnt_lock = SPIN_LOCK_INITIALIZER; - -#define MAXSYMLINKS 8 +volatile struct mapped_time_value *_diskfs_mtime; /* Needed for MiG. */ typedef struct protid *protid_t; @@ -60,7 +59,7 @@ begin_using_protid_port (file_t port) balances begin_using_protid_port, and is arranged for the io and fs interfaces by fsmutations.h. */ extern inline void -diskfs_end_using_protid_port (struct protid *cred) +end_using_protid_port (struct protid *cred) { ports_done_with_port (cred); } @@ -105,6 +104,15 @@ diskfs_nrele (struct node *np) spin_unlock (&_diskfs_node_refcnt_lock); } +/* Actually read or write a file. The file size must already permit + the requested access. NP is the file to read/write. DATA is a buffer + to write from or fill on read. OFFSET is the absolute address (-1 + not permitted here); AMT is the size of the read/write to perform; + DIR is set for writing and clear for reading. The inode must + be locked. */ +error_t _diskfs_rdwr_internal (struct node *np, char *data, int offset, + int amt, int dir); + /* This macro locks the node associated with PROTID, and then evaluates the expression OPERATION; then it syncs the inode (without waiting) and unlocks everything, and then returns |