Whamcloud - gitweb
LU-6071 client: Fix mkdir -i 1 from DNE2 client to DNE1 server 89/13189/3
authorArtem Blagodarenko <artem_blagodarenko@xyratex.com>
Mon, 29 Dec 2014 11:32:51 +0000 (14:32 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 22 Jan 2015 20:05:40 +0000 (20:05 +0000)
commit426f9c0365d1e8528b07b89f1d7c0a7f2f80e3a5
treed433adafad66689f10b51c6e11452a53ea454d84
parent193f39a6ce80e51809b00715c3740a2f977ece09
LU-6071 client: Fix mkdir -i 1 from DNE2 client to DNE1 server

After DNE phase 2 has been added to client it sends
create request to slave MDT.  DNT1-only server doesn't
expect request to slave MDT from client. It expects
only cross-mdt request from master MDT. Thus if DNE2
client tries to "mkdir -i 1" on DNE1 server, then
LBUG happened.

This patch adds OBD_CONNECT_DIR_STRIPE connection
flag check on client side. If striped directories are not
supported by server, then create requrest is sent to
master MDT.

Signed-off-by: Artem Blagodarenko <artem_blagodarenko@xyratex.com>
Xyratex-bug-id: MRP-2319
Change-Id: I837a7ac144bf4aaf5039c55d03cabc0cd9847faa
Reviewed-on: http://review.whamcloud.com/13189
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lmv/lmv_obd.c