From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by sourceware.org (Postfix) with ESMTPS id 11BE73858D20 for ; Thu, 14 Sep 2023 13:06:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 11BE73858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-5734b893a11so557713eaf.1 for ; Thu, 14 Sep 2023 06:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694696817; x=1695301617; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:organization:from:references :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VmTl7E8zAiohPwsFe0PzW+X8JlFVUJ8vlkmYAcdIDVA=; b=mz6cdokNGXp6JOYlbBoSfBHE1LbuQchXGCvrKH5LxDPSwQDC/C8f34+seQxIaf7leI lcoe6g4XTwEtyE/j0itQCwCY150okRLfP5GA25hjqNX5JP1Bzw62xl48aiqWWC2eVTyi FbNCbJXPsFSCKkdeXzZXg9AvknntCvuJS4tm5Dt/oCiEHqslq/YnnV5QQLDDXdRQd4PJ vrGyTdqhNhJGPoCdL0ahsidPiGsZgHlxO54MDnrqiJsWwM3Xjl/MtUNPHRUUHWVm78bs s1wl0G/Pvlo+hwgG6S+mm2In0dsX98dklkbHiEyCct44TlFdWJ+06Td13kYxM8WzNkek knOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694696817; x=1695301617; h=content-transfer-encoding:in-reply-to:organization:from:references :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VmTl7E8zAiohPwsFe0PzW+X8JlFVUJ8vlkmYAcdIDVA=; b=ut26qeSSKkpRqnd14uxIljw2/FmFJ6vj66DYVXJuHght6UTm5x3llWUuDFDnH69CEr YZVtXcwa+dRCoNIPCuuVOCxy8OEowxPoRhNcKBo7i66LgbFqp4H5sTtUiaECATqozj+r +yNoVOZ8FSSR9w+UqMnpVBIfm1q9EMKcczoH2Xy7GaIEzdj99ZxcnRpPKexZvsEKMDi+ xReIkwB4a+3N+zPJ/pd8w8eZGeuqZxWRjK1NgtVcfvkCBfbxBdpGEGnSpzVrF8NyZp4e QdHeooHrrcrNO54FKvb065r5OV7M1KDpFtt4iWdatvvFWcPums8y5zIcTYJ0j1y+cSpy lX+A== X-Gm-Message-State: AOJu0YytZk6g8RI4kCP+5oWQtvBBs+UP2F6Bj+O/vkqv56+6JUEQQCrj uTRxlsG59mQbHYJF/Vb0GZ8B8deF7r/mJmhiKcLw+g== X-Google-Smtp-Source: AGHT+IGCJhQIw1SSjrAVMsJKygU1UXaNFn3YctqjZ4c8NtMSpDh2O7y9BlDgjcqkA3KiRqvhNomf2Q== X-Received: by 2002:a4a:221a:0:b0:56c:ea3f:42fd with SMTP id f26-20020a4a221a000000b0056cea3f42fdmr5202338ooa.6.1694696816834; Thu, 14 Sep 2023 06:06:56 -0700 (PDT) Received: from ?IPV6:2804:1b3:a7c0:91cb:8813:a8ad:85d6:b2a8? ([2804:1b3:a7c0:91cb:8813:a8ad:85d6:b2a8]) by smtp.gmail.com with ESMTPSA id v6-20020a9d7d06000000b006b9cbad68a8sm631706otn.30.2023.09.14.06.06.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Sep 2023 06:06:56 -0700 (PDT) Message-ID: <457efdfd-bbb3-56ec-8705-802926aea942@linaro.org> Date: Thu, 14 Sep 2023 10:06:53 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: Add MOVE_MOUNT_BENEATH from Linux 6.5 to sys/mount.h Content-Language: en-US To: Joseph Myers , libc-alpha@sourceware.org References: <5885c06a-a563-4c-e314-4075af50d275@codesourcery.com> From: Adhemerval Zanella Netto Organization: Linaro In-Reply-To: <5885c06a-a563-4c-e314-4075af50d275@codesourcery.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,NICE_REPLY_A,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 List-Id: On 13/09/23 17:28, Joseph Myers wrote: > This patch adds the MOVE_MOUNT_BENEATH constant from Linux 6.5 to > glibc's sys/mount.h and updates tst-mount-consts.py to reflect these > constants being up to date with that Linux kernel version. > > Tested with build-many-glibcs.py. > LGTM, thanks. Reviewed-by: Adhemerval Zanella > diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h > index c6da841d99..a692c0e092 100644 > --- a/sysdeps/unix/sysv/linux/sys/mount.h > +++ b/sysdeps/unix/sysv/linux/sys/mount.h > @@ -226,6 +226,7 @@ struct mount_attr > #define MOVE_MOUNT_T_AUTOMOUNTS 0x00000020 /* Follow automounts on to path */ > #define MOVE_MOUNT_T_EMPTY_PATH 0x00000040 /* Empty to path permitted */ > #define MOVE_MOUNT_SET_GROUP 0x00000100 /* Set sharing group instead */ > +#define MOVE_MOUNT_BENEATH 0x00000200 /* Mount beneath top mount */ > > > /* fspick flags. */ > diff --git a/sysdeps/unix/sysv/linux/tst-mount-consts.py b/sysdeps/unix/sysv/linux/tst-mount-consts.py > index bea27e204c..b5c52a4bb2 100755 > --- a/sysdeps/unix/sysv/linux/tst-mount-consts.py > +++ b/sysdeps/unix/sysv/linux/tst-mount-consts.py > @@ -39,10 +39,10 @@ def main(): > sys.exit (77) > > linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) > - # Constants in glibc were updated to match Linux v6.4. When glibc > + # Constants in glibc were updated to match Linux v6.5. When glibc > # constants are updated this value should be updated to match the > # released kernel version from which the constants were taken. > - linux_version_glibc = (6, 4) > + linux_version_glibc = (6, 5) > def check(cte, exclude=None): > return glibcextract.compare_macro_consts( > '#include \n', >