Whamcloud - gitweb
Lots of things here:
authoradilger <adilger>
Fri, 20 Dec 2002 13:24:57 +0000 (13:24 +0000)
committeradilger <adilger>
Fri, 20 Dec 2002 13:24:57 +0000 (13:24 +0000)
- 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

index 26f6a3f..2d60ffb 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/lustre_lite.h>
 #include <linux/obd_lov.h>
 
-#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);
        }