Whamcloud - gitweb
Branch b1_4
authoradilger <adilger>
Tue, 27 Sep 2005 00:11:34 +0000 (00:11 +0000)
committeradilger <adilger>
Tue, 27 Sep 2005 00:11:34 +0000 (00:11 +0000)
Don't try to walk directory default EA with "lfs find --obd ...".
Tested by HP.
b=9382

lustre/utils/liblustreapi.c

index 7f0fc4e..c7ff755 100644 (file)
@@ -309,7 +309,7 @@ void lov_dump_user_lmm_v1(struct lov_user_md_v1 *lum, char *dname, char *fname,
 {
         int i, obdstripe = 0;
 
-        if (obdindex != OBD_NOT_FOUND) {
+        if (*fname != '\0' && obdindex != OBD_NOT_FOUND) {
                 for (i = 0; i < lum->lmm_stripe_count; i++) {
                         if (obdindex == lum->lmm_objects[i].l_ost_idx) {
                                 printf("%s/%s\n", dname, fname);