diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-06-30 15:10:31 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-06-30 18:09:07 +0100 |
commit | 532009d1ccf16b87859dd58884a82512e8eba937 (patch) | |
tree | 9f9ac7a7a07003475e71f6c5e845f0157ac2846a | |
parent | cf42e4d3879da45171e58dbcda25d6671aeb8f3e (diff) | |
download | libguestfs-532009d1ccf16b87859dd58884a82512e8eba937.tar.gz libguestfs-532009d1ccf16b87859dd58884a82512e8eba937.tar.xz libguestfs-532009d1ccf16b87859dd58884a82512e8eba937.zip |
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.
-rwxr-xr-x | src/generator.ml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/generator.ml b/src/generator.ml index 242d2920..cbe8ca79 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -1499,8 +1499,7 @@ This is the same as the C<lstat(2)> 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", "\ |