• Alex Tomas's avatar
    [PATCH] Re: hot scsi disk resize · d685cc6d
    Alex Tomas authored
    Hi!
    
    Here is new version of the patch. All procfs-related stuff has been removed.
    One may rescan device size writing something to /sysfs/.../<scsi device>/rescan:
    
    root@zefir:~# echo 1 >/sysfs/bus/scsi/devices/0\:0\:1\:0/rescan
    root@zefir:~# dmesg
    scsi0:A:1:0: Tagged Queuing enabled.  Depth 64
    scsi: host 0 channel 0 id 1 lun16384 has a LUN larger than allowed by the host adapter
    SCSI device sda: 2097152 512-byte hdwr sectors (1074 MB)
    SCSI device sda: drive cache: write through
     sda: unknown partition table
    Attached scsi disk sda at scsi0, channel 0, id 1, lun 0
    SCSI device sda: 125829120 512-byte hdwr sectors (64425 MB)
    root@zefir:~#
    d685cc6d
scsi_sysfs.c 8.22 KB