]> git.hungrycats.org Git - linux/commit
[PATCH] Re: hot scsi disk resize
authorAlex Tomas <alexey@technomagesinc.com>
Fri, 14 Mar 2003 12:43:43 +0000 (06:43 -0600)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Fri, 14 Mar 2003 12:43:43 +0000 (06:43 -0600)
commitd685cc6d9abb35e979a606673a8029bcb5aa9286
treea75a8f69a24c383a0c618d446b807eebd2179dfa
parent7fe8f35f318297dce7e35333a692c83b0630f0ef
[PATCH] Re: hot scsi disk resize

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:~#
drivers/scsi/hosts.h
drivers/scsi/scsi.c
drivers/scsi/scsi_sysfs.c
drivers/scsi/sd.c
fs/block_dev.c