Whamcloud - gitweb
Branch HEAD
authorscjody <scjody>
Wed, 9 May 2007 22:44:41 +0000 (22:44 +0000)
committerscjody <scjody>
Wed, 9 May 2007 22:44:41 +0000 (22:44 +0000)
Explicitly set inode type on liblustre mdc_create() call

Original patch from bogl@cray.com

b=12253
i=scjody
i=nathan

lustre/liblustre/super.c

index d82e1c4..6fddbf4 100644 (file)
@@ -1227,7 +1227,7 @@ static int llu_iop_mkdir_raw(struct pnode *pno, mode_t mode)
                 RETURN(err);
 
         llu_prepare_mdc_op_data(&op_data, dir, NULL, name, len, 0);
-        err = mdc_create(llu_i2sbi(dir)->ll_mdc_exp, &op_data, NULL, 0, mode,
+        err = mdc_create(llu_i2sbi(dir)->ll_mdc_exp, &op_data, NULL, 0, mode | S_IFDIR,
                          current->fsuid, current->fsgid, current->cap_effective,
                          0, &request);
         ptlrpc_req_finished(request);