From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f180.google.com ([209.85.161.180]:33037 "EHLO mail-yw0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751962AbdC0VLg (ORCPT ); Mon, 27 Mar 2017 17:11:36 -0400 Received: by mail-yw0-f180.google.com with SMTP id v76so40906427ywg.0 for ; Mon, 27 Mar 2017 14:11:35 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <5236e403-6f41-aae1-6e8a-ab04e3b98c89@mendix.com> References: <4428fdc3-157a-a98e-8ca3-e3701c6c1c80@sichert.me> <279513f7-5297-cf2f-aa94-35bef1f674aa@cn.fujitsu.com> <2e816c46-7a6a-7db9-a2c3-663dc7d8e6c9@gmail.com> <8c55c034-27cc-e8b5-5317-b388cc6492f4@cn.fujitsu.com> <6e464739-5540-87ab-a46d-954a06086cba@gmail.com> <20170328005358.5d5366ef@natsu> <5236e403-6f41-aae1-6e8a-ab04e3b98c89@mendix.com> From: Chris Murphy Date: Mon, 27 Mar 2017 15:11:34 -0600 Message-ID: Subject: Re: Qgroups are not applied when snapshotting a subvol? To: Hans van Kranenburg Cc: Roman Mamedov , Chris Murphy , "Austin S. Hemmelgarn" , Moritz Sichert , Qu Wenruo , Andrei Borzenkov , Btrfs BTRFS Content-Type: text/plain; charset=UTF-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Mon, Mar 27, 2017 at 2:06 PM, Hans van Kranenburg wrote: > On 03/27/2017 09:53 PM, Roman Mamedov wrote: >> On Mon, 27 Mar 2017 13:32:47 -0600 >> Chris Murphy wrote: >> >>> How about if qgroups are enabled, then non-root user is prevented from >>> creating new subvolumes? >> >> That sounds like, if you turn your headlights on in a car, then in-vehicle air >> conditioner randomly stops working. :) >> >> Two things only vaguely related from the end user's point of view. >> >>> Or is there a way for a new nested subvolume to be included in its >>> parent's quota, rather than the new subvolume having a whole new quota >>> limit? >> >> Either that, or a separate "allow non-root user subvolumes/snapshots creation" >> mount option. There is already one for deletion, after all. >> >> user_subvol_rm_allowed >> Allow subvolumes to be deleted by a non-root user. Use with >> caution. >> > > What are actual use cases for creating subvolumes by 'normal' users? > > Does someone have an example? > > Why is it possible at all, by default? I have a single git subvolume in my user directory, inside of which are various git clones. And I periodically snapshot the git subvolume as a regular user. If I can't create subvolumes as a regular user then by extension it'd mean I can't create snapshots of my own home directory, or any other subvolumes I exclusively own. -- Chris Murphy