RETURN(rc);
}
+/**
+ * set the default stripe size, if unset.
+ *
+ * \param[in,out] val number of bytes per OST stripe
+ *
+ * The minimum stripe size is 64KB to ensure that a single stripe is an
+ * even multiple of a client PAGE_SIZE (IA64, PPC, etc). Otherwise, it
+ * is difficult to split dirty pages across OSCs during writes.
+ */
void lod_fix_desc_stripe_size(__u64 *val)
{
if (*val < LOV_MIN_STRIPE_SIZE) {
}
}
+/**
+ * set the filesystem default number of stripes, if unset.
+ *
+ * \param[in,out] val number of stripes
+ *
+ * A value of "0" means "use the system-wide default stripe count", which
+ * has either been inherited by now, or falls back to 1 stripe per file.
+ * A value of "-1" (0xffffffff) means "stripe over all available OSTs",
+ * and is a valid value, so is left unchanged here.
+ */
void lod_fix_desc_stripe_count(__u32 *val)
{
if (*val == 0)
*val = 1;
}
+/**
+ * set the filesystem default layout pattern
+ *
+ * \param[in,out] val LOV_PATTERN_* layout
+ *
+ * A value of "0" means "use the system-wide default layout type", which
+ * has either been inherited by now, or falls back to plain RAID0 striping.
+ */
void lod_fix_desc_pattern(__u32 *val)
{
/* from lov_setstripe */
* can pass it down the stack */
RETURN(-ENOSYS);
sval = strchr(key, '=');
- if (!sval || (*(sval + 1) == 0)) {
- CERROR("Can't parse param %s (missing '=')\n", key);
+ if (!sval || *(sval + 1) == 0) {
+ CERROR("%s: can't parse param '%s' (missing '=')\n",
+ lustre_cfg_string(lcfg, 0),
+ lustre_cfg_string(lcfg, i));
/* rc = -EINVAL; continue parsing other params */
continue;
}
if (strncmp("sec_level", key, keylen) == 0)
continue;
- CERROR("%.*s: %s unknown param %s\n",
- (int)strlen(prefix) - 1, prefix,
- (char *)lustre_cfg_string(lcfg, 0), key);
+ CERROR("%s: unknown config parameter '%s'\n",
+ lustre_cfg_string(lcfg, 0),
+ lustre_cfg_string(lcfg, i));
/* rc = -EINVAL; continue parsing other params */
skip++;
} else if (rc < 0) {
- CERROR("%s: error writing proc entry '%s': rc = %d\n",
- prefix, var->name, rc);
+ CERROR("%s: error writing proc '%s'='%s': rc = %d\n",
+ lustre_cfg_string(lcfg, 0), key, sval, rc);
rc = 0;
} else {
- CDEBUG(D_CONFIG, "%s.%.*s: Set parameter %.*s=%s\n",
- lustre_cfg_string(lcfg, 0),
- (int)strlen(prefix) - 1, prefix,
- (int)(sval - key - 1), key, sval);
+ CDEBUG(D_CONFIG, "%s: Set parameter '%s'='%s'\n",
+ lustre_cfg_string(lcfg, 0), key, sval);
}
}