From: Oleg Drokin <[email protected]>
This somewhat long patch series removes all procfs usage in Lustre
client.
sysfs-fs-lustre file at the root of the lustre tree is added listing
the files content added to sysfs for files that were moved to sysfs.
Some other content taht did not fit sysfs or that I do not believe is essential
was moved to debugfs (though there might be more patches later to move
some of that to sysfs in some other way).
This does not yet touch lustre sysctl usage (also in /proc)
A separate set of patches would be created for this.
Hopefully this is good enough.
The code builds and runs some superbasic testing, since our testscripts
are not yet ready for the new places for thing
Dmitry Eremin (8):
staging/lustre/ldlm: move all remaining files from procfs to debugfs
staging/lustre/ptlrpc: move sptlrpc procfs entry to debugfs
staging/lustre/obdclass: remove unused sysctl enum definition
staging/lustre/fid: move all files from procfs to debugfs
staging/lustre/fld: move all files from procfs to debugfs
staging/lustre/obd: move status files from procfs to debugfs
staging/lustre/obd: remove unused proc_lustre_root
staging/lustre/obd: final removal of procfs stuff
Oleg Drokin (50):
staging/lustre: Generic helpers for sysfs
staging/lustre: Move /proc/fs/lustre root level files to sysfs
staging/lustre/llite: Preparation to move /proc/fs/lustre/llite to
sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/blocksize to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/kbytes* to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/files* to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/client_type to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/fstype to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/uuid to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/max_read_ahead_mb to
sysfs
staging/lustre/llite: move llite/max_read_ahead_per_file_mb to sysfs
staging/lustre/llite: move llite/max_read_ahead_whole_mb to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/checksum_pages to
sysfs
staging/lustre/llite: remove unused ll_max_rw_chunk
staging/lustre/llite: move /proc/fs/lustre/llite/stats_track* to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/statahead_{max,agl}
to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/lazystatfs to sysfs
staging/lustre/llite: move /proc/fs/lustre/llite/*_easize to sysfs
staging/lustre/llite: remove llite/*_cookiesize proc files
staging/lustre/llite: move /proc/fs/lustre/llite/xattr_cache to sysfs
staging/lustre/ldlm: Preparation to move /proc/fs/lustre/ldlm to sysfs
staging/lustre/ldlm: move cancel_unused_locks_before_replay to sysfs
staging/lustre/ldlm: move namespaces/resource_count to sysfs
staging/lustre/ldlm: move namespace/lock_count to sysfs
staging/lustre/ldlm: move namespaces/lru_size to sysfs
staging/lustre/ldlm: move namespaces/early_lock_cancel to sysfs
staging/lustre/ldlm: move namespaces/lock_unused_count to sysfs
staging/lustre/ldlm: move namespaces/lru_max_age to sysfs
staging/lustre/ldlm: remove server-side congested locks support
staging/lustre/ldlm: Add infrastructure to move ldlm pool controls to
sysfs
staging/lustre/ldlm: move procfs ldlm pool stats to sysfs
staging/lustre: Add debugfs root
staging/lustre: move /proc/fs/lustre/devices to debugfs
staging/lustre/ptlrpc: Add infrastructure for sysfs migration
staging/lustre/ptlrpc: move procfs threads* files to sysfs
staging/lustre/ptlrpc: move procfs high_priority_ratio file to sysfs
staging/lustre: Remove useless num_refs procfs variable
stagng/lustre/obdclass: Remove unused function lprocfs_rd_num_exports
staging/lustre/obdecho: Remove procfs registration
staging/lustre/obdclass: Prepare for procfs to sysfs migration
staging/lustre/obdclass: Move common obd proc files to sysfs
staging/lustre/llite: make llite/lov and lmv symlinks
drivers/staging/llite: Move all remaining procfs entries to debugfs
staging/lustre/mdc: move mdc-specific procfs files to sysfs
staging/lustre/osc: move suitable values from procfs to sysfs
staging/lustre/lov: Move suitable variables from procfs to sysfs
staging/lustre/lmv: Move suitable entries from procfs to sysfs
staging/lustre/obd: Rename lprocfs_add_symlink to ldebugfs_add_symlink
staging/lustre/obd: remove unused lprocfs_exp_setup() and related
functions
staging/lustre/obd: Remove nid_stats tracking
.../lustre/include/linux/libcfs/linux/libcfs.h | 1 -
drivers/staging/lustre/lustre/fid/Makefile | 3 +-
drivers/staging/lustre/lustre/fid/fid_internal.h | 6 +-
drivers/staging/lustre/lustre/fid/fid_request.c | 63 +-
drivers/staging/lustre/lustre/fid/lproc_fid.c | 49 +-
drivers/staging/lustre/lustre/fld/Makefile | 3 +-
drivers/staging/lustre/lustre/fld/fld_internal.h | 5 +-
drivers/staging/lustre/lustre/fld/fld_request.c | 66 +-
drivers/staging/lustre/lustre/fld/lproc_fld.c | 42 +-
drivers/staging/lustre/lustre/include/dt_object.h | 3 -
.../lustre/lustre/include/linux/lustre_lite.h | 1 -
drivers/staging/lustre/lustre/include/linux/obd.h | 10 +-
.../staging/lustre/lustre/include/lprocfs_status.h | 313 ++-------
drivers/staging/lustre/lustre/include/lu_object.h | 2 -
drivers/staging/lustre/lustre/include/lustre_dlm.h | 69 +-
.../staging/lustre/lustre/include/lustre_export.h | 29 -
drivers/staging/lustre/lustre/include/lustre_fid.h | 5 +-
drivers/staging/lustre/lustre/include/lustre_fld.h | 16 +-
drivers/staging/lustre/lustre/include/lustre_net.h | 17 +-
.../staging/lustre/lustre/include/lustre_quota.h | 241 -------
drivers/staging/lustre/lustre/include/lustre_sec.h | 8 -
drivers/staging/lustre/lustre/include/obd.h | 22 +-
drivers/staging/lustre/lustre/include/obd_class.h | 36 +-
.../staging/lustre/lustre/include/obd_support.h | 41 --
drivers/staging/lustre/lustre/ldlm/ldlm_internal.h | 76 ++-
drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 76 ++-
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 165 +++--
drivers/staging/lustre/lustre/ldlm/ldlm_request.c | 4 +-
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 346 +++++-----
drivers/staging/lustre/lustre/libcfs/module.c | 1 -
drivers/staging/lustre/lustre/llite/Makefile | 3 +-
.../staging/lustre/lustre/llite/llite_internal.h | 35 +-
drivers/staging/lustre/lustre/llite/llite_lib.c | 23 +-
drivers/staging/lustre/lustre/llite/lproc_llite.c | 713 ++++++++++-----------
drivers/staging/lustre/lustre/llite/super25.c | 27 +-
drivers/staging/lustre/lustre/llite/vvp_dev.c | 21 +-
drivers/staging/lustre/lustre/lmv/Makefile | 3 +-
drivers/staging/lustre/lustre/lmv/lmv_internal.h | 8 +-
drivers/staging/lustre/lustre/lmv/lmv_obd.c | 82 +--
drivers/staging/lustre/lustre/lmv/lproc_lmv.c | 105 ++-
drivers/staging/lustre/lustre/lov/Makefile | 3 +-
drivers/staging/lustre/lustre/lov/lov_internal.h | 7 -
drivers/staging/lustre/lustre/lov/lov_obd.c | 67 +-
drivers/staging/lustre/lustre/lov/lov_pool.c | 33 +-
drivers/staging/lustre/lustre/lov/lproc_lov.c | 58 +-
drivers/staging/lustre/lustre/mdc/Makefile | 3 +-
drivers/staging/lustre/lustre/mdc/lproc_mdc.c | 86 ++-
drivers/staging/lustre/lustre/mdc/mdc_internal.h | 7 -
drivers/staging/lustre/lustre/mdc/mdc_request.c | 4 +-
drivers/staging/lustre/lustre/mgc/Makefile | 3 +-
drivers/staging/lustre/lustre/mgc/lproc_mgc.c | 9 -
drivers/staging/lustre/lustre/mgc/mgc_internal.h | 11 -
drivers/staging/lustre/lustre/mgc/mgc_request.c | 8 +-
drivers/staging/lustre/lustre/obdclass/Makefile | 4 +-
drivers/staging/lustre/lustre/obdclass/class_obd.c | 37 +-
drivers/staging/lustre/lustre/obdclass/dt_object.c | 6 -
drivers/staging/lustre/lustre/obdclass/genops.c | 30 +-
.../lustre/lustre/obdclass/linux/linux-module.c | 153 +++--
.../lustre/lustre/obdclass/linux/linux-sysctl.c | 25 -
.../lustre/lustre/obdclass/lprocfs_status.c | 621 ++++++------------
drivers/staging/lustre/lustre/obdclass/lu_object.c | 4 -
.../staging/lustre/lustre/obdclass/obd_config.c | 80 ---
drivers/staging/lustre/lustre/obdecho/Makefile | 2 +-
.../staging/lustre/lustre/obdecho/echo_client.c | 9 -
drivers/staging/lustre/lustre/obdecho/lproc_echo.c | 57 --
drivers/staging/lustre/lustre/osc/Makefile | 3 +-
drivers/staging/lustre/lustre/osc/lproc_osc.c | 400 ++++++------
drivers/staging/lustre/lustre/osc/osc_internal.h | 8 -
drivers/staging/lustre/lustre/osc/osc_request.c | 4 +-
drivers/staging/lustre/lustre/ptlrpc/Makefile | 3 +-
.../staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c | 223 ++++---
.../staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 21 +-
drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c | 35 +-
drivers/staging/lustre/lustre/ptlrpc/service.c | 14 +-
drivers/staging/lustre/sysfs-fs-lustre | 543 ++++++++++++++++
75 files changed, 2449 insertions(+), 2871 deletions(-)
delete mode 100644 drivers/staging/lustre/lustre/include/lustre_quota.h
delete mode 100644 drivers/staging/lustre/lustre/obdecho/lproc_echo.c
create mode 100644 drivers/staging/lustre/sysfs-fs-lustre
--
2.1.0
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel