Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4186922pxv; Tue, 27 Jul 2021 00:34:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmg/AqS9iTwL3vKwzBG5NDdq6wnUmMxOXd4f4qO+8pBAofSH9S/C9jI77jZfxqQkk5SAMX X-Received: by 2002:a17:906:9742:: with SMTP id o2mr20640045ejy.532.1627371244601; Tue, 27 Jul 2021 00:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627371244; cv=none; d=google.com; s=arc-20160816; b=imKNNqidC4fzd3RrfdfUbeex4Pd8vkiOOcdlZ0/NdVXZmUYhy1GKNgPJu3UAGXOZLf IAKOypbM4515ye1xigAkEnli7a0g2ekTqr/efxVgVkxLkXuIA3CIiI5MHo/WecgPyydk CWB7iw1kz5QqSn9KiYixnqa1KcFDteZHRBtkKZLjx8SEMTlvpJKXYltUIom7SjzxwkaZ CLzkRbwxFiWOQDVCdS6ecx3qIHINfQy9iZed05CVRyA5ulAMC9hqNjO2eeAgoI5XYgpM rpUGc8LNPEk4pG6MBwIrxL0SqHWMIOWIOpewLbHuYoGzWF+P62kpuUnhDLt27zcmjf5j NAtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MJ441JBu88Gh6BlC4YFSIsYeViFCgMPHq7UZlhYffEc=; b=b19ERnKfqt1RY4sujialW26FU9RF03FyYmjveJL916LAIhKs6454nWjm5ozpVtU7GI yAkz09SedliwuihmzmeXOGZ+As6lC8DcaB5za/uWvzVSI3Zm+3ysYiWKnmat5FCJTXZg A+Z3pZKq62k9EKZUeNW7plDRhTGEvV/awcTsUjyzO8U5ojGNWA3E7wWKIsUQLmVm1Na7 +FkvSbYCG0DuSuSY1M6SZZ6MaUKgXZVgNKCqwDpzifVyuDiS5L03t8hNpDDWEROZbIHu 2INDr1r+QgPDoQPZQvxTVhs7JpaxXFmU1HUNDp/buq+CgYObNCDSFCUDgNt7PhTraTjo p3TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=U0FrzDh3; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si2059840edr.538.2021.07.27.00.33.33; Tue, 27 Jul 2021 00:34:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=U0FrzDh3; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235735AbhG0HdG (ORCPT + 99 others); Tue, 27 Jul 2021 03:33:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235675AbhG0HdG (ORCPT ); Tue, 27 Jul 2021 03:33:06 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA6D3C061757 for ; Tue, 27 Jul 2021 00:33:05 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id mz5-20020a17090b3785b0290176ecf64922so2885328pjb.3 for ; Tue, 27 Jul 2021 00:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MJ441JBu88Gh6BlC4YFSIsYeViFCgMPHq7UZlhYffEc=; b=U0FrzDh3U7zSwkZlQUp3g7eqCL2QlQ9wH5G7GuUefXeSSG6UEpGC8pebJM4Z3pzZ2z YY9JT3Xcl+buZaD67NwBJaFlGqA7h1XEdeI9I6QcTA8zmEjoCwINc1o9DdkyUJRmgeNf wiy7iwCgRNlAH40W9uH8MUf8uMhaHE+DCMYB+Vzo7ZM3mpRgo/K0224vhwvBOlzSMoaw t8xIsNxD62uCvviV+vZFshwPG+RDGZb7XU7axMyc2C5AmxNm3vsI05FtkpTJcM9slTS3 1Dn23DsEQxyE5X3QZZIWcRSCDZ3Xh8oIEfj5k+vzIEGdYVttpgOuwYvhO0JEkaPPZkXH dQ7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MJ441JBu88Gh6BlC4YFSIsYeViFCgMPHq7UZlhYffEc=; b=GjiyoFgKczaNayMNA8+tp68+k6PuzgK0bpzdfwXiJ9l550XB/EaMaVBmbD5PIlQGdH dTwm6tymGANV/1xq9KZkEizfP2VUY36y7FIsn1yMj/im+jvCz0cltkFs54zMGz4MIuTQ iaGgRL4eQSFJQJxiYtQ2TQ4wMpyB1/DcX1aF15V0jsMY4NhQFMkAZLCa+f5fjs+uOFvn 66yzeKVvMxbLXKisqtxplwivRiMEI5gBOI3QbPMzF/eJFLI4REZldKLPtGSjJ0uKp0zJ 9BkLxmWAw/0B28IVXNEP1fxSiyunUy+nhPT7GubP6WR6VAbKgYLHkwSywM7PPAvz5VhD HGjw== X-Gm-Message-State: AOAM532UpQzkqb5g/hePRClffSJgqaGn/MmEYFl+gGnvdrcBoZp3+yFK NMhhxle84JmkCB5qiHDwWVcY4iN2dMzsHYCDJH+j6dCDpj5kpg== X-Received: by 2002:a05:6a00:189d:b029:338:c077:ba11 with SMTP id x29-20020a056a00189db0290338c077ba11mr22264449pfh.21.1627371185160; Tue, 27 Jul 2021 00:33:05 -0700 (PDT) MIME-Version: 1.0 References: <34ca4e40-2026-d48d-7181-fbea6ba4f140@thelounge.net> In-Reply-To: <34ca4e40-2026-d48d-7181-fbea6ba4f140@thelounge.net> From: Mike Fleetwood Date: Tue, 27 Jul 2021 08:32:53 +0100 Message-ID: Subject: Re: Is labelling a mounted ext2/3/4 file system safe and supported? To: Reindl Harald Cc: linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, 26 Jul 2021 at 21:50, Reindl Harald wrote: > Am 26.07.21 um 20:45 schrieb Mike Fleetwood: > > Hi, > > > > Using e2label to set a new label for a mounted ext4 seems to work, but > > is it a safe and supported thing to do? > > it is Is there some documentation which states it's safe to write to the label while mounted? I ask because 1) I am looking at adding such support into GParted and 2) I don't understand how it can be safe. Looking at the e2label source code, it just reads the superblock, updates the label and writes the super block. How is that safe and persistent when presumably the linux kernel has an in-memory copy of the superblock will be written at unmount and presumable sync. Thanks, Mike