From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-18.italiaonline.it ([212.48.25.146]:50749 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752787AbbK2OHq (ORCPT ); Sun, 29 Nov 2015 09:07:46 -0500 Reply-To: kreijack@inwind.it Subject: Re: BTRFS: could not find root 8 References: <20151127204305.GE24333@carfax.org.uk> To: Chris Murphy , Hugo Mills , Imran Geriskovan , Btrfs BTRFS From: Goffredo Baroncelli Message-ID: <565B06AF.9020806@inwind.it> Date: Sun, 29 Nov 2015 15:07:43 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 2015-11-27 23:51, Chris Murphy wrote: > But from github I'm not finding any indication that systemd enables > quota. This issue suggests that quota disabled is tolerated. > https://github.com/systemd/systemd/issues/1809 Looking at the systemd source, it seems that it could enable quota when playing with the "machine": See src/shared/machine-pool.c: int setup_machine_directory(uint64_t size, sd_bus_error *error) { _cleanup_release_lock_file_ LockFile lock_file = LOCK_FILE_INIT; struct loop_info64 info = { .lo_flags = LO_FLAGS_AUTOCLEAR, [...] r = check_btrfs(); if (r < 0) return sd_bus_error_set_errnof(error, r, "Failed to determine whether /var/lib/machines is located on btrfs: %m"); if (r > 0) { (void) btrfs_subvol_make_label("/var/lib/machines"); r = btrfs_quota_enable("/var/lib/machines", true); [...] But I was unable to understand if: - enabling quota is a "per filesystem" attribute or per "subvolume attribute" - when systemd invokes setup_machine_directory() Does someone have more information ? BR -- gpg @keyserver.linux.it: Goffredo Baroncelli Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5