[RESEND PATCH] scsi_sysfs: Fix queue_ramp_up_period return code

2015-10-27 Thread Peter Oberparleiter
Writing a number to /sys/bus/scsi/devices//queue_ramp_up_period returns the value of that number instead of the number of bytes written. This behavior can confuse programs expecting POSIX write() semantics. Fix this by returning the number of bytes written instead. Signed-off-by: Peter

[PATCH] scsi_sysfs: Fix queue_ramp_up_period return code

2015-10-26 Thread Peter Oberparleiter
Writing a number to /sys/bus/scsi/devices//queue_ramp_up_period returns the value of that number instead of the number of bytes written. This behavior can confuse programs expecting POSIX write() semantics. Fix this by returning the number of bytes written instead. Signed-off-by: Peter