summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2001-10-01 16:40:53 +0000
committerMarcus Brinkmann <marcus@gnu.org>2001-10-01 16:40:53 +0000
commit4d938ee327be3f4cd049dc431b994e99a90f74e6 (patch)
treecf0c3967ec272f8058cf00a5333645cdeedc9e39 /libdiskfs
parent599cda474689188313075e23a5c801d90dc55e8b (diff)
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>.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/ChangeLog5
-rw-r--r--libdiskfs/file-getfh.c4
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;