Steve Dickson wrote: > Here is 2.4 patch that allows nfs_statfs() to detect values that are > too large to deal with (i.e. > 32bit on a 32bit machine). So instead > of returning garbage (as it does today), it returns all -1 which > commands (like df) know how interpret. For example: > df without the patch > > Filesystem 1K-blocks Used Available Use% Mounted on > pdl585-1:/ 7108754432 -147573952589283246080 33966574080 > 101% /mnt/dl585-1 > > df with the patch: > Filesystem 1K-blocks Used Available Use% Mounted on > pdl585-1:/ 1 1 1 0% /mnt/dl585-1 > > Which should be fairly obvious that something went wrong..... > > Comments? > > Maybe this issue has already been address on the list (I know Olaf > recently sent out a 2.6 patch) but if it hasn't.... maybe this is > something > Marcelo would be interested in? > This is an update to the previous patch that 1) always sets f_namelen to a valid value since apps could be depending on it and 2) f_files and f_ffree are set to -1 on any an overflows. SteveD.