NetBSD-Bugs archive

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

Re: kern/48787



The following reply was made to PR kern/48787; it has been noted by GNATS.

From: "Thomas Schmitt" <scdbackup%gmx.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/48787
Date: Tue, 06 May 2014 16:19:45 +0200

 --- sys/fs/cd9660/cd9660_node.c.orig   2014-05-05 11:56:09.000000000 +0000
 +++ sys/fs/cd9660/cd9660_node.c        2014-05-06 08:20:51.000000000 +0000
 @@ -440,7 +440,12 @@ isodirino(struct iso_directory_record *i
  {
        ino_t ino;
  
 -      ino = (isonum_733(isodir->extent) + isonum_711(isodir->ext_attr_length))
 -            << imp->im_bshift;
 +      /* This is not only a file serial number, but also a message to
 +       * cd9660_vfsops.c:cd9660_vget_internal() which computes this
 +       * number back from ino_t by:
 +       *   ip->iso_start = ino >> imp->im_bshift;
 +       */
 +      ino = (((uint64_t) isonum_733(isodir->extent)) +
 +              isonum_711(isodir->ext_attr_length)) << imp->im_bshift;
        return (ino);
  }
 


Home | Main Index | Thread Index | Old Index