]> 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>
Fri, 12 Jul 2013 11:35:44 +0000 (13:35 +0200)
committerKent Overstreet <kmo@daterainc.com>
Fri, 26 Jul 2013 20:15:48 +0000 (13:15 -0700)
commit31a0d74c0072cf6de1d9364ba9ef0e0c251ec379
tree60e807d40a9fbbe411d6eed5b537a11518af1d2e
parenteeea65848d4305836b9c397169515b2ab0c2a034
bcache: Strip endline when writing the label through sysfs

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>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
drivers/md/bcache/sysfs.c