RE: [PATCH 1/7] aacraid: Greater than 2TB capacity support

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

 



From: Christoph Hellwig [mailto:hch@xxxxxxxxxxxxx] sez:

>> -
>> +			if (scsicmd->request->rq_disk)
>> +				strlcpy(fsa_dev_ptr[cid].devname,
>> +				scsicmd->request->rq_disk->disk_name,
>> +			  	min(sizeof(fsa_dev_ptr[cid].devname),
>> +
sizeof(scsicmd->request->rq_disk->disk_name) + 1));
>
>do we really need this?  A driver really shouldn't look at ->rq_disk

This is not changing the code, it is in all versions of the driver. It
is merely replacing a constant (8) with a sizeof operator. This code is
in support of an existing ioctl used by the management software to track
the naming of the devices. Removing this will break the management
software.

-- Mark

-
: 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