summaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_pr.c
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2016-04-14 18:18:51 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2016-05-09 23:06:20 -0700
commitfdddf932269a75c3dd1c68d82b9a0fbc1821a2a8 (patch)
tree3f682dbe21533e9156b969a97fb1c30f34d8ab96 /drivers/target/target_core_pr.c
parenta96e9783e05851d5f06da0ae7635aec55a228e3d (diff)
downloadlinux-stable-fdddf932269a75c3dd1c68d82b9a0fbc1821a2a8.tar.gz
linux-stable-fdddf932269a75c3dd1c68d82b9a0fbc1821a2a8.tar.bz2
linux-stable-fdddf932269a75c3dd1c68d82b9a0fbc1821a2a8.zip
target: use new "dbroot" target attribute
This commit updates the target core ALUA and PR modules to use the new "dbroot" attribute instead of assuming the target database is in "/var/target". Signed-off-by: Lee Duncan <lduncan@suse.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_pr.c')
-rw-r--r--drivers/target/target_core_pr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c
index b1795735eafc..47463c99c318 100644
--- a/drivers/target/target_core_pr.c
+++ b/drivers/target/target_core_pr.c
@@ -1985,7 +1985,7 @@ static int __core_scsi3_write_aptpl_to_file(
return -EMSGSIZE;
}
- snprintf(path, 512, "/var/target/pr/aptpl_%s", &wwn->unit_serial[0]);
+ snprintf(path, 512, "%s/pr/aptpl_%s", db_root, &wwn->unit_serial[0]);
file = filp_open(path, flags, 0600);
if (IS_ERR(file)) {
pr_err("filp_open(%s) for APTPL metadata"