]> git.baikalelectronics.ru Git - kernel.git/commit
exofs: Add SYSFS info for autologin/pNFS export
authorSachin Bhamare <sbhamare@panasas.com>
Thu, 15 Mar 2012 01:01:45 +0000 (18:01 -0700)
committerBoaz Harrosh <bharrosh@panasas.com>
Mon, 21 May 2012 09:24:01 +0000 (12:24 +0300)
commita457c2619395fe2c9d30ab9e02a8756e5c5bd873
tree0e1be3d4f929a385c666fd7b269763f59fe215e5
parentc2885d140c7d069cd2a3ea3a558496d2a8ffe83e
exofs:  Add SYSFS info for autologin/pNFS export

Introduce sysfs infrastructure for exofs cluster filesystem.

Each OSD target shows up as below in the sysfs hierarchy:
/sys/fs/exofs/<osdname>_<partition_id>/devX

Where <osdname>_<partition_id> is the unique identification
of a Superblock.

Where devX: 0 <= X < device_table_size. They are ordered
in device-table order as specified to the mkfs.exofs command

Each OSD device  devX has following attributes :
osdname - ReadOnly
systemid - ReadOnly
uri - Read/Write

It is up to user-mode to update devX/uri for support of
autologin.

These sysfs information are used both for autologin as well
as support for exporting exofs via a pNFSD server in user-mode.
(.eg NFS-Ganesha)

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/Kbuild
fs/exofs/exofs.h
fs/exofs/super.c
fs/exofs/sys.c [new file with mode: 0644]