mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
22b88d4f52
Make sure we do the right thing with blockdevices with a hard read-only flag. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
25 lines
946 B
Plaintext
25 lines
946 B
Plaintext
QA output created by 200
|
|
setting device read-only
|
|
mounting read-only block device:
|
|
mount: block device SCRATCH_DEV is write-protected, mounting read-only
|
|
touching file on read-only filesystem (should fail)
|
|
touch: cannot touch `SCRATCH_MNT/foo': Read-only file system
|
|
unmounting read-only filesystem
|
|
setting device read-write
|
|
mounting read-write block device:
|
|
touch files
|
|
going down:
|
|
unmounting shutdown filesystem:
|
|
setting device read-only
|
|
mounting filesystem that needs recovery on a read-only device:
|
|
mount: block device SCRATCH_DEV is write-protected, mounting read-only
|
|
mount: cannot mount block device SCRATCH_DEV read-only
|
|
unmounting read-only filesystem
|
|
umount: SCRATCH_MNT: not mounted
|
|
mounting filesystem with -o norecovery on a read-only device:
|
|
mount: block device SCRATCH_DEV is write-protected, mounting read-only
|
|
unmounting read-only filesystem
|
|
setting device read-write
|
|
mounting filesystem that needs recovery with -o ro:
|
|
*** done
|