From patchwork Tue Feb 2 00:07:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 41888 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 D5051382E814; Tue, 2 Feb 2021 00:07:49 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id EF09E382E80C for ; Tue, 2 Feb 2021 00:07:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EF09E382E80C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joseph_myers@mentor.com IronPort-SDR: bV6UHswSpRHG6uGdkpDCl3Bf67wRNdATfgN9VLJuy97UyM2NVIw0sB3uSwP83RC+ZTwHTGPR0+ LYlxfQFBQpWMguYf4JqFjFW082oW1ZmmYG6Rq7pgiKLE+C+jF1pUrxuzmkAWJPdcsGgkPlUobX KGWGVF3EE5uppqYY0kivxpvbHR9NHhRAkd8V7CY+KFiVuaK8wZIU2PC3xhu9HjIlW022wIJFiS Aj6CYtJj23YeKxcii4L5mnWNtLd2f7bBk9PoKxK/hEF03MMbaryNmHcGLW12vN+vwhcKhdyiBh cUM= X-IronPort-AV: E=Sophos;i="5.79,393,1602576000"; d="scan'208";a="59955664" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 01 Feb 2021 16:07:46 -0800 IronPort-SDR: g5gstlA0EsAUqj27+dr5USWLEBf/B0cmZn1DC/T65PVXecnMScx9ju29RUiNKtNKDpCgygsvQG aDvYc52dbUv56H1ztDC8TDH/+Ln4ZKjvmuplY7DVmddnsEdIwHqNfYhgSU0REacwpVSrq2HNyf w/nCOfDW6CbN7CQJikcR6DI9Nu1clUyWJWYkONC2dpKaQ6djRe/DPnFhYiGMFs/+5etLWqXh1U r6NkJiCgxkp0gyJPQYmxYUhQgxtmfDazzuHECf0hLQ4FpJmQHcwVx/V3E67TyreX+0Mc6CWEOu Tlo= Date: Tue, 2 Feb 2021 00:07:42 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: Add MS_NOSYMFOLLOW from Linux 5.10 to Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-05.mgc.mentorg.com (139.181.222.5) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3129.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" This patch adds the new constant MS_NOSYMFOLLOW from Linux 5.10 to . Tested for x86_64. diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h index e66060ca4a..cd8af04f1d 100644 --- a/sysdeps/unix/sysv/linux/sys/mount.h +++ b/sysdeps/unix/sysv/linux/sys/mount.h @@ -48,6 +48,8 @@ enum #define MS_MANDLOCK MS_MANDLOCK MS_DIRSYNC = 128, /* Directory modifications are synchronous. */ #define MS_DIRSYNC MS_DIRSYNC + MS_NOSYMFOLLOW = 256, /* Do not follow symlinks. */ +#define MS_NOSYMFOLLOW MS_NOSYMFOLLOW MS_NOATIME = 1024, /* Do not update access times. */ #define MS_NOATIME MS_NOATIME MS_NODIRATIME = 2048, /* Do not update directory access times. */