Second StorageProvider implementation, exposing regular files and directories from a backing filesystem. In system mode the backing directory is /var/lib/storage/, in user mode $XDG_STATE_HOME/storage/; entries with a .volume suffix are exposed, with the inode type determining whether the volume is reported as reg, dir or (via symlinked/bind-mounted device node) blk. Unlike the block provider, this one supports creating volumes on-demand from a small set of built-in templates: sparse-file, allocated-file, directory and subvolume.
24 lines
652 B
SYSTEMD
24 lines
652 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Simple File System Backed Storage Provider
|
|
Documentation=man:systemd-storage-fs.service(8)
|
|
Before=sockets.target
|
|
|
|
[Socket]
|
|
ListenStream=%t/systemd/io.systemd.StorageProvider/fs
|
|
FileDescriptorName=varlink
|
|
SocketMode=0600
|
|
Accept=yes
|
|
MaxConnectionsPerSource=16
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|