linux/fs/nilfs2/sysfs.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Sysfs support declarations.
 *
 * Copyright (C) 2005-2014 Nippon Telegraph and Telephone Corporation.
 * Copyright (C) 2014 HGST, Inc., a Western Digital Company.
 *
 * Written by Vyacheslav Dubeyko <[email protected]>
 */

#ifndef _NILFS_SYSFS_H
#define _NILFS_SYSFS_H

#include <linux/sysfs.h>

#define NILFS_ROOT_GROUP_NAME

/*
 * struct nilfs_sysfs_dev_subgroups - device subgroup kernel objects
 * @sg_superblock_kobj: /sys/fs/<nilfs>/<device>/superblock
 * @sg_superblock_kobj_unregister: completion state
 * @sg_segctor_kobj: /sys/fs/<nilfs>/<device>/segctor
 * @sg_segctor_kobj_unregister: completion state
 * @sg_mounted_snapshots_kobj: /sys/fs/<nilfs>/<device>/mounted_snapshots
 * @sg_mounted_snapshots_kobj_unregister: completion state
 * @sg_checkpoints_kobj: /sys/fs/<nilfs>/<device>/checkpoints
 * @sg_checkpoints_kobj_unregister: completion state
 * @sg_segments_kobj: /sys/fs/<nilfs>/<device>/segments
 * @sg_segments_kobj_unregister: completion state
 */
struct nilfs_sysfs_dev_subgroups {};

#define NILFS_COMMON_ATTR_STRUCT(name)

NILFS_COMMON_ATTR_STRUCT(feature);

#define NILFS_DEV_ATTR_STRUCT(name)

NILFS_DEV_ATTR_STRUCT();
NILFS_DEV_ATTR_STRUCT();
NILFS_DEV_ATTR_STRUCT();
NILFS_DEV_ATTR_STRUCT();
NILFS_DEV_ATTR_STRUCT();
NILFS_DEV_ATTR_STRUCT();

#define NILFS_CP_ATTR_STRUCT(name)

NILFS_CP_ATTR_STRUCT();

#define NILFS_ATTR(type, name, mode, show, store)

#define NILFS_INFO_ATTR(type, name)
#define NILFS_RO_ATTR(type, name)
#define NILFS_RW_ATTR(type, name)

#define NILFS_FEATURE_INFO_ATTR(name)
#define NILFS_FEATURE_RO_ATTR(name)
#define NILFS_FEATURE_RW_ATTR(name)

#define NILFS_DEV_INFO_ATTR(name)
#define NILFS_DEV_RO_ATTR(name)
#define NILFS_DEV_RW_ATTR(name)

#define NILFS_SEGMENTS_RO_ATTR(name)
#define NILFS_SEGMENTS_RW_ATTR(name)

#define NILFS_MOUNTED_SNAPSHOTS_RO_ATTR(name)

#define NILFS_CHECKPOINTS_RO_ATTR(name)
#define NILFS_CHECKPOINTS_RW_ATTR(name)

#define NILFS_SNAPSHOT_INFO_ATTR(name)
#define NILFS_SNAPSHOT_RO_ATTR(name)
#define NILFS_SNAPSHOT_RW_ATTR(name)

#define NILFS_SUPERBLOCK_RO_ATTR(name)
#define NILFS_SUPERBLOCK_RW_ATTR(name)

#define NILFS_SEGCTOR_INFO_ATTR(name)
#define NILFS_SEGCTOR_RO_ATTR(name)
#define NILFS_SEGCTOR_RW_ATTR(name)

#define NILFS_FEATURE_ATTR_LIST(name)
#define NILFS_DEV_ATTR_LIST(name)
#define NILFS_SEGMENTS_ATTR_LIST(name)
#define NILFS_MOUNTED_SNAPSHOTS_ATTR_LIST(name)
#define NILFS_CHECKPOINTS_ATTR_LIST(name)
#define NILFS_SNAPSHOT_ATTR_LIST(name)
#define NILFS_SUPERBLOCK_ATTR_LIST(name)
#define NILFS_SEGCTOR_ATTR_LIST(name)

#endif /* _NILFS_SYSFS_H */