]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bcache: Strip endline when writing the label through sysfs
authorGabriel de Perthuis <g2p.code@gmail.com>
Tue, 24 Sep 2013 06:17:28 +0000 (23:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:13:09 +0000 (07:13 -0700)
commitbb343115253500dcee63ea78d765e4c2f2a57fc4
treebc0cf6166685c72cd36400c4cb71758f42d56b85
parent0a22f485eee6ae8da77c3e37c8856e025678cdb0
bcache: Strip endline when writing the label through sysfs

commit aee6f1cfff3ce240eb4b43b41ca466b907acbd2e upstream.

sysfs attributes with unusual characters have crappy failure modes
in Squeeze (udev 164); later versions of udev are unaffected.

This should make these characters more unusual.

Signed-off-by: Gabriel de Perthuis <g2p.code@gmail.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bcache/sysfs.c