/* Old attribute name is still supported */
LUSTRE_RW_ATTR(dom_stripesize);
-/**
- * Show DoM maximum allowed stripe size.
- */
+/* Show DoM maximum allowed stripe size. */
static ssize_t dom_stripesize_max_kb_show(struct kobject *kobj,
struct attribute *attr,
char *buf)
lod->lod_dom_stripesize_max_kb);
}
-/**
- * Set DoM maximum allowed stripe size.
- */
+/* Set DoM maximum allowed stripe size. */
static ssize_t dom_stripesize_max_kb_store(struct kobject *kobj,
struct attribute *attr,
const char *buffer, size_t count)
}
LUSTRE_RW_ATTR(dom_stripesize_max_kb);
-/**
- * Show DoM default stripe size.
- */
+/* Show DoM default stripe size. */
static ssize_t dom_stripesize_cur_kb_show(struct kobject *kobj,
struct attribute *attr,
char *buf)
LUSTRE_RO_ATTR(dom_stripesize_cur_kb);
-/**
- * Show DoM threshold.
- */
+/* Show DoM threshold. */
static ssize_t dom_threshold_free_mb_show(struct kobject *kobj,
struct attribute *attr, char *buf)
{
lod->lod_dom_threshold_free_mb);
}
-/**
- * Set DoM default stripe size.
- */
+/* Set DoM default stripe size. */
static ssize_t dom_threshold_free_mb_store(struct kobject *kobj,
struct attribute *attr,
const char *buffer, size_t count)
LUSTRE_RW_ATTR(stripesize);
-/**
- * Show default stripe offset.
- */
+/* Show default stripe offset. */
static ssize_t stripeoffset_show(struct kobject *kobj, struct attribute *attr,
char *buf)
{
lod->lod_ost_descs.ltd_lov_desc.ld_default_stripe_offset);
}
-/**
+/*
* Set default stripe offset.
*
* Usually contains -1 allowing Lustre to balance objects among OST
LUSTRE_RW_ATTR(max_stripes_per_mdt);
-/**
- * Show default striping pattern (LOV_PATTERN_*).
- */
+/* Show default striping pattern (LOV_PATTERN_*). */
static ssize_t __stripetype_show(struct kobject *kobj, struct attribute *attr,
char *buf, bool is_mdt)
{
return __stripetype_show(kobj, attr, buf, false);
}
-/**
- * Set default striping pattern (a number, not a human-readable string).
- */
+/* Set default striping pattern (a number, not a human-readable string). */
static ssize_t __stripetype_store(struct kobject *kobj, struct attribute *attr,
const char *buffer, size_t count, bool is_mdt)
{
LUSTRE_RW_ATTR(mdt_stripetype);
LUSTRE_RW_ATTR(stripetype);
-/**
- * Show default number of stripes.
- */
+/* Show default number of stripes. */
static ssize_t __stripecount_show(struct kobject *kobj, struct attribute *attr,
char *buf, bool is_mdt)
{
return __stripecount_show(kobj, attr, buf, false);
}
-/**
- * Set default number of stripes.
- */
+/* Set default number of stripes. */
static ssize_t __stripecount_store(struct kobject *kobj, struct attribute *attr,
const char *buffer, size_t count,
bool is_mdt)
LUSTRE_RW_ATTR(mdt_stripecount);
LUSTRE_RW_ATTR(stripecount);
-/**
- * Show number of targets.
- */
+/* Show number of targets. */
static ssize_t __numobd_show(struct kobject *kobj, struct attribute *attr,
char *buf, bool is_mdt)
{
LUSTRE_RO_ATTR(mdt_numobd);
LUSTRE_RO_ATTR(numobd);
-/**
- * Show number of active targets.
- */
+/* Show number of active targets. */
static ssize_t __activeobd_show(struct kobject *kobj, struct attribute *attr,
char *buf, bool is_mdt)
{
LUSTRE_RO_ATTR(mdt_activeobd);
LUSTRE_RO_ATTR(activeobd);
-/**
- * Show UUID of LOD device.
- */
+/* Show UUID of LOD device. */
static ssize_t desc_uuid_show(struct kobject *kobj, struct attribute *attr,
char *buf)
{
}
LUSTRE_RO_ATTR(desc_uuid);
-/**
+/*
* Show QoS priority parameter.
*
* The printed value is a percentage value (0-100%) indicating the priority
return __qos_prio_free_show(kobj, attr, buf, false);
}
-/**
+/*
* Set QoS free space priority parameter.
*
* Set the relative priority of free OST space compared to OST load when OSTs
LUSTRE_RW_ATTR(mdt_qos_prio_free);
LUSTRE_RW_ATTR(qos_prio_free);
-/**
- * Show threshold for "same space on all OSTs" rule.
- */
+/* Show threshold for "same space on all OSTs" rule. */
static ssize_t __qos_threshold_rr_show(struct kobject *kobj,
struct attribute *attr, char *buf,
bool is_mdt)
return __qos_threshold_rr_show(kobj, attr, buf, false);
}
-/**
+/*
* Set threshold for "same space on all OSTs" rule.
*
* This sets the maximum percentage difference of free space between the most
LUSTRE_RW_ATTR(mdt_qos_threshold_rr);
LUSTRE_RW_ATTR(qos_threshold_rr);
-/**
- * Show expiration period used to refresh cached statfs data, which
+/* Show expiration period used to refresh cached statfs data, which
* is used to implement QoS/RR striping allocation algorithm.
*/
static ssize_t __qos_maxage_show(struct kobject *kobj, struct attribute *attr,
return __qos_maxage_show(kobj, attr, buf, true);
}
-/**
- * Set expiration period used to refresh cached statfs data.
- */
+/* Set expiration period used to refresh cached statfs data. */
static ssize_t __qos_maxage_store(struct kobject *kobj, struct attribute *attr,
const char *buffer, size_t count, bool is_mdt)
{
}
/**
- * Show active/inactive status for OST found by lod_osts_seq_next().
- *
- * \param[in] m seq file
- * \param[in] v unused for single entry
+ * lod_tgts_seq_show() - Show active/inactive status for OST found by
+ * lod_osts_seq_next().
+ * @p: seq file
+ * @v: unused for single entry
*
- * \retval 0 on success
- * \retval negative error code if failed
+ * Return:
+ * * %0 on success
+ * * %negative error code if failed
*/
static int lod_tgts_seq_show(struct seq_file *p, void *v)
{
return 0;
}
-/**
- * Show whether special failout mode for testing is enabled or not.
- */
+/* Show whether special failout mode for testing is enabled or not. */
static ssize_t lmv_failout_show(struct kobject *kobj, struct attribute *attr,
char *buf)
{
return scnprintf(buf, PAGE_SIZE, "%d\n", lod->lod_lmv_failout ? 1 : 0);
}
-/**
+/*
* Enable/disable a special failout mode for testing.
*
* This determines whether the LMV will try to continue processing a striped
};
/**
- * Initialize procfs entries for LOD.
+ * lod_procfs_init() - Initialize procfs entries for LOD.
+ * @lod: LOD device
*
- * \param[in] lod LOD device
- *
- * \retval 0 on success
- * \retval negative error code if failed
+ * Return:
+ * * %0 on success
+ * * %negative error code if failed
*/
int lod_procfs_init(struct lod_device *lod)
{
}
/**
- * Cleanup procfs entries registred for LOD.
- *
- * \param[in] lod LOD device
+ * lod_procfs_fini() - Cleanup procfs entries registred for LOD.
+ * @lod: LOD device
*/
void lod_procfs_fini(struct lod_device *lod)
{