target: use \n as a separator for configuration
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 23 Nov 2011 19:53:17 +0000 (20:53 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 14 Dec 2011 11:27:23 +0000 (11:27 +0000)
commit90c161b643d9531d271110876a14e68b49172d8a
tree2427163f641294c15e1fc881993994f0ebe26d8b
parent1880807adb21d741f08b747956c90bf4a6f95fbf
target: use \n as a separator for configuration

The command
| echo rd_pages=32768 > ramdisk/control

Does not work because it writes "rd_pages=32768\n" and the parser which
matches for "rd_pages=%d" does not recognize it due to the \n. One way
of fixing this would be using "echo -n" instead.
This patch adds \n to the list of separators so we don't have to use the
-n argument which I find is more convinient.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c
drivers/target/target_core_file.c
drivers/target/target_core_iblock.c
drivers/target/target_core_pscsi.c
drivers/target/target_core_rd.c