xfs: fix $XFS_DB_PROG usage
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 30 Sep 2016 02:23:41 +0000 (19:23 -0700)
committerEryu Guan <eguan@redhat.com>
Fri, 7 Oct 2016 09:18:53 +0000 (17:18 +0800)
commitc08ebd092d8988402bf60c8d6371f327d5e418ea
tree617895f530077ba38a0f675330ae734d97c622c6
parentfff869cb9c49a15b34dcec5ccf620f026752cf05
xfs: fix $XFS_DB_PROG usage

xfs_db requires us to pass in the log device, if any; this can be
accomplished via _scratch_xfs_db_options (if we're operating on the
scratch device, anyway).  However, many of the tests/xfs/ scripts
pass only $SCRATCH_DEV directly, so they'll fail if we test with an
external log.  Fix that by adding a new _scratch_xfs_db helper.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
37 files changed:
common/populate
common/rc
tests/xfs/001
tests/xfs/002
tests/xfs/070
tests/xfs/077
tests/xfs/086
tests/xfs/087
tests/xfs/088
tests/xfs/089
tests/xfs/091
tests/xfs/093
tests/xfs/097
tests/xfs/098
tests/xfs/099
tests/xfs/100
tests/xfs/101
tests/xfs/102
tests/xfs/105
tests/xfs/111
tests/xfs/112
tests/xfs/113
tests/xfs/117
tests/xfs/120
tests/xfs/123
tests/xfs/124
tests/xfs/125
tests/xfs/126
tests/xfs/130
tests/xfs/135
tests/xfs/137
tests/xfs/179
tests/xfs/186
tests/xfs/187
tests/xfs/235
tests/xfs/287
tests/xfs/298