|
From: Damian P. <da...@da...> - 2006-02-09 13:06:29
|
I want to implement write protection in iet. The included patch is my first attempt, it works with Windows initiators, the disk is recognized as protected. Unfortunatelly there are a few problems caused by lack of my knowledge in SCSI and iSCSI topic. The biggest is that it doesn't work on Linux. Linux tests the write protect flag only if the device is removable. Second problem is when I swith the ReadOnly flag on and then restart iscsi-target, Windows does not recognize that disk is now write protected, it doesn't send the sense command. I think both problems are related and could be solved if the disk is seen as removable. Can someone give me any hint how to do this? -- Damian Pietras |