Whamcloud - gitweb
LU-354 test: Change dev_set_rdonly() check to warning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 9 Mar 2012 23:08:55 +0000 (15:08 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Mar 2012 04:45:22 +0000 (00:45 -0400)
commitc65b502fe9feda61c7ad7137f5022c654c6ba501
tree33d8d2ad21ded96fad13156bac1c43858b16a8df
parentd21876c689b7339132064a3fcc9defdb96dd8501
LU-354 test: Change dev_set_rdonly() check to warning

The dev_set_rdonly() symbol is only required to fence I/O
from the underlying device for testing.  This patch is not
strictly required to build a lustre release.

In addition, this change updates the dt_ro callback to
potentially return an error code.

Change-Id: I35b0a120087845e2a57c9df6c3e1de5b9e4b6ff7
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-on: http://review.whamcloud.com/1872
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
12 files changed:
lustre/autoconf/lustre-core.m4
lustre/include/dt_object.h
lustre/include/linux/lvfs_linux.h
lustre/include/obd_support.h
lustre/kernel_patches/patches/dev_read_only-2.6.18-vanilla.patch
lustre/kernel_patches/patches/dev_read_only-2.6.27-vanilla.patch
lustre/kernel_patches/patches/dev_read_only-2.6.32-rhel6.patch
lustre/lvfs/lvfs_linux.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/obdfilter/filter.c
lustre/osd-ldiskfs/osd_handler.c