X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fmultifstat.c;h=d65e3b3280e08581e6b3a6bd622d73014d0df0c7;hb=08aa217ce49aba1ded52e0f7adb8a607035123fd;hp=e169073c7d066e7fc2c64b9728543c2c93e7c9c1;hpb=6869932b552ac705f411de3362f01bd50c1f6f7d;p=fs%2Flustre-release.git diff --git a/lustre/tests/multifstat.c b/lustre/tests/multifstat.c index e169073..d65e3b3 100644 --- a/lustre/tests/multifstat.c +++ b/lustre/tests/multifstat.c @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -26,7 +24,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -84,7 +82,7 @@ int main(int argc, char **argv) if ( st1.st_size != st2.st_size ) { printf("Sizes don't match %lu, %lu\n", - (unsigned long)st1.st_size, + (unsigned long)st1.st_size, (unsigned long)st2.st_size); return 1; } @@ -95,5 +93,11 @@ int main(int argc, char **argv) return 1; } + if ( st1.st_blocks != st2.st_blocks ) { + printf("Blocks don't match %ld, %ld\n", + (long)st1.st_blocks, (long)st2.st_blocks); + return 1; + } + return 0; }