# output: No return values, environment variables are exported
get_lustre_env() {
-
- export mds1_FSTYPE=${mds1_FSTYPE:-$(facet_fstype mds1)}
- export ost1_FSTYPE=${ost1_FSTYPE:-$(facet_fstype ost1)}
-
- export MGS_VERSION=$(lustre_version_code mgs)
- export MDS1_VERSION=$(lustre_version_code mds1)
- export OST1_VERSION=$(lustre_version_code ost1)
- export CLIENT_VERSION=$(lustre_version_code client)
-
- # import server-side version information into local variables
- # so they can be used in tests instead of checked separately
- # MGS_OS_VERSION_ID, MGS_OS_ID, MGS_OS_ID_LIKE,
- # MDS1_OS_VERSION_ID, MDS1_OS_ID, MDS1_OS_ID_LIKE,
- # OST1_OS_VERSION_ID, OST1_OS_ID, OST1_OS_ID_LIKE,
- # CLIENT_OS_VERSION_ID, CLIENT_OS_ID, CLIENT_OS_ID_LIKE
- lustre_os_release mgs
- lustre_os_release mds1
- lustre_os_release ost1
- lustre_os_release client
+ if ! $RPC_MODE; then
+ export mds1_FSTYPE=${mds1_FSTYPE:-$(facet_fstype mds1)}
+ export ost1_FSTYPE=${ost1_FSTYPE:-$(facet_fstype ost1)}
+
+ export MGS_VERSION=$(lustre_version_code mgs)
+ export MDS1_VERSION=$(lustre_version_code mds1)
+ export OST1_VERSION=$(lustre_version_code ost1)
+ export CLIENT_VERSION=$(lustre_version_code client)
+
+ # import server-side version information into local variables
+ # so they can be used in tests instead of checked separately
+ # MGS_OS_VERSION_ID, MGS_OS_ID, MGS_OS_ID_LIKE,
+ # MDS1_OS_VERSION_ID, MDS1_OS_ID, MDS1_OS_ID_LIKE,
+ # OST1_OS_VERSION_ID, OST1_OS_ID, OST1_OS_ID_LIKE,
+ # CLIENT_OS_VERSION_ID, CLIENT_OS_ID, CLIENT_OS_ID_LIKE
+ lustre_os_release mgs
+ lustre_os_release mds1
+ lustre_os_release ost1
+ lustre_os_release client
+ fi
# Prefer using "mds1" directly instead of SINGLEMDS.
# Keep this for compat until it is removed from scripts.