Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2009 10:40:37 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189150 - head/usr.bin/fstat
Message-ID:  <200902281040.n1SAebV7006099@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Sat Feb 28 10:40:37 2009
New Revision: 189150
URL: http://svn.freebsd.org/changeset/base/189150

Log:
  Fix compilation of fstat.
  
  The udev should now be obtained from the dosmount instead of the denode.

Modified:
  head/usr.bin/fstat/msdosfs.c

Modified: head/usr.bin/fstat/msdosfs.c
==============================================================================
--- head/usr.bin/fstat/msdosfs.c	Sat Feb 28 10:38:32 2009	(r189149)
+++ head/usr.bin/fstat/msdosfs.c	Sat Feb 28 10:40:37 2009	(r189150)
@@ -110,7 +110,7 @@ msdosfs_filestat(struct vnode *vp, struc
 		mnt->kptr = denode.de_pmp;
 	}
 
-	fsp->fsid = dev2udev(denode.de_dev);
+	fsp->fsid = dev2udev(mnt->data.pm_dev);
 	fsp->mode = 0555;
 	fsp->mode |= denode.de_Attributes & ATTR_READONLY ? 0 : 0222;
 	fsp->mode &= mnt->data.pm_mask;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902281040.n1SAebV7006099>