From: Richard W.M. Jones Date: Tue, 30 Jun 2009 14:10:31 +0000 (+0100) Subject: Change statvfs test so it doesn't depend on device size. X-Git-Tag: 1.0.55~34 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=532009d1ccf16b87859dd58884a82512e8eba937;p=libguestfs.git Change statvfs test so it doesn't depend on device size. Current statvfs test depended on a lot of filesystem details which can change if the CHS of the underlying block device changes (eg. with the switch from IDE -> virtio). These are not really necessary to test the call, so instead just check for filesystem features. --- diff --git a/src/generator.ml b/src/generator.ml index 242d292..cbe8ca7 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -1499,8 +1499,7 @@ This is the same as the C system call."); ("statvfs", (RStatVFS "statbuf", [String "path"]), 54, [], [InitBasicFS, Always, TestOutputStruct ( - [["statvfs"; "/"]], [CompareWithInt ("bfree", 487702); - CompareWithInt ("blocks", 490020); + [["statvfs"; "/"]], [CompareWithInt ("namemax", 255); CompareWithInt ("bsize", 1024)])], "get file system statistics", "\