blkrawverify: warn and return error if no traces are found
authorEric Sandeen <sandeen@redhat.com>
Thu, 7 May 2009 16:08:25 +0000 (11:08 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 11 May 2009 06:43:44 +0000 (08:43 +0200)
commit420c2b7629ca7f7c81896652edb93c3a97c87c4c
tree3f2d13ffe72c428267c87108e6d7ad3f9bb6d6cf
parent73ad1727443924d5efa94d5fad1ad3cfea3d3780
blkrawverify: warn and return error if no traces are found

blkrawverify is prints no errors and returns success if the
requested tracefiles aren't found:

# blkrawverify foobar
Verifying foobar
# echo $?
0

With this change it's a bit more informative:

# ./blkrawverify foobar
Verifying foobar
No tracefiles found for foobar
# echo $?
1

Resolves Red Hat Bugzilla #499581

Reported-by: Milos Malik <mmalik@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
blkrawverify.c