From 8f77c8487d4e3c63ef5363cc6079f2a1a02e43e4 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 20 Dec 2002 13:24:57 +0000 Subject: [PATCH] Lots of things here: - hopefully fix for bug 519 (don't write stripe MD to the MDS each open) - cleanup of delayed-file-create code - proper abstraction of user-supplied stripe data into LOV/OSC - fix bogus LBUG in ll_file_release when lsm is NULL (just means that no objects were allocated for this file yet) - make lstripe help less verbose - remove old lovstripe program, it is obsoleted by lstripe. Sadly, lstripe does not yet work, although acceptance-small.sh runs fine so I'm checking this in so I can debug lstripe under UML. --- lustre/utils/lfind.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lustre/utils/lfind.c b/lustre/utils/lfind.c index 26f6a3f..2d60ffb 100644 --- a/lustre/utils/lfind.c +++ b/lustre/utils/lfind.c @@ -16,7 +16,7 @@ #include #include -#warning Max obds per lov currently hardcoded to 1000 in lov/lov_obd.c +/* XXX Max obds per lov currently hardcoded to 1000 in lov/lov_obd.c */ #define MAX_LOV_UUID_COUNT 1000 #define OBD_NOT_FOUND ((__u32)-1) @@ -128,7 +128,7 @@ init() else buflen = lmmlen; -#warning max ioctl buffer size currently hardcoded to 8192 + /* XXX max ioctl buffer size currently hardcoded to 8192 */ if (buflen > 8192) { int nuuids, remaining, nluoinfos; @@ -217,7 +217,9 @@ processFile(const char *path, const struct stat *sp, int flag, struct FTW *ftwp) close(fd); - if (query || verbose || lmm->lmm_objects[obdindex].l_object_id) + if (query || verbose || + (obdindex != OBD_NOT_FOUND && + lmm->lmm_objects[obdindex].l_object_id)) printf("%s\n", path); if (verbose) { @@ -225,6 +227,7 @@ processFile(const char *path, const struct stat *sp, int flag, struct FTW *ftwp) printf("lmm_object_id: "LPX64"\n", lmm->lmm_object_id); printf("lmm_stripe_offset: %d\n", lmm->lmm_stripe_offset); printf("lmm_stripe_count: %d\n", lmm->lmm_stripe_count); + printf("lmm_stripe_size: "LPU64"\n", lmm->lmm_stripe_size); printf("lmm_ost_count: %d\n", lmm->lmm_ost_count); printf("lmm_stripe_pattern: %d\n", lmm->lmm_stripe_pattern); } -- 1.8.3.1