#include <file.h>
#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 <liblustre.h>
#include <lnet/lnetctl.h> /* needed for parse_dump */
GOTO(out_cleanup, rc = -ENOMEM);
ocd->ocd_connect_flags = OBD_CONNECT_VERSION | OBD_CONNECT_FID |
- OBD_CONNECT_AT;
+ OBD_CONNECT_AT | OBD_CONNECT_VBR;
#ifdef LIBLUSTRE_POSIX_ACL
ocd->ocd_connect_flags |= OBD_CONNECT_ACL;
#endif
* but it can't fix the situation that liblustre is mounted
* at "/".
*/
- chdir("/");
+ if (!chdir("/")) {}
#if 0
umount(lustre_path);
#endif