Skip to content

Commit

Permalink
common: list nd resources in get-system-info.sh
Browse files Browse the repository at this point in the history
testconfig.sh.example says:

It is required to have [...] at least RO access
to all of the following resource files (containing physical addresses)
of NVDIMM devices (only root can read them by default):

/sys/bus/nd/devices/ndbus*/region*/resource
/sys/bus/nd/devices/ndbus*/region*/dax*/resource
/sys/bus/nd/devices/ndbus*/region*/pfn*/resource
/sys/bus/nd/devices/ndbus*/region*/namespace*/resource

Note: some tests require write access to:
/sys/bus/nd/devices/region*/deep_flush

Let's print all those files to be able to check
if they have required accesses.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
  • Loading branch information
ldorau committed Apr 21, 2023
1 parent acd71e8 commit 88de642
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/gha-runners/get-system-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ function system_info {
echo "**********list-avaialble-pmem-devices**********"
ls -la /dev/dax*
ls -la /dev/pmem*
echo "**********list-nd-resources**********"
ls -la /sys/bus/nd/devices/ndbus*/region*/resource
ls -la /sys/bus/nd/devices/ndbus*/region*/dax*/resource
ls -la /sys/bus/nd/devices/ndbus*/region*/pfn*/resource
ls -la /sys/bus/nd/devices/ndbus*/region*/namespace*/resource
ls -la /sys/bus/nd/devices/region*/deep_flush
}

# Call the function above to print system info.
Expand Down

0 comments on commit 88de642

Please sign in to comment.