]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: show read-only state in sysfs
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Feb 2013 01:05:26 +0000 (17:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Feb 2013 03:10:22 +0000 (19:10 -0800)
commit3a7ce9e47a6c988d2e250a64ec75db9095abe6a7
tree3dcb99f6b6c94df5fd32a57a12606416c32f442a
parent37b23378882dabd69ea4c58fa57ade8a2e4feb4d
nbd: show read-only state in sysfs

Pass the read-only flag to set_device_ro, so that it will be visible to
the block layer and in sysfs.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Paul Clements <Paul.Clements@steeleye.com>
Cc: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/nbd.c