The "dbroot" configfs parameter allows to set the directory where
persistent information are stored by the kernel, such as persistent
reservations or ALUA.
Targetcli tries to change the value of the "dbroot" parameter from
/var/target/ to /etc/target/. However, if the directory passed to
"dbroot" does not exist, the kernel returns an "invalid argument"
error:
# targetcli
[Errno 22] Invalid argument
With this patch, a more meaningful message is displayed instead:
# targetcli
Cannot set dbroot to /etc/target. Please check if this directory exists.
The "dbroot" configfs parameter allows to set the directory where persistent information are stored by the kernel, such as persistent reservations or ALUA.
Targetcli tries to change the value of the "dbroot" parameter from /var/target/ to /etc/target/. However, if the directory passed to "dbroot" does not exist, the kernel returns an "invalid argument" error:
With this patch, a more meaningful message is displayed instead:
This patch fixes issue #103.
Signed-off-by: Christophe Vu-Brugier cvubrugier@fastmail.fm