diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 05:28:45 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 05:28:45 +0000 |
commit | a439e9fc84397a7a802b2e9966df6d2bf7a63e73 (patch) | |
tree | cba25dc6e9e3c364866eb450b3d78ba2e7bc1f6b /libdiskfs/file-getfh.c | |
parent | 6ae05c477f2d8931fc365f6f009817e6c26087fd (diff) | |
download | hurd-a439e9fc84397a7a802b2e9966df6d2bf7a63e73.tar.gz hurd-a439e9fc84397a7a802b2e9966df6d2bf7a63e73.tar.bz2 hurd-a439e9fc84397a7a802b2e9966df6d2bf7a63e73.zip |
1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
* boot-start.c (diskfs_S_exec_startup_get_info): Use mmap instead
of vm_allocate.
(diskfs_S_fsys_init): Likewise.
* file-get-trans.c (diskfs_S_file_get_translator): Likewise.
* file-getfh.c (diskfs_S_file_getfh): Likewise.
* io-read.c (diskfs_S_io_read): Likewise.
Diffstat (limited to 'libdiskfs/file-getfh.c')
-rw-r--r-- | libdiskfs/file-getfh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/file-getfh.c b/libdiskfs/file-getfh.c index 1b23b80c..c755e911 100644 --- a/libdiskfs/file-getfh.c +++ b/libdiskfs/file-getfh.c @@ -1,6 +1,6 @@ /* Return a file handle (for nfs server support) - Copyright (C) 1997 Free Software Foundation + Copyright (C) 1997, 1999 Free Software Foundation This file is part of the GNU Hurd. @@ -42,8 +42,8 @@ diskfs_S_file_getfh (struct protid *cred, char **fh, unsigned *fh_len) mutex_lock (&node->lock); if (*fh_len < sizeof (struct diskfs_fhandle)) - vm_allocate (mach_task_self (), (vm_address_t *) fh, - sizeof (struct diskfs_fhandle), 1); + *fh = mmap (0, sizeof (struct diskfs_fhandle), PROT_READ|PROT_WRITE, + MAP_ANON, 0, 0); *fh_len = sizeof (struct diskfs_fhandle); f = (struct diskfs_fhandle *)*fh; |