Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/cd9660 PR kern/48799: make filehandles properly use 6...



details:   https://anonhg.NetBSD.org/src/rev/16fdde5814e2
branches:  trunk
changeset: 329178:16fdde5814e2
user:      martin <martin%NetBSD.org@localhost>
date:      Tue May 13 17:05:26 2014 +0000

description:
PR kern/48799: make filehandles properly use 64bit inodes on CD9660 file
systems. Patch from Thomas Schmitt, with slight modifications.

diffstat:

 sys/fs/cd9660/cd9660_vfsops.c |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r c2885b4abec5 -r 16fdde5814e2 sys/fs/cd9660/cd9660_vfsops.c
--- a/sys/fs/cd9660/cd9660_vfsops.c     Tue May 13 16:35:02 2014 +0000
+++ b/sys/fs/cd9660/cd9660_vfsops.c     Tue May 13 17:05:26 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd9660_vfsops.c,v 1.84 2014/04/16 18:55:18 maxv Exp $  */
+/*     $NetBSD: cd9660_vfsops.c,v 1.85 2014/05/13 17:05:26 martin Exp $        */
 
 /*-
  * Copyright (c) 1994
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd9660_vfsops.c,v 1.84 2014/04/16 18:55:18 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd9660_vfsops.c,v 1.85 2014/05/13 17:05:26 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -641,8 +641,10 @@
 struct ifid {
        ushort  ifid_len;
        ushort  ifid_pad;
-       int     ifid_ino;
-       long    ifid_start;
+       ino_t   ifid_ino;
+#ifdef ISOFS_DBG
+       u_long  ifid_start;
+#endif
 };
 
 /* ARGSUSED */
@@ -659,7 +661,7 @@
 
        memcpy(&ifh, fhp, sizeof(ifh));
 #ifdef ISOFS_DBG
-       printf("fhtovp: ino %d, start %ld\n",
+       printf("fhtovp: ino %"PRIu64", start %lu\n",
            ifh.ifid_ino, ifh.ifid_start);
 #endif
 
@@ -914,11 +916,13 @@
        memset(&ifh, 0, sizeof(ifh));
        ifh.ifid_len = sizeof(struct ifid);
        ifh.ifid_ino = ip->i_number;
+#ifdef ISOFS_DBG
        ifh.ifid_start = ip->iso_start;
+#endif
        memcpy(fhp, &ifh, sizeof(ifh));
 
 #ifdef ISOFS_DBG
-       printf("vptofh: ino %d, start %ld\n",
+       printf("vptofh: ino %"PRIu64", start %lu\n",
            ifh.ifid_ino,ifh.ifid_start);
 #endif
        return 0;



Home | Main Index | Thread Index | Old Index