Lines Matching full:export
52 _supported_proto file # We create the FUSE export manually
56 # $1: Export ID
59 # $4: Node to export (defaults to 'node-format')
64 # on the first mount attempt, so our export code cannot hide it.)
66 "{'execute': 'block-export-add',
78 # $1: Export ID
83 "{'execute': 'block-export-del',
94 # $1: Protocol node export mount point
102 echo 'ERROR: Length of export and original differ:' >&2
105 echo '(OK: Lengths of export and original are the same)' >&2
150 output=$(fuse_export_add 'export-err' "'mountpoint': '$EXT_MP'" error)
162 fuse_export_add 'export-err' "'mountpoint': '$EXT_MP'" error
169 fuse_export_add 'export-mp' "'mountpoint': '$EXT_MP'"
171 # Check that the export presents the same data as the original image
190 fuse_export_add 'export-img' "'mountpoint': '$TEST_IMG'"
199 # whether the FUSE export driver lets them work.)
207 echo '=== Double export ==='
210 # cannot export anything twice on the same mount point. The reason is
212 # be answered by the same qemu instance if it already has an export
215 fuse_export_add 'export-err' "'mountpoint': '$EXT_MP'" error
218 echo '=== Remove export ==='
223 fuse_export_del 'export-mp'
229 echo '=== Writable export ==='
231 fuse_export_add 'export-mp' "'mountpoint': '$EXT_MP', 'writable': true"
233 # Check that writing to the read-only export fails
242 echo "Writing to read-only export failed: OK"
244 # With CAP_DAC_OVERRIDE (e.g. when running this test as root), the export
248 _casenotrun "Opening RO export as R/W succeeded, perhaps because of" \
252 echo "Writing to read-only export failed: OK"
254 echo "Writing to read-only export failed: ERROR"
267 # Here, we need to export the protocol node -- the format layer may
272 fuse_export_del 'export-mp'
273 fuse_export_del 'export-img'
282 # Now export the protocol node
284 'export-mp' \
290 echo '--- Try growing non-growable export ---'
303 echo '--- Resize export ---'
325 echo '--- Try growing growable export ---'
327 # Now export as growable
328 fuse_export_del 'export-mp'
330 'export-mp' \
348 echo '--- Shrink export ---'
399 fuse_export_add 'export' "'mountpoint': '$EXT_MP', 'writable': true"