[OpenAFS] AFS filesystem size

Eric Sturdivant sturdiva@umd.edu
Sat, 27 Mar 2004 15:11:35 -0500 (EST)


On Fri, 26 Mar 2004, Thomas Chung wrote:

> Hello,
>
> Here is my system info:
>
> Red Hat Enterpriese Linux 3
> OpenAFS 1.2.11-rhel3.0.1
>
> I can access to my AFS account fine but I've noticed the AFS filesystem
> size seems too small.  I remember seeing 8 or 9 GB for AFS filesystem
> size on RHL 9.
>
> Here is my df -h
>
> # df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda5              64G  3.7G   57G   7% /
> /dev/sda1              99M   15M   79M  16% /boot
> none                  503M     0  503M   0% /dev/shm
> /dev/sda3             487M   10M  452M   3% /usr/vice/cache
> AFS                   1.0K  0.0K  1.0K   0% /afs
>
> Is this normal in release 1.2.11?
>
> Thank you for your time.
>
> Thomas Chung
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>

We had a similar problem under rehdat enterprise 3, but the filesystem
size for AFS was negative. Turned out to be a problem between the kernel
version and the libc version. The following patch (against 1.2.11) correct
the problem for us.

@@ -325,6 +325,8 @@
     stat.f_fsid.val[0] = AFS_VFSMAGIC;
     stat.f_fsid.val[1] = AFS_VFSFSID;
     stat.f_namelen = 256;
+    /* to fake the user space f_frsize member being 0 */
+    memset(stat.f_spare, 0, sizeof(stat.f_spare));

 #if defined(AFS_LINUX24_ENV)
     *statp = stat;




--
Eric Sturdivant
University of Maryland
Office of Information Technology
Distributed Computing Services
(301) 405-8473
sturdiva@umd.edu
http://www.oit.umd.edu/dcs