common: use mount/umount helpers everywhere
authorEric Sandeen <esandeen@redhat.com>
Mon, 21 Dec 2015 07:07:43 +0000 (18:07 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Dec 2015 07:07:43 +0000 (18:07 +1100)
commit27d077ec0bdaaffd69e436236ec580bfb9f53385
tree4aff344b0b453eebcf8e1b1ecde82821d0ffcefa
parent4545386ca04361d15571481eedc081e8f157fe9b
common: use mount/umount helpers everywhere

Replace every explicit mount/umount of scratch or test devices with
helper functions. This allows the next patch to add in hooks to these
functions in order to set up & tear down overlayfs on every mount/umount

(also adds _test_unmount(), which didn't exist prior)

[Eryu Guan rebased the patch agains latest master and replaced more
mount/umount with helpers]

Signed-off-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eric Sandeen <esandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
136 files changed:
check
common/attr
common/dump
common/filestreams
common/log
common/punch
common/quota
common/rc
common/repair
soak
tests/btrfs/002
tests/btrfs/003
tests/btrfs/004
tests/btrfs/005
tests/btrfs/007
tests/btrfs/011
tests/btrfs/029
tests/btrfs/031
tests/ext4/002
tests/ext4/301
tests/ext4/302
tests/ext4/303
tests/ext4/304
tests/ext4/305
tests/generic/014
tests/generic/015
tests/generic/019
tests/generic/043
tests/generic/044
tests/generic/045
tests/generic/046
tests/generic/047
tests/generic/048
tests/generic/049
tests/generic/050
tests/generic/050.out
tests/generic/051
tests/generic/052
tests/generic/053
tests/generic/054
tests/generic/055
tests/generic/062
tests/generic/067
tests/generic/068
tests/generic/069
tests/generic/076
tests/generic/077
tests/generic/079
tests/generic/083
tests/generic/105
tests/generic/117
tests/generic/120
tests/generic/124
tests/generic/128
tests/generic/135
tests/generic/157
tests/generic/158
tests/generic/166
tests/generic/167
tests/generic/169
tests/generic/192
tests/generic/219
tests/generic/226
tests/generic/230
tests/generic/231
tests/generic/232
tests/generic/233
tests/generic/234
tests/generic/235
tests/generic/256
tests/generic/258
tests/generic/269
tests/generic/274
tests/generic/275
tests/generic/280
tests/generic/299
tests/generic/300
tests/generic/317
tests/generic/318
tests/shared/289
tests/udf/098
tests/udf/101
tests/xfs/004
tests/xfs/006
tests/xfs/007
tests/xfs/009
tests/xfs/010
tests/xfs/011
tests/xfs/013
tests/xfs/014
tests/xfs/016
tests/xfs/017
tests/xfs/018
tests/xfs/019
tests/xfs/021
tests/xfs/030
tests/xfs/033
tests/xfs/034
tests/xfs/041
tests/xfs/042
tests/xfs/044
tests/xfs/050
tests/xfs/052
tests/xfs/054
tests/xfs/065
tests/xfs/071
tests/xfs/072
tests/xfs/073
tests/xfs/076
tests/xfs/081
tests/xfs/082
tests/xfs/104
tests/xfs/106
tests/xfs/108
tests/xfs/109
tests/xfs/110
tests/xfs/111
tests/xfs/116
tests/xfs/121
tests/xfs/134
tests/xfs/136
tests/xfs/148
tests/xfs/175
tests/xfs/176
tests/xfs/177
tests/xfs/181
tests/xfs/189
tests/xfs/196
tests/xfs/199
tests/xfs/201
tests/xfs/220
tests/xfs/227
tests/xfs/244
tests/xfs/287
tests/xfs/299
tests/xfs/304