Re: [PATCH] sd: preserve sysfs updates to max_sectors_kb

Bart Van Assche
2017-08-18T21:06:43Z

On Fri, 2017-08-18 at 16:00 -0500, Don Brace wrote:
> prevent systemd-udevd from changing a device's sysfs entry
> max_sectors_kb back to the default value.
> - max_sectors_kb can be tweaked for better performance.
> - udev can be triggered by sg_logs -t or scsi_temperature, ...
> - sd_revalidate_disk is called from udev by ioctl BLKRRPART

Hello Don,

Which udev rule changes max_sectors_kb back to the default? Why do you want
to change the kernel code instead of modifying that udev rule? What software
changes max_sectors_kb to a smaller value? Is it a udev rule or perhaps
something else?

Thanks,

Bart.