lkml.org 
[lkml]   [2010]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCHSET] libata: implement ->set_capacity()
    Hello,

    On 05/13/2010 06:38 PM, James Bottomley wrote:
    > Instead of making this a block sysfs attribute, since HPA is SATA only,
    > why not make it a libata attribute for the disk?
    >
    > That way on unlock, you can unlock the HPA and then trigger a partition
    > rescan of the block device (BLKRRPART) ... this is an ioctl, so you need
    > user context, but you have it if you do it from the sysfs write routine.
    > This looks to be a lot simpler than threading it up through SCSI and
    > block.

    This doesn't have anything to do with sysfs. It's called from block
    partition scan code when it detects a partition extends beyond the end
    of the device. No user intervention at all and the mechanism has been
    there for quite some years and possibly predates sysfs. Am I being
    really slow or are you looking at something else?

    Thanks.

    --
    tejun


    \
     
     \ /
      Last update: 2010-05-13 18:57    [W:4.992 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site