From 5fb461913ee58e814406ab3b3b5d978120db5af1 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Thu, 24 May 2001 22:09:50 +0000 Subject: [PATCH 1/1] solaris-make-df-in-cwd-return-useful-output-20010524 "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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afs/SOLARIS/osi_vfsops.c b/src/afs/SOLARIS/osi_vfsops.c index a16dea1..032d50e 100644 --- a/src/afs/SOLARIS/osi_vfsops.c +++ b/src/afs/SOLARIS/osi_vfsops.c @@ -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; -- 1.9.4