Bug#701814: os-prober: damages XFS exported via iSCSI but not mounted locally; potential data loss
Hi,
2013/3/6 <q1werty@i.com.ua>:
> Hi,
> Thanks for your comments.
>
>> IMO the logic for setting the right fs dependent option to mount the fs in true
>> read-only mode should be implemented in the mount command instead of
>> os-prober to let other programs using mount use it, too.
>
> I've just got another idea, may this bug be assigned to iscsitarget instead?
> Could iscsitargdet do some kind of lock on device before exporting it, in order to
> prevent such local mounts?
ISCSI is just one technology used for mounting block devices elsewhere.
Consider NBD or DRBD for example. IMO the non-destructive behavior should be
implemented on the reader side, in our case in read-only mount covering the case
when writer is not running thus could not block the device.
Cheers,
Balint
Reply to: