]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/xfs/xfs_sysfs.c
xfs: add xfs_mount sysfs kobject
authorBrian Foster <bfoster@redhat.com>
Mon, 14 Jul 2014 22:07:01 +0000 (08:07 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Jul 2014 22:07:01 +0000 (08:07 +1000)
commita31b1d3d89e40f585a1c6745b066774ee3263eb2
tree89f547e925078ab1fb8c24136508b62deaa45915
parent3d8712265c26546823b38eb97487262500ff13db
xfs: add xfs_mount sysfs kobject

Embed a base kobject into xfs_mount. This creates a kobject associated
with each XFS mount and a subdirectory in sysfs with the name of the
filesystem. The subdirectory lifecycle matches that of the mount. Also
add the new xfs_sysfs.[c,h] source files with some XFS sysfs
infrastructure to facilitate attribute creation.

Note that there are currently no attributes exported as part of the
xfs_mount kobject. It exists solely to serve as a per-mount container
for child objects.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/Makefile
fs/xfs/xfs_linux.h
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_sysfs.c [new file with mode: 0644]
fs/xfs/xfs_sysfs.h [new file with mode: 0644]