diff options
author | Ilpo Järvinen <[email protected]> | 2023-07-17 16:14:53 +0300 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2023-07-25 08:52:33 -0600 |
commit | ede13008489b36f2adcdf01e3f6435c7b24610c1 (patch) | |
tree | 65bc42880bfa2efc46aa99ff51bd9f58015f890d /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 51a0c3b7f028169e40db930575dd01fe81c3e765 (diff) |
selftests/resctrl: Unmount resctrl FS before starting the first test
Resctrl FS mount/remount/umount code is hard to track. Better approach
is to use mount/umount pair for each test but that assumes resctrl FS
is not mounted beforehand.
Change umount_resctrlfs() so that it can unmount resctrl FS from any
path, and enable further simplifications into mount/remount/umount
logic by unmounting resctrl FS at the start if a pre-existing
mountpoint is found.
Suggested-by: Reinette Chatre <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Tested-by: Babu Moger <[email protected]>
Tested-by: Shaopeng Tan (Fujitsu) <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions