Whamcloud - gitweb
LU-3397 lprocfs: create "export" /proc file on server 13/6713/17
authorEmoly Liu <emoly.liu@intel.com>
Thu, 9 Oct 2014 16:50:00 +0000 (00:50 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 6 Feb 2018 04:26:12 +0000 (04:26 +0000)
commitb4b773466a0f3a178364e62b8549de08a3f9ce32
tree2b0149d87a9822acc4eeccec2cadf2db9a9f5a87
parent73867ddf0c34d5e702ee4dcda850cf974bdb33da
LU-3397 lprocfs: create "export" /proc file on server

Similar to the "import" file on the client for each client-to-server
connection, it would be useful to have a file on the server in the
per-nid directory obdfilter/*/exports/$NID/export. This contains
export connection information as in the "import" file, like:
 a793e354-49c0-aa11-8c4f-a4f2b1a1a92b:
     name: MGS
     client: 10.211.55.10@tcp
     connect_flags: [ version, barrier, adaptive_timeouts, ... ]
     connect_data:
        flags: 0x2000011005002020
        instance: 0
        target_version: 2.10.51.0
        export_flags: [ ... ]

Also, sanity.sh test_0d is added to verify this patch.

Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I60896090e3a8ad872141a8d4299f0698f0a5636a
Reviewed-on: https://review.whamcloud.com/6713
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
lustre/include/lprocfs_status.h
lustre/mdt/mdt_handler.c
lustre/mgs/mgs_handler.c
lustre/obdclass/lprocfs_status.c
lustre/obdclass/lprocfs_status_server.c
lustre/ofd/ofd_obd.c
lustre/tests/sanity.sh