Subject: Re: kern/36012: Bogus df output for HFS+
To: None <dillo@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Dieter Baron <dillo@danbala.tuwien.ac.at>
List: netbsd-bugs
Date: 03/18/2007 23:45:02
The following reply was made to PR kern/36012; it has been noted by GNATS.

From: Dieter Baron <dillo@danbala.tuwien.ac.at>
To: Michael Lorenz <macallan@netbsd.org>, gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/36012: Bogus df output for HFS+
Date: Mon, 19 Mar 2007 00:41:42 +0100

 --IrhDeMKUP4DT/M7F
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 hi,
 
 >Description:
 >	I have mounted a HFS+ system in /dev/wd0d on /macos.  However,
 >	df prints a bogus device name.  The sizes reported by df seem
 >	to be right.
 
   Please try the appended patch (relative to src) and let me know if
 it fixes the problem for you.  (I can't reproduce the problem on i386.)
 
 						yours,
 						dillo
 
 --IrhDeMKUP4DT/M7F
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="hfs-df.diff"
 
 Index: hfs_vfsops.c
 ===================================================================
 RCS file: /cvsroot/src/sys/fs/hfs/hfs_vfsops.c,v
 retrieving revision 1.2
 diff -u -r1.2 sys/fs/hfs/hfs_vfsops.c
 --- sys/fs/hfs/hfs_vfsops.c	6 Mar 2007 11:28:48 -0000	1.2
 +++ sys/fs/hfs/hfs_vfsops.c	18 Mar 2007 23:32:25 -0000
 @@ -290,7 +290,7 @@
  	if ((error = hfs_mountfs(devvp, mp, l, args.fspec, args.offset)) != 0)
  		goto error;
  	
 -	error = set_statvfs_info(path, UIO_USERSPACE, args.fspec, UIO_SYSSPACE,
 +	error = set_statvfs_info(path, UIO_USERSPACE, args.fspec, UIO_USERSPACE,
  		mp, l);
  
  #ifdef HFS_DEBUG
 
 --IrhDeMKUP4DT/M7F--