[SLOF] [PATCH 0/4] Block write support for SCSI and virtio-block disks

Thomas Huth thuth at redhat.com
Tue Nov 15 22:20:49 AEDT 2016


On 15.11.2016 10:03, Nikunj A Dadhania wrote:
> Thomas Huth <thuth at redhat.com> writes:
> 
>> On 15.11.2016 03:54, Nikunj A Dadhania wrote:
>>> Thomas Huth <thuth at redhat.com> writes:
[...]
>> Additionally I'll implement blocking of write access to the whole disk
>> at the disk-label level, so you can only write if you opened the device
>> tree node with a partition number specified. I think that should give us
>> enough safety here.
> 
> Yes, that is a good check. Can we just use this? As our primary concern
> is writing from SLOF prompt. So that will not allow me writing to first
> 63 cylinders.

As I mentioned in my other mail, this unfortunately won't work, since
GRUB always opens the whole disk, not the partition. So I think we
should only check for the first 34 (or 63?) sectors at the driver level.

 Thomas



More information about the SLOF mailing list