Hi Sebastian, On Sat, 2014-08-30 at 01:15 +0200, Sebastian Herbszt wrote: > Hello, > > the cover letter for "TCM Referrals support" [1] describes the map format for > 'lba_map' as: > <segment size> <segment multiplier> > <start lba> <end lba> <pgX:stateY> ... <pgN:stateM> > ... > > target_core_store_dev_lba_map() does not seem to get the whole map at once, > but line by line, so this does not work (anymore?). What am I missing? > > It seems to work if I change the delimiter from "\n" to ";" and put the whole > map on one line. > > [1] http://thread.gmane.org/gmane.linux.scsi/85530 > IIRC, this is done line-by-line because configfs (and sysfs as well) attributes are limited to a single page sized payload, so attempting to pass the entire map in one go when the length exceeds PAGE_SIZE won't work given the existing limitation. Adding Hannes to the CC' again, as he's responsible for Referrals support. Thanks, --nab -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html