Whamcloud - gitweb
LU-478 Set tunables on lvm device
authorNiu Yawei <niu@whamcloud.com>
Mon, 4 Jul 2011 09:37:43 +0000 (02:37 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 6 Jul 2011 17:19:47 +0000 (10:19 -0700)
commit536981b0f297a2fa4ae53d4ab81b38e183ee43c0
tree75b56efbe10e6727eb7f2405a42afdd2f3c0c6ee
parentfc73791d9bd7e71538a96f8700a8cca737598e1a
LU-478 Set tunables on lvm device

- The set_blockdev_tunables() shouldn't chop the tail digit on
  the /dev/mapper/xxx device.
- Sometimes, the /sys/block/dm-x doesn't have the max_[hw]_sectors_kb,
  such errors should be tolerated.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I54c0e427772d8a1066a37d011d4cfd18240374b5
Reviewed-on: http://review.whamcloud.com/1046
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/utils/mount_lustre.c