linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] target: make location of /var/target configurable
@ 2016-03-31 18:05 Lee Duncan
  2016-03-31 18:05 ` [PATCH 1/2] target: Make target db location configurable Lee Duncan
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Lee Duncan @ 2016-03-31 18:05 UTC (permalink / raw)
  To: linux-scsi, target-devel; +Cc: nab, hch, lkml, hare, Lee Duncan

These patches make the location of "/var/target" configurable,
though it still defauls to "/var/target".

This configuration is accomplished via the configfs
top-level target attribute "dbroot", i.e. dumping
out "/sys/kernel/config/target/dbroot" will normally
return "/var/target". Writing to this attribute
changes the loation where the kernel looks for the
target database.

** NOTE/QUESTION: no sanity checks are done on the path passed in,
   but it seems like *some* should be done. At least checking that
   it's an abosolute path (i.e. starts with '/')? Opinions?

Lee Duncan (2):
  Make target db location /var/targets configurable.
  Use the new "dbroot" configfs target attribute.

 drivers/target/target_core_alua.c     |  6 +++---
 drivers/target/target_core_configfs.c | 31 +++++++++++++++++++++++++++++++
 drivers/target/target_core_internal.h |  6 ++++++
 drivers/target/target_core_pr.c       |  2 +-
 4 files changed, 41 insertions(+), 4 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-04-05  2:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-31 18:05 [PATCH 0/2] target: make location of /var/target configurable Lee Duncan
2016-03-31 18:05 ` [PATCH 1/2] target: Make target db location configurable Lee Duncan
2016-04-01  7:57   ` Johannes Thumshirn
2016-03-31 18:05 ` [PATCH 2/2] target: use new "dbroot" target attribute Lee Duncan
2016-04-01  7:58   ` Johannes Thumshirn
2016-04-01 18:01     ` Lee Duncan
2016-04-01 18:18       ` Andy Grover
2016-04-05  1:09         ` Lee Duncan
2016-04-03  3:36 ` [PATCH 0/2] target: make location of /var/target configurable Nicholas A. Bellinger
2016-04-05  1:15   ` Lee Duncan
2016-04-05  2:15     ` Nicholas A. Bellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).