From patchwork Fri Sep 22 00:14:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kir Kolyshkin X-Patchwork-Id: 1837885 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=baArwGoH; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RsCSn5wJ2z1ynH for ; Fri, 22 Sep 2023 10:14:49 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F1569385841E for ; Fri, 22 Sep 2023 00:14:46 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by sourceware.org (Postfix) with ESMTPS id 67D633858D39 for ; Fri, 22 Sep 2023 00:14:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67D633858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-565e395e7a6so968316a12.0 for ; Thu, 21 Sep 2023 17:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695341675; x=1695946475; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZNONvwyD27gwCfLGZp/PLe+JOkjpVX9Z21J5Q0fNeWk=; b=baArwGoHsg6F40AgsCzNp74Y+k0gRpOECCDpznkJPrwp7HRWt+dRaxM6vSxmnOAAHC o6lPwgXhbgaKsRV/ZkyDuqYngvmRyMuKEydCtxrBbVVvBNAE4QeWfbVIYLO/4eIaaSOb VxkatAElX+XqbjA6RsPpA+6Jk0SreKIZrnfgCQPvlTE3NFDFHlTf/M17ZVq9g4KloQEe hPwWIFxqsLSELU7tWpzZnQse+7HUJGGdQ+lt1oSmYyX4qvGKZ66wwAkKPdwGJ0f0RFQ1 qfWDQO5CNNuy3DhaX9wtKKI1p2EdRAyEY1s7wD9GTx/e3UenLhlwhwVSFrm7uHOrW9Co t39A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695341675; x=1695946475; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZNONvwyD27gwCfLGZp/PLe+JOkjpVX9Z21J5Q0fNeWk=; b=TVL9jZ1wWNl7U8dGqCkdTdkMzJ2/wFY1nvDQOHFrM6aMDqjC8zafUKkC6U3PM5SZRa xfk0kiULihTZm7U2PFBtixEjnorrDeS5ClUSqlvPpPfxR2s/ieJeas2cpCAxeos4a7je gxMFFUt4musbfRS9KR9yQ18K4B4XUAlgoyTLG2DurEzEbTXdfyRQA08Wfcx7ylTsJ249 w/dEz8TgRGoC/DKqg5YtVMwMqa3SCsT62m7ZTOmDYUR0zU8TZ2m2r/3z+LQDUMOAGDdw bLCK+tbH6aDz01PwClOzC3kIcqaNUgYLdrTUo/XN/wRzvJ71KHvYfwdFzqjyGG2yPdGM GvCg== X-Gm-Message-State: AOJu0YzHAkRIV+mLd3xsSlBlmNNRduqdPsRlQThPbNw/TBg60n0LV1v8 ab7JMJpRWJz2M1S2XSKNWqqsifZFG20= X-Google-Smtp-Source: AGHT+IHtNKwPLfRfzoUcqMn9XKkusrTnR+kQNbzLvF1afRxJVUCi9LCzSUMKsleDV+alng3LPvjPBA== X-Received: by 2002:a05:6a21:788d:b0:14e:a1f0:a8ea with SMTP id bf13-20020a056a21788d00b0014ea1f0a8eamr8051998pzc.3.1695341674964; Thu, 21 Sep 2023 17:14:34 -0700 (PDT) Received: from kir-rhat.lan (c-76-104-243-248.hsd1.wa.comcast.net. [76.104.243.248]) by smtp.gmail.com with ESMTPSA id z13-20020a170903018d00b001bf044dc1a6sm2131445plg.39.2023.09.21.17.14.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 17:14:34 -0700 (PDT) From: Kir Kolyshkin To: libc-alpha@sourceware.org Cc: Kir Kolyshkin Subject: [PATCH] Linux: add ST_NOSYMFOLLOW Date: Thu, 21 Sep 2023 17:14:27 -0700 Message-ID: <20230922001427.413152-1-kolyshkin@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Linux v5.10 added a mount option MS_NOSYMFOLLOW, which was added to glibc in commit 0ca21427d950755b. Add the corresponding statfs/statvfs flag bit, ST_NOSYMFOLLOW. Reviewed-by: DJ Delorie --- sysdeps/unix/sysv/linux/bits/statvfs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/bits/statvfs.h b/sysdeps/unix/sysv/linux/bits/statvfs.h index cf98460e00..7195fdf874 100644 --- a/sysdeps/unix/sysv/linux/bits/statvfs.h +++ b/sysdeps/unix/sysv/linux/bits/statvfs.h @@ -105,7 +105,9 @@ enum # define ST_NOATIME ST_NOATIME ST_NODIRATIME = 2048, /* Do not update directory access times. */ # define ST_NODIRATIME ST_NODIRATIME - ST_RELATIME = 4096 /* Update atime relative to mtime/ctime. */ + ST_RELATIME = 4096, /* Update atime relative to mtime/ctime. */ # define ST_RELATIME ST_RELATIME + ST_NOSYMFOLLOW = 8192, /* Do not follow symlinks. */ +# define ST_NOSYMFOLLOW ST_NOSYMFOLLOW #endif /* Use GNU. */ };