Re: [PATCH] tcm: Convert backstore ->set_configfs_dev_params() to use parser.h

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

 



On Tue, 2010-11-09 at 05:03 -0500, Christoph Hellwig wrote:
> > +	opts = kstrdup(page, GFP_KERNEL);
> 
> What do you need the this copy for?
> 
> Otherwise looks good.
> 

<nod> thanks for the pointer here..

Btw, the kstrdup() is required because the configfs attribute store
function will be passing a 'const char *page' that is propigated from
target_core_configfs.c: target_core_store_dev_control() out to
->set_configfs_dev_params() backend code.






--
To unsubscribe from this list: 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