]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/rc: teach _require_xfs_io_command accept multi-parameters
authorZorro Lang <zlang@redhat.com>
Thu, 19 May 2016 04:30:59 +0000 (12:30 +0800)
committerEryu Guan <eguan@redhat.com>
Wed, 15 Jun 2016 07:29:47 +0000 (15:29 +0800)
commita6f6e594f74a7d8a68044cba170f52e6d460be48
tree2fb877831e6a61c33e0f86c34752b31a80026b80
parentcf00fecc4f8e04284422750225511f8fd0e0af4b
common/rc: teach _require_xfs_io_command accept multi-parameters

The $param can't be used for all command's options, for example
"help pwrite" include:

 -Z N -- zeed the random number generator (used when writing randomly)
         (heh, zorry, the -s/-S arguments were already in use in pwrite)

We should make param="-Z N", not only "-Z". After this patch, we can
run this function as:

  _require_xfs_io_command pwrite -Z N

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc