X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fll_dirstripe_verify.c;h=310587d5fc7863d9a1ccbd9fbde5f78fb7844325;hb=0c36574b5bb9d52e5d5c62f3f8c08977553b143c;hp=bfbe7bc6d489de69203f10fcb64fefb2730e9083;hpb=3de901fceee79de12a31428bcc6ba3a00f10d1fe;p=fs%2Flustre-release.git diff --git a/lustre/tests/ll_dirstripe_verify.c b/lustre/tests/ll_dirstripe_verify.c index bfbe7bc..310587d 100644 --- a/lustre/tests/ll_dirstripe_verify.c +++ b/lustre/tests/ll_dirstripe_verify.c @@ -40,7 +40,7 @@ int compare(struct lov_user_md *lum_dir, struct lov_user_md *lum_file1, stripe_count = (int)lum_dir->lmm_stripe_count; if (stripe_count == 0) { - fd = open("/proc/fs/lustre/lov/lov1/stripecount", O_RDONLY); + fd = open("/proc/fs/lustre/llite/fs0/lov/stripecount", O_RDONLY); if (fd == -1) { fprintf(stderr, "open proc file error: %s\n", strerror(errno)); @@ -60,7 +60,7 @@ int compare(struct lov_user_md *lum_dir, struct lov_user_md *lum_file1, stripe_size = (int)lum_dir->lmm_stripe_size; if (stripe_size == 0) { - fd = open("/proc/fs/lustre/lov/lov1/stripesize", O_RDONLY); + fd = open("/proc/fs/lustre/llite/fs0/lov/stripesize", O_RDONLY); if (fd == -1) { fprintf(stderr, "open proc file error: %s\n", strerror(errno)); @@ -77,7 +77,7 @@ int compare(struct lov_user_md *lum_dir, struct lov_user_md *lum_file1, close(fd); } - fd = open("/proc/fs/lustre/lov/lov1/numobd", O_RDONLY); + fd = open("/proc/fs/lustre/llite/fs0/lov/numobd", O_RDONLY); if(fd == -1) { fprintf(stderr, "open proc file error: %s\n", strerror(errno)); @@ -95,7 +95,9 @@ int compare(struct lov_user_md *lum_dir, struct lov_user_md *lum_file1, if ((lum_file1->lmm_stripe_count != stripe_count) || (lum_file1->lmm_stripe_size != stripe_size)) + { return -1; + } stripe_offset = (short int)lum_dir->lmm_stripe_offset; if (stripe_offset != -1) {