diff options
-rw-r--r-- | libdiskfs/ChangeLog | 5 | ||||
-rw-r--r-- | libdiskfs/file-getfh.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog index 84d2690d..7f5625b6 100644 --- a/libdiskfs/ChangeLog +++ b/libdiskfs/ChangeLog @@ -1,3 +1,8 @@ +2001-10-01 Marcus Brinkmann <marcus@gnu.org> + + * file-getfh.c (diskfs_S_file_getfh): Fix tag of diskfs_fhandle. + Submitted by Maurizio Boriani <baux@debian.org>. + 2001-08-22 Neal H Walfield <neal@cs.uml.edu> * opts-std-startup.c (startup_options): New compatibility diff --git a/libdiskfs/file-getfh.c b/libdiskfs/file-getfh.c index a2dbb045..65029c1a 100644 --- a/libdiskfs/file-getfh.c +++ b/libdiskfs/file-getfh.c @@ -43,8 +43,8 @@ diskfs_S_file_getfh (struct protid *cred, char **fh, unsigned *fh_len) mutex_lock (&node->lock); - if (*fh_len < sizeof (struct diskfs_fhandle)) - *fh = mmap (0, sizeof (struct diskfs_fhandle), PROT_READ|PROT_WRITE, + if (*fh_len < sizeof (union diskfs_fhandle)) + *fh = mmap (0, sizeof (union diskfs_fhandle), PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); *fh_len = sizeof *f; |