Lines Matching full:export
52 _supported_proto file # We create the FUSE export manually
55 # $1: Export ID
58 # $4: Node to export (defaults to 'node-format')
63 # on the first mount attempt, so our export code cannot hide it.)
65 "{'execute': 'block-export-add',
77 # $1: Export ID
82 "{'execute': 'block-export-del',
93 # $1: Protocol node export mount point
101 echo 'ERROR: Length of export and original differ:' >&2
104 echo '(OK: Lengths of export and original are the same)' >&2
149 output=$(fuse_export_add 'export-err' "'mountpoint': '$EXT_MP'" error)
161 fuse_export_add 'export-err' "'mountpoint': '$EXT_MP'" error
168 fuse_export_add 'export-mp' "'mountpoint': '$EXT_MP'"
170 # Check that the export presents the same data as the original image
189 fuse_export_add 'export-img' "'mountpoint': '$TEST_IMG'"
198 # whether the FUSE export driver lets them work.)
206 echo '=== Double export ==='
209 # cannot export anything twice on the same mount point. The reason is
211 # be answered by the same qemu instance if it already has an export
214 fuse_export_add 'export-err' "'mountpoint': '$EXT_MP'" error
217 echo '=== Remove export ==='
222 fuse_export_del 'export-mp'
228 echo '=== Writable export ==='
230 fuse_export_add 'export-mp' "'mountpoint': '$EXT_MP', 'writable': true"
232 # Check that writing to the read-only export fails
241 echo "Writing to read-only export failed: OK"
243 # With CAP_DAC_OVERRIDE (e.g. when running this test as root), the export
247 _casenotrun "Opening RO export as R/W succeeded, perhaps because of" \
251 echo "Writing to read-only export failed: OK"
253 echo "Writing to read-only export failed: ERROR"
266 # Here, we need to export the protocol node -- the format layer may
271 fuse_export_del 'export-mp'
272 fuse_export_del 'export-img'
281 # Now export the protocol node
283 'export-mp' \
289 echo '--- Try growing non-growable export ---'
302 echo '--- Resize export ---'
324 echo '--- Try growing growable export ---'
326 # Now export as growable
327 fuse_export_del 'export-mp'
329 'export-mp' \
347 echo '--- Shrink export ---'
398 fuse_export_add 'export' "'mountpoint': '$EXT_MP', 'writable': true"