mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
5f7ecd610c
Let's simplify things and drop the logic that /var/lib/machines is setup as auto-growing btrfs loopback file /var/lib/machines.raw. THis was done in order to make quota available for machine management, but quite frankly never really worked properly, as we couldn't grow the file system in sync with its use properly. Moreover philosophically it's problematic overriding the admin's choice of file system like this. Let's hence drop this, and simplify things. Deleting code is a good feeling. Now that regular file systems provide project quota we could probably add per-machine quota support based on that, hence the btrfs quota argument is not that interesting anymore (though btrfs quota is a bit more powerful as it allows recursive quota, i.e. that the machine pool gets an overall quota in addition to per-machine quota).
24 lines
799 B
SYSTEMD
24 lines
799 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1+
|
|
#
|
|
# 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.
|
|
|
|
# This unit is required for pre-240 versions of systemd that automatically set
|
|
# up /var/lib/machines.raw as loopback-mounted btrfs file system. Later
|
|
# versions don't do that anymore, but let's keep minimal compatibility by
|
|
# mounting the image still, if it exists.
|
|
|
|
[Unit]
|
|
Description=Virtual Machine and Container Storage (Compatibility)
|
|
ConditionPathExists=/var/lib/machines.raw
|
|
|
|
[Mount]
|
|
What=/var/lib/machines.raw
|
|
Where=/var/lib/machines
|
|
Type=btrfs
|
|
Options=loop
|