summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-03 19:33:05 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-03 19:33:05 +0000
commit41612441d16bdc51d42ce13c7bb8d4dbd82eb484 (patch)
treed9b31eb69b9d2f82e9ec39dd291242844ee9d698 /libdiskfs
parent1ec915208d20a9b38df27a022d0f58d668caf934 (diff)
Formerly rdwr-internal.c.~2~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/rdwr-internal.c32
1 files changed, 12 insertions, 20 deletions
diff --git a/libdiskfs/rdwr-internal.c b/libdiskfs/rdwr-internal.c
index b8f23c67..76e378ce 100644
--- a/libdiskfs/rdwr-internal.c
+++ b/libdiskfs/rdwr-internal.c
@@ -23,12 +23,12 @@
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. */
-static error_t
-io_rdwr (struct inode *np,
- char *data,
- int offset,
- int amt,
- int dir)
+error_t
+_diskfs_rdwr_internal (struct inode *np,
+ char *data,
+ int offset,
+ int amt,
+ int dir)
{
char *window;
int winoff;
@@ -37,25 +37,17 @@ io_rdwr (struct inode *np,
int err;
if (dir)
- assert (!readonly);
+ assert (!diskfs_readonly);
- if (!readonly)
+ if (!diskfs_readonly)
{
- if (!(err = catch_exception ()))
- {
- if (dir)
- np->di->di_mtime = wallclock->seconds;
- else
- np->di->di_atime = wallclock->seconds;
- end_catch_exception ();
- }
+ if (dir)
+ np->dn_set_mtime = 1;
else
- return err;
+ np->dn_set_atime = 1;
}
- else
- err = 0;
- memobj = get_filemap (np);
+ memobj = diskfs_get_filemap (np);
mach_port_insert_right (mach_task_self (), memobj, memobj,
MACH_MSG_TYPE_MAKE_SEND);