In order to issue a BLKRRPART the drive needs to be unmounted first, this
is not always possible on a machine. There is another way though:
'echo 1 > /sys/block/sda/device/rescan'. This rescans all the mode pages
so that the kernel is in sync.
Writing to cache_type does seem to be a better idea
On 14-06-06 06:55 PM, James Bottomley wrote:
On Fri, 2014-06-06 at 17:14 -0400, Pai wrote:
Hi All,
I noticed that the sysfs file cache_type is not is sync with the information in
the mode page. If we change the WCE attribute in the mode page (sdparm
--set=WCE /dev/sda and sdparm --clear=WCE
On Fri, 2014-06-06 at 17:14 -0400, Pai wrote:
> Hi All,
>
> I noticed that the sysfs file cache_type is not is sync with the information
> in the mode page. If we change the WCE attribute in the mode page (sdparm
> --set=WCE /dev/sda and sdparm --clear=WCE /dev/sda) it does not reflect this
>
Hi All,
I noticed that the sysfs file cache_type is not is sync with the information in
the mode page. If we change the WCE attribute in the mode page (sdparm
--set=WCE /dev/sda and sdparm --clear=WCE /dev/sda) it does not reflect this
in the sysfs file.
$ cat /sys/block/sda/device/scsi_disk/
4 matches
Mail list logo