solaris-make-df-in-cwd-return-useful-output-20010524
authorNickolai Zeldovich <kolya@mit.edu>
Thu, 24 May 2001 22:09:50 +0000 (22:09 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 24 May 2001 22:09:50 +0000 (22:09 +0000)
"This patch makes "df ." work in AFS directories under Solaris 8.
(df looks in /etc/mnttab, which is obtained from the kernel, for
the device number and then does a pwd-style walk up the tree..
Currently the device number gets set to 0x100000 by default which
doesn't match the 0x1234 device number of AFS vnodes.)"

src/afs/SOLARIS/osi_vfsops.c

index a16dea1..032d50e 100644 (file)
@@ -49,6 +49,7 @@ int afs_mount(struct vfs *afsp, struct vnode *amvp, struct mounta *uap,
     afsp->vfs_bsize = 8192;
     afsp->vfs_fsid.val[0] = AFS_VFSMAGIC; /* magic */
     afsp->vfs_fsid.val[1] = AFS_VFSFSID; 
+    afsp->vfs_dev = AFS_VFSMAGIC;
 
     AFS_GUNLOCK();
     return 0;