Esempio n. 1
0
static int mdd_lfsck_layout_seq_show(struct seq_file *m, void *data)
{
    struct mdd_device *mdd = m->private;

    LASSERT(mdd != NULL);

    return lfsck_dump(m, mdd->mdd_bottom, LFSCK_TYPE_LAYOUT);
}
Esempio n. 2
0
static int mdd_lfsck_namespace_seq_show(struct seq_file *m, void *data)
{
    struct mdd_device *mdd = m->private;

    LASSERT(mdd != NULL);

    return lfsck_dump(m, mdd->mdd_bottom, LFSCK_TYPE_NAMESPACE);
}
Esempio n. 3
0
static int lprocfs_rd_lfsck_layout(char *page, char **start, off_t off,
				   int count, int *eof, void *data)
{
	struct mdd_device *mdd = data;

	LASSERT(mdd != NULL);
	*eof = 1;

	return lfsck_dump(mdd->mdd_bottom, page, count, LT_LAYOUT);
}
Esempio n. 4
0
static int lprocfs_rd_lfsck_namespace(char *page, char **start, off_t off,
				      int count, int *eof, void *data)
{
	struct mdd_device *mdd = data;
	int rc;

	LASSERT(mdd != NULL);
	*eof = 1;

	rc = lfsck_dump(mdd->mdd_bottom, page, count, LT_NAMESPACE);
	return rc;
}