]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
Add -r switch to src/bulkstat_unlink_test.c needed for QA test 183
authorNiv Sardi <xaiki@sgi.com>
Fri, 26 Oct 2007 16:05:04 +0000 (16:05 +0000)
committerNiv Sardi <xaiki@sgi.com>
Fri, 26 Oct 2007 16:05:04 +0000 (16:05 +0000)
commit20514854319fb6a4967ffca7e1fbac0d031ef1a0
treea218b4d725184f053152f106d72b207209a18e63
parent0383adf69460ccdcf25e9f4ecade87961df82bfc
Add -r switch to src/bulkstat_unlink_test.c needed for QA test 183

(whitespace cleanups)

This patch adds a -r switch (using getopt as suggested by dchinner)
to src/bulkstat_unlink_test.c, that will implement the additional checks
described by vlad in PV 972128.

Basically we:
* Save the inode count in scount.
* Create nfiles new files (passed as argument).
* Open those nfiles.
* Unlink the files.
* Check that the inode count is greater than scount.
* close the files.
* Check that the inode count is the same as scount.

This patch also introduces more info on failure (Line number and file) before the exit()s, as well
as comments describing what we are doing.

This patch is to be used by QA test 183
SGI-Git-Id: 4ab8fa354f79070b4ba87cb09c4326d62da824fd
SGI-Git-author: Niv Sardi-Altivanik  <xaiki@chook.melbourne.sgi.com>
SGI-Git-date: Wed, 24 Oct 2007 13:24:27 +1000
Merge of master-melb:xfs-cmds:29964a by kenmcd.
src/bulkstat_unlink_test.c