Closed pkalever closed 6 years ago
curretly if there exist any stale hba-only directories,
$ ls /sys/kernel/config/target/core/user_0/ hba_info hba_mode
Then backend creation fails,
$ targetcli /backstores/fileio create block file 1M This _Backstore already exists in configFS
We will have to restart target.service or restore the configuration again to clear the stale hba-only dirs.
This patch checks for hba directory before creating one, if it is already existing and found to be stale then removes it.
Thanks to "Maurizio Lombardi mlombard@redhat.com" for debugging along
Signed-off-by: Prasanna Kumar Kalever prasanna.kalever@redhat.com
review-request: @maurizio-lombardi @agrover
@agrover I have made the changes as per your suggestions. Thanks!
curretly if there exist any stale hba-only directories,
$ ls /sys/kernel/config/target/core/user_0/ hba_info hba_mode
Then backend creation fails,
$ targetcli /backstores/fileio create block file 1M This _Backstore already exists in configFS
We will have to restart target.service or restore the configuration again to clear the stale hba-only dirs.
This patch checks for hba directory before creating one, if it is already existing and found to be stale then removes it.
Thanks to "Maurizio Lombardi mlombard@redhat.com" for debugging along
Signed-off-by: Prasanna Kumar Kalever prasanna.kalever@redhat.com