From patchwork Wed Sep 27 22:00:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kir Kolyshkin X-Patchwork-Id: 76814 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1B0143861951 for ; Wed, 27 Sep 2023 22:00:21 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 506D13857726 for ; Wed, 27 Sep 2023 22:00:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 506D13857726 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-pf1-x42e.google.com with SMTP id d2e1a72fcca58-692779f583fso8834604b3a.0 for ; Wed, 27 Sep 2023 15:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695852006; x=1696456806; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZNONvwyD27gwCfLGZp/PLe+JOkjpVX9Z21J5Q0fNeWk=; b=GO/bNjXuif9mIjAWqeKfr08C7+A1Bqa1RoqSLwEu0/RePtc+ve3Obd/dn9jBxeusrQ 6AMKbDnwcOtKErtgHLshtTNTnTNIIlH4W4EfucucfwBIKesP0hLmueGBJXMM6acqwrxs DH37vcGRHnQZIpGwzZ7B3iWfFU5zrL58/KNh2oe8nSE/MxW0vQN0QrDn4AQz5jqxzW0q 0zSmxCxPC/WvLQ5n9CFlHhvC2K5R6R8KmpoRuMFjytDDKa/g/2xqP7G+OenJFuGVb6Y9 l4itHgeWcaC5+1hf1ThoOZzGOE7wxK8zNwO5SouFoBtwz42wCZ3fsIRuNB1/3brAxeiT SAGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695852006; x=1696456806; h=content-transfer-encoding:mime-version:references:in-reply-to :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=M9MKKBDjMX1nI6a18GpfLq3UmhkxM0igezWwABuMSmWJ2LNldUYKWlNpzI6lG7XZqp FaiCNCDqUL9GKBt59cFi0JZaWLWokK/rIWd9xf99p+I6WfZQdB9HUh243RJzsY3exnxo EUCPQcEF4CsFGbfJE4Fn7z0VgCj9G/9Mp95lRzMONrubDCvvPwlZEGVO+arw4H8GdZvZ OG0ibhGIxcIsibH5vuSMwY42ghxFqqk4CqHpqlSi6lXUBZFjHo3BcxsQ+Y4U30+nZnZu QgIH3d+D7x6GtEmMCb60ykOViI3pgCMOaUtCTalWQmINCsh1ez3atHbAR5L9cheD3B4Z ty+A== X-Gm-Message-State: AOJu0Yy+XrZWpud1PXQFyi5loSqOVBP7Yf0gajuxw8xjJqoM+IvnqCPY R6n6k8uT0uDJud5rTsuInwkixrqD4DjSVw== X-Google-Smtp-Source: AGHT+IHKBg+sJganmAhJwGQ/lRe5xF+TaicgEpfnEWL0wK6r6qyJRsSj5+5At5+KTJarrDi3E4DDSw== X-Received: by 2002:a05:6a20:4287:b0:14c:446c:b188 with SMTP id o7-20020a056a20428700b0014c446cb188mr3390347pzj.37.1695852005921; Wed, 27 Sep 2023 15:00:05 -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 b1-20020a17090a800100b00276b60aa43bsm13743303pjn.17.2023.09.27.15.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 15:00:05 -0700 (PDT) From: Kir Kolyshkin To: libc-alpha@sourceware.org Cc: dj@redhat.com, amonakov@ispras.ru, Kir Kolyshkin Subject: [PATCH v2] Linux: add ST_NOSYMFOLLOW Date: Wed, 27 Sep 2023 15:00:00 -0700 Message-ID: <20230927220000.632436-1-kolyshkin@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230922001427.413152-1-kolyshkin@gmail.com> References: <20230922001427.413152-1-kolyshkin@gmail.com> 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+patchwork=sourceware.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. --- 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. */ };