X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2Fllite_lib.c;h=c12695beb1dd6d6bb251d1cb2a64240545b57211;hb=526e9c54f2113da0c1484e70791167f7d16cbf00;hp=7baec8c65702b79302bdb1b4c8490fff7700e43b;hpb=033480704626652b36490a50a6359e74c1490690;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/llite_lib.c b/lustre/liblustre/llite_lib.c index 7baec8c..c12695b 100644 --- a/lustre/liblustre/llite_lib.c +++ b/lustre/liblustre/llite_lib.c @@ -57,10 +57,6 @@ #include #endif -/* both sys/queue.h (libsysio require it) and portals/lists.h have definition - * of 'LIST_HEAD'. undef it to suppress warnings - */ -#undef LIST_HEAD #include #include /* needed for parse_dump */ @@ -177,7 +173,8 @@ int liblustre_process_log(struct config_llog_instance *cfg, GOTO(out_cleanup, rc = -ENOMEM); ocd->ocd_connect_flags = OBD_CONNECT_VERSION | OBD_CONNECT_FID | - OBD_CONNECT_AT | OBD_CONNECT_VBR; + OBD_CONNECT_AT | OBD_CONNECT_VBR | + OBD_CONNECT_FULL20; #ifdef LIBLUSTRE_POSIX_ACL ocd->ocd_connect_flags |= OBD_CONNECT_ACL; #endif @@ -409,7 +406,7 @@ void __liblustre_cleanup_(void) * but it can't fix the situation that liblustre is mounted * at "/". */ - chdir("/"); + if (!chdir("/")) {} #if 0 umount(lustre_path); #endif