Messages in this thread | | | Date | Thu, 03 May 2012 13:36:05 -0400 | From | Mark Lord <> | Subject | Re: [PATCH] scsi: Silence unnecessary warnings about ioctl to partition |
| |
On 12-05-03 08:47 AM, Paolo Bonzini wrote: > Il 03/05/2012 14:40, Mark Lord ha scritto: >>>> >>>> Breaking "hdparm --write-sector /dev/sda1"? I call it a security fix. >> No, that would plain stupid on both our parts. :) >> The --write-sector flag is allowed only for non-partitions by hdparm itself. > > Excuse my laziness--how does it check?
I don't know if there's a feasible fool-proof method or not. But what hdparm does is look at the sector offset of the device. Partitions normally have a non-zero offset.
>> But other flags commonly used by distros at boot time >> seem to be triggering the current in-kernel noise. >> Dunno which flags, I'm just ignoring them and waiting >> for the noise message to get reverted. > > That's exactly the behavior I hoped to get when I added the warnings. > Or maybe not. :) What are the messages? > i.e. what ioctl do they complain about?
As above:
>> Dunno which flags, I'm just ignoring them and waiting >> for the noise message to get reverted.
| |