NetBSD-Bugs archive

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

Re: kern/38531



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

From: Antti Kantee <pooka%cs.hut.fi@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/38531
Date: Tue, 1 Sep 2009 18:45:19 +0300

 --EeQfGwPcQSOJBaQU
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Attached is a patch against netbsd-5.
 
 --EeQfGwPcQSOJBaQU
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="ntfs.mmap.5.patch"
 
 Index: ntfs_subr.c
 ===================================================================
 RCS file: /cvsroot/src/sys/fs/ntfs/ntfs_subr.c,v
 retrieving revision 1.37
 diff -p -u -r1.37 ntfs_subr.c
 --- ntfs_subr.c        16 May 2008 09:21:59 -0000      1.37
 +++ ntfs_subr.c        1 Sep 2009 15:45:11 -0000
 @@ -1065,6 +1065,7 @@ ntfs_ntlookupfile(
                                nfp->f_size = iep->ie_fsize;
                                nfp->f_allocated = iep->ie_fallocated;
                                nfp->f_flag |= FN_PRELOADED;
 +                              uvm_vnp_setsize(nvp, iep->ie_fsize);
                        } else {
                                error = ntfs_filesize(ntmp, nfp,
                                            &nfp->f_size, &nfp->f_allocated);
 @@ -1072,6 +1073,7 @@ ntfs_ntlookupfile(
                                        vput(nvp);
                                        goto fail;
                                }
 +                              uvm_vnp_setsize(nvp, nfp->f_size);
                        }
  
                        nfp->f_flag &= ~FN_VALID;
 Index: ntfs_vfsops.c
 ===================================================================
 RCS file: /cvsroot/src/sys/fs/ntfs/ntfs_vfsops.c,v
 retrieving revision 1.72
 diff -p -u -r1.72 ntfs_vfsops.c
 --- ntfs_vfsops.c      28 Jun 2008 01:34:05 -0000      1.72
 +++ ntfs_vfsops.c      1 Sep 2009 15:45:14 -0000
 @@ -824,7 +824,7 @@ ntfs_vgetex(
                }
        }
  
 -      uvm_vnp_setsize(vp, 0); /* XXX notused */
 +      uvm_vnp_setsize(vp, fp->f_size); /* XXX: mess, cf. ntfs_lookupfile() */
        VREF(ip->i_devvp);
        *vpp = vp;
        return (0);
 
 --EeQfGwPcQSOJBaQU--
 


Home | Main Index | Thread Index | Old Index