Whamcloud - gitweb
LU-592 1.8 <-> 2.1 interop: missing LMV on client
authorNiu Yawei <niu@whamcloud.com>
Tue, 16 Aug 2011 09:38:20 +0000 (02:38 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 19 Aug 2011 16:57:21 +0000 (12:57 -0400)
commitfdf3dec6c60c734fdbb7b5b8da0f3040c6b54748
tree7b6a41d47214d34fcf7a886e0b0c486a6b185d84
parent2d86bd1e70106afaff5200ba819303b16c2e587d
LU-592 1.8 <-> 2.1 interop: missing LMV on client

When the cluster is upgraded from 1.8, client will not have LMV layer,
and the "ll_md_exp" is pointing to MDC directly, so the code which
assuming "ll_md_exp" as LMV need be revised:

- ll_dir_ioctl(LL_IOC_GETOBDCOUNT) should return 1 for MDC case;
- mdc_iocontrol() needs to handle the OBD_IOC_QUOTACTL as well when the
  "ll_md_exp" is MDC;

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I3659a5f8076125c9b2012826521c44540e65a75e
Reviewed-on: http://review.whamcloud.com/1236
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd.h
lustre/llite/dir.c
lustre/lmv/lmv_obd.c
lustre/lov/lov_obd.c
lustre/mdc/mdc_request.c