summaryrefslogtreecommitdiff
path: root/drivers/atm/adummy.c
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2018-04-06 11:31:41 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2018-04-19 00:47:02 -0400
commit78a6295c71cb276f8ab0bfc786f3543a4e756a8f (patch)
tree6bcd3b7a9a5eb3122fec0da1ca8ff4b7e1beccf8 /drivers/atm/adummy.c
parentbcbba7bb54e9a7c6ed35bbd5514e0507d8c495cb (diff)
downloadlinux-78a6295c71cb276f8ab0bfc786f3543a4e756a8f.tar.gz
linux-78a6295c71cb276f8ab0bfc786f3543a4e756a8f.tar.bz2
linux-78a6295c71cb276f8ab0bfc786f3543a4e756a8f.zip
scsi: target: prefer dbroot of /etc/target over /var/target
The target database root directory, dbroot, has defaulted to /var/target for a while, but its main client, targetcli-fb, has been moving it to /etc/target for quite some time. With the plethora of target drivers now appearing, it has become more difficult to initialize this attribute before use by any child drivers. If the directory /etc/target exists, use that as the DB root. Otherwise, fall back to using /var/target. The ability to override this dbroot attribute still exists via sysfs. Signed-off-by: Lee Duncan <lduncan@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/atm/adummy.c')
0 files changed, 0 insertions, 0 deletions