@@ -75,7 +75,7 @@ static ssize_t stripeoffset_show(struct kobject *kobj, struct attribute *attr,
obd_kset.kobj);
struct lov_desc *desc = &dev->u.lov.desc;
- return sprintf(buf, "%llu\n", desc->ld_default_stripe_offset);
+ return sprintf(buf, "%lld\n", desc->ld_default_stripe_offset);
}
static ssize_t stripeoffset_store(struct kobject *kobj, struct attribute *attr,
@@ -1226,14 +1226,14 @@ int class_process_proc_param(char *prefix, struct lprocfs_vars *lvars,
/* rc = -EINVAL; continue parsing other params */
skip++;
} else if (rc < 0) {
- CERROR("%s: error writing proc entry '%s': rc = %d\n",
+ CERROR("%s: error writing parameter '%s': rc = %d\n",
prefix, var->name, rc);
rc = 0;
} else {
- CDEBUG(D_CONFIG, "%s.%.*s: Set parameter %.*s=%s\n",
+ CDEBUG(D_CONFIG, "%s.%.*s: set parameter %.*s\n",
lustre_cfg_string(lcfg, 0),
(int)strlen(prefix) - 1, prefix,
- (int)(sval - key - 1), key, sval);
+ (int)(sval - key - 1), key);
}
}
@@ -2035,10 +2035,10 @@ enum fld_op {
struct lov_desc {
__u32 ld_tgt_count; /* how many OBD's */
__u32 ld_active_tgt_count; /* how many active */
- __u32 ld_default_stripe_count; /* how many objects are used */
+ __s32 ld_default_stripe_count; /* how many objects are used */
__u32 ld_pattern; /* default PATTERN_RAID0 */
- __u64 ld_default_stripe_size; /* in bytes */
- __u64 ld_default_stripe_offset; /* in bytes */
+ __u64 ld_default_stripe_size; /* in bytes */
+ __s64 ld_default_stripe_offset; /* starting OST index */
__u32 ld_padding_0; /* unused */
__u32 ld_qos_maxage; /* in second */
__u32 ld_padding_1; /* also fix lustre_swab_lov_desc */