Description: use i_size_read and i_size_write in 2.6 port
Details : replace inode->i_size access with i_size_read/write()
+Severity : normal
+Bugzilla : 13600
+Description: "lfs find -obd UUID" prints directories
+Details : "lfs find -obd UUID" will return all directory names instead
+ of just file names. It is incorrect because the directories
+ do not reside on the OSTs.
+
--------------------------------------------------------------------------------
2007-09-27 Cluster File Systems, Inc. <info@clusterfs.com>
}
run_test 56h "check lfs find ! -name ============================="
+test_56i() {
+ tdir=${tdir}i
+ mkdir -p $DIR/$tdir
+ UUID=`$GETSTRIPE $DIR/$tdir | awk '/0: / { print $2 }'`
+ OUT="`$LFIND -ost $UUID $DIR/$tdir`"
+ [ "$OUT" ] && error "$LFIND returned directory '$OUT'" || true
+}
+run_test 56i "check 'lfs find -ost UUID' skips directories ======="
+
test_57a() {
remote_mds && skip "remote MDS" && return
if (errno != EEXIST && errno != EALREADY)
errmsg = strerror(errno);
- rc = -errno;
fprintf(stderr, "error on ioctl "LPX64" for '%s' (%d): %s\n",
(__u64)LL_IOC_LOV_SETSTRIPE, name, fd, errmsg);
}
decision = -1;
/* If a OST UUID is given, and some OST matches, check it here. */
- if (decision != -1 && param->obdindex != OBD_NOT_FOUND &&
- S_ISREG(st->st_mode)) {
- /* Only those files should be accepted, which have a strip on
- * the specified OST. */
+ if (decision != -1 && param->obdindex != OBD_NOT_FOUND) {
+ if (!S_ISREG(st->st_mode))
+ goto decided;
+
+ /* Only those files should be accepted, which have a
+ * stripe on the specified OST. */
if (!param->lmd->lmd_lmm.lmm_stripe_count) {
decision = -1;
} else {
printf("\n");
}
+decided:
/* Do not get down anymore? */
if (param->depth == param->maxdepth)
return 1;