• Lee Duncan's avatar
    target: make target db location configurable · a96e9783
    Lee Duncan authored
    This commit adds the read-write attribute "dbroot",
    in the top-level CONFIGFS (core) target directory,
    normally /sys/kernel/config/target. This attribute
    defaults to "/var/target" but can be changed by
    writing a new pathname string to it. Changing this
    attribute is only allowed when no fabric drivers
    are loaded and the supplied value specifies an
    existing directory.
    
    Target modules that care about the target database
    root directory will be modified to use this
    attribute in a future commit.
    Signed-off-by: default avatarLee Duncan <lduncan@suse.com>
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    a96e9783
target_core_configfs.c 86.9 KB