Bug #1401

statvfs(2) reports wrapped sizes for large nfs file systems

Added by corecode almost 5 years ago. Updated over 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:alexh% Done:

0%

Category:-
Target version:-

Description

nfs only implements vfs_statfs and relies on the vfs_stdstatvfs wrapper to
provide a statvfs interface.

NFSv3 provides 64 bit values for free and available blocks, but the statfs
structure it fills uses only signed longs. As a result, these values get
cropped and later written back into a 64 bit integer in the statvfs struct,
leading to incorrect information.

nfs needs to implement both statfs and statvfs to fix this.

History

#1 Updated by alexh over 4 years ago

I'm currently testing an implementation of stavfs to fix this.

#2 Updated by alexh over 4 years ago

Should be fixed by commit 2ef35c61337e4c7a147da41391628f26823da352:
http://gitweb.dragonflybsd.org/dragonfly.git/commit/2ef35c61337e4c7a147da413916
28f26823da352

Also available in: Atom PDF