Re: [patch 01/31] drivers/scsi: fix proc_scsi_write to return "length" on success with remove-single-device case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-06-08 at 22:23 -0700, akpm@xxxxxxxx wrote:
> From: Suzuki <suzuki@xxxxxxxxxx>
> 
> proc_scsi_write doesn't return the "length" upon successfully removing a
> device; instead it returns 0.  This causes commands like "echo" to redo the
> write(), which ends up in something like,
> 
> $ echo "scsi remove-single-device 0 0 3 0" > /proc/scsi/scsi
> "-bash: echo: write error: No such device or address"
> 
> , even though the device was removed.

A better version of this fix is already in SCSI misc.

James


-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux