From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rutger Helling Subject: bug#29674: Ceph creates Btrfs subvolumes on Btrfs during tests. Date: Tue, 12 Dec 2017 14:10:16 +0100 Message-ID: References: <87bmj4qfan.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOkKy-0003Cs-94 for bug-guix@gnu.org; Tue, 12 Dec 2017 08:11:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOkKs-0008AY-7d for bug-guix@gnu.org; Tue, 12 Dec 2017 08:11:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:49104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOkKs-0008AS-42 for bug-guix@gnu.org; Tue, 12 Dec 2017 08:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eOkKr-0006gz-N9 for bug-guix@gnu.org; Tue, 12 Dec 2017 08:11:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87bmj4qfan.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: ludo@gnu.org Cc: 29674@debbugs.gnu.org Hi Ludo, I'll try building again later (could be a while, Ceph takes a really long time to build), but I highly doubt that that's the case. Btrfs subvolumes cannot be deleted with tools such as rm/rmdir, even as root. You have to run 'btrfs subvolume delete /subvolume' as root. Although a regular user may create subvolumes, they cannot delete it (unless the USER_SUBVOL_RM_ALLOWED mount option is on). Since the building is done as a guixbuilder user, I don't see how that would work. And even if it did, if a build failed for example you'd still be left with a bunch of subvolumes in /tmp that can only be deleted as root. On 2017-12-12 13:52, ludo@gnu.org wrote: > Hi Rutger, > > Rutger Helling skribis: > >> I was surprised to learn that Ceph creates Btrfs subvolumes during its >> tests. >> This is problematic because on Btrfs regular users can create >> subvolumes, but they cannot delete them. >> This means I had to manually delete the following subvolumes as root: >> >> ID 1744 gen 819598 top level 257 path >> tmp/guix-build-ceph-12.0.2.drv-0/td/t-7201/dev/osd0/current >> ID 1745 gen 819598 top level 257 path >> tmp/guix-build-ceph-12.0.2.drv-0/td/t-7201/dev/osd0/snap_1 > > Does that mean that wiping out /tmp/guix-build-ceph-*, as happens when > build finishes, isn't enough to get rid of those volumes? > > Ludo'.