Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2574029pxb; Thu, 10 Feb 2022 00:11:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvBCaB42vc+XSirCwEbvdqfTjwIYi158bWnJKWB4NJ9fuqhc65CWQ/9X/3QRRxX+07i292 X-Received: by 2002:a17:907:234b:: with SMTP id we11mr5284214ejb.5.1644480665757; Thu, 10 Feb 2022 00:11:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644480665; cv=none; d=google.com; s=arc-20160816; b=RAAPRX6ZssUy53y/mLCb8pRdzp1Em8QY8TWlFkjzR+nb/FEf5VVCtXpCxKvvFyEmWM Ya4+tKxZtlFf2F/WrNf7QZtIW1gvtagZR0itlUtgBcQ40nOfKd3TLOUHfdpD/N99AslJ /ROW8IsOLOBx7Q3b2Ni9WVNhEHZX48c25Mmwg3eiV5BYdzaUwMlGWRDPCY1d6FUzzBo/ V6kjURutck1M+5BdY9iRn+/J2M9ru3qq/CfiNCSI8zPI3ususNoL9qHQwiU8b81Pi85L jejMTNskK9jYHOYk4z+BzKsYITsLJvxGz32V4x986yr7Kur1O3MXmEyBZtNm/BalYizW BxNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:from:subject:cc:to:message-id :date:dkim-signature; bh=e2T/bGv5SE/3iMXaB7ccHf1v787MJc0e3nfVyRIUlLs=; b=m0pe07Tmf2Ote+t77409Jlt4839bfIv6QO9QHLFmjSulDkVEw9m32UR1HCZP9B1vQj aCr0Nvd+s87N30HnmrWlai/bnN6/9G/3DdP9D0MSJqLKioKk+jtVdW+mC9axlkwY2ANo ygli4MLjPd4oDEovONT9JFYpUun6JXOY0LRMe7OBWQ159irEkSXifE35zXcyHxKeBDBg QB3tp7H1TKpIGc6SB8WSQg5Eniz3pvdOjwLapyfsUhI4r9oX8O96bL3RjfoIdfrXVEi7 gHCl45WBDxHCiPTlDj7OXBdcpKBETW5lMPimQ06YEVSGMnuOQzdk1h5UblzemDyMNCm9 krNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AwoJEQgN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs6si2572061edb.600.2022.02.10.00.10.41; Thu, 10 Feb 2022 00:11:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AwoJEQgN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236032AbiBJHcc (ORCPT + 99 others); Thu, 10 Feb 2022 02:32:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235920AbiBJHca (ORCPT ); Thu, 10 Feb 2022 02:32:30 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 860A626F for ; Wed, 9 Feb 2022 23:32:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644478351; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e2T/bGv5SE/3iMXaB7ccHf1v787MJc0e3nfVyRIUlLs=; b=AwoJEQgNCTl98r9kaaEu57UqnBSS8iMVq6WxPO6V4nkvR3/tX2jR+cK2jXv6m/dUrFF/MY DgIaz9WUzMpSrTRt1zb7WSogi7COwBRkK86HYR2cgK1xigMMSCvZ98FG23RtxUrQ0IgCiW wWb16MpyY45mFSo5bKM7AUoZVv1grMw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-400-m3RdIlQ-NxuT0AM__2YCRg-1; Thu, 10 Feb 2022 02:32:26 -0500 X-MC-Unique: m3RdIlQ-NxuT0AM__2YCRg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 235B683DD22; Thu, 10 Feb 2022 07:32:25 +0000 (UTC) Received: from localhost (unknown [10.64.242.145]) by smtp.corp.redhat.com (Postfix) with ESMTP id 15C915BC42; Thu, 10 Feb 2022 07:32:23 +0000 (UTC) Date: Thu, 10 Feb 2022 16:32:23 +0900 (JST) Message-Id: <20220210.163223.178142214622738771.yamato@redhat.com> To: zeha@debian.org Cc: matorola@gmail.com, kzak@redhat.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, util-linux@vger.kernel.org Subject: Re: [ANNOUNCE] util-linux v2.38-rc1 From: Masatake YAMATO In-Reply-To: <20220206164734.cgdrkcuvwzy76pyy@zeha.at> References: <20220202.232106.1642450897216370276.yamato@redhat.com> <20220205.030324.1280110384368183671.yamato@redhat.com> <20220206164734.cgdrkcuvwzy76pyy@zeha.at> Organization: Red Hat Japan, Inc. Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Hofstaedtler Subject: Re: [ANNOUNCE] util-linux v2.38-rc1 Date: Sun, 6 Feb 2022 17:47:34 +0100 > Hello Masatake YAMATO, > > Thank you for the followup. > > * Masatake YAMATO [220204 19:03]: >> > Could you tell me what kind of file system for /etc/passwd do you use for testing? > > sbuild/schroot can use different mechanisms, but in this case / is > overlayfs (the underlying fs is ext4): > unstable-amd64-sbuild on / type overlay (rw,relatime,...) Thank you for reporiting. I'm inspecting the bug. Masatake YAMATO > ls -la /etc/passwd > -rw-r--r-- 1 root root 2397 Feb 6 16:41 /etc/passwd > stat /etc/passwd > File: /etc/passwd > Size: 2397 Blocks: 8 IO Block: 4096 regular file > Device: 33h/51d Inode: 1311528 Links: 1 > Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) > Access: 2022-02-06 16:41:26.880589326 +0000 > Modify: 2022-02-06 16:41:26.720591039 +0000 > Change: 2022-02-06 16:41:26.720591039 +0000 > Birth: - > mount > >> As I commented on GitHub, I made a pull request for fixing this issue. >> I found a bug in the test case, not in lsfd itself. >> >> https://github.com/util-linux/util-linux/pull/1595 >> https://github.com/util-linux/util-linux/pull/1595/commits/abd93fcecfbb1a1fac7032fac9d2903c5d2d3a38 >> >> > When trying to reproduce the bug, could you applying the following change? > > I have applied abd93fcecfbb1a1fac7032fac9d2903c5d2d3a38 alone, which > does not help in my case (DEV[STR] is 0 instead of 1). > > I have also applied #1595 in full in a second build, see output > below. > > Many thanks, > Chris > > > > script: /<>/tests/ts/lsfd/mkfds-ro-regular-file > commands: /<>/ > helpers: /<>/ > sub dir: /<>/tests/ts/lsfd > top dir: /<>/tests > self: /<>/tests/ts/lsfd > test name: mkfds-ro-regular-file > test desc: read-only regular file > component: lsfd > namespace: lsfd/mkfds-ro-regular-file > verbose: yes > output: /<>/tests/output/lsfd/mkfds-ro-regular-file > error log: /<>/tests/output/lsfd/mkfds-ro-regular-file.err > exit code: /<>/tests/output/lsfd/mkfds-ro-regular-file.exit_code > valgrind: /<>/tests/output/lsfd/mkfds-ro-regular-file.vgdump > expected: /<>/tests/expected/lsfd/mkfds-ro-regular-file{.err} > mountpoint: /<>/tests/output/lsfd/mkfds-ro-regular-file-mnt > > lsfd: read-only regular file ... FAILED (lsfd/mkfds-ro-regular-file) > ========= script: /<>/tests/ts/lsfd/mkfds-ro-regular-file ================= > ================= OUTPUT ===================== > 1 ABC 3 r-- REG /etc/passwd 1 > 2 COMMAND,ASSOC,MODE,TYPE,NAME,POS: 0 > 3 PID[RUN]: 0 > 4 PID[STR]: 0 > 5 INODE[RUN]: 0 > 6 INODE[STR]: 0 > 7 UID[RUN]: 0 > 8 UID[STR]: 0 > 9 USER[RUN]: 0 > 10 USER[STR]: 0 > 11 SIZE[RUN]: 0 > 12 SIZE[STR]: 0 > 13 MNTID[RUN]: 0 > 14 DEV[RUN]: 0 > 15 FINDMNT[RUN]: 0 > 16 DEV[STR]: 1 > 17 MNTID: 312 > 18 DEV: 0:50 > 19 MNTID DEV: 312 0:50 > 20 FINDMNT_MNTID_DEV: 312 0:48 > ================= EXPECTED =================== > 1 ABC 3 r-- REG /etc/passwd 1 > 2 COMMAND,ASSOC,MODE,TYPE,NAME,POS: 0 > 3 PID[RUN]: 0 > 4 PID[STR]: 0 > 5 INODE[RUN]: 0 > 6 INODE[STR]: 0 > 7 UID[RUN]: 0 > 8 UID[STR]: 0 > 9 USER[RUN]: 0 > 10 USER[STR]: 0 > 11 SIZE[RUN]: 0 > 12 SIZE[STR]: 0 > 13 MNTID[RUN]: 0 > 14 DEV[RUN]: 0 > 15 FINDMNT[RUN]: 0 > 16 DEV[STR]: 0 > ================= O/E diff =================== > --- /<>/tests/output/lsfd/mkfds-ro-regular-file 2022-02-06 16:37:28.111146267 +0000 > +++ /<>/tests/expected/lsfd/mkfds-ro-regular-file 2022-01-31 14:57:47.000000000 +0000 > @@ -13,8 +13,4 @@ > MNTID[RUN]: 0 > DEV[RUN]: 0 > FINDMNT[RUN]: 0 > -DEV[STR]: 1 > -MNTID: 312 > -DEV: 0:50 > -MNTID DEV: 312 0:50 > -FINDMNT_MNTID_DEV: 312 0:48 > +DEV[STR]: 0 > ============================================== > > script: /<>/tests/ts/lsfd/mkfds-rw-character-device > commands: /<>/ > helpers: /<>/ > sub dir: /<>/tests/ts/lsfd > top dir: /<>/tests > self: /<>/tests/ts/lsfd > test name: mkfds-rw-character-device > test desc: character device with O_RDWR > component: lsfd > namespace: lsfd/mkfds-rw-character-device > verbose: yes > output: /<>/tests/output/lsfd/mkfds-rw-character-device > error log: /<>/tests/output/lsfd/mkfds-rw-character-device.err > exit code: /<>/tests/output/lsfd/mkfds-rw-character-device.exit_code > valgrind: /<>/tests/output/lsfd/mkfds-rw-character-device.vgdump > expected: /<>/tests/expected/lsfd/mkfds-rw-character-device{.err} > mountpoint: /<>/tests/output/lsfd/mkfds-rw-character-device-mnt > > lsfd: character device with O_RDWR ... FAILED (lsfd/mkfds-rw-character-device) > ========= script: /<>/tests/ts/lsfd/mkfds-rw-character-device ================= > ================= OUTPUT ===================== > 1 3 rw- CHR /dev/zero mem:5 0 1:5 mem char 1:5 > 2 ASSOC,MODE,TYPE,NAME,SOURCE,POS,MAJ:MIN,CHRDRV,DEVTYPE,RDEV: 0 > 3 MNTID[RUN]: 0 > 4 DEV[RUN]: 0 > 5 FINDMNT[RUN]: 0 > 6 DEV[STR]: 1 > 7 MNTID: 312 > 8 DEV: 0:50 > 9 MNTID DEV: 312 0:50 > 10 FINDMNT_MNTID_DEV: 312 0:48 > ================= EXPECTED =================== > 1 3 rw- CHR /dev/zero mem:5 0 1:5 mem char 1:5 > 2 ASSOC,MODE,TYPE,NAME,SOURCE,POS,MAJ:MIN,CHRDRV,DEVTYPE,RDEV: 0 > 3 MNTID[RUN]: 0 > 4 DEV[RUN]: 0 > 5 FINDMNT[RUN]: 0 > 6 DEV[STR]: 0 > ================= O/E diff =================== > --- /<>/tests/output/lsfd/mkfds-rw-character-device 2022-02-06 16:37:28.675140230 +0000 > +++ /<>/tests/expected/lsfd/mkfds-rw-character-device 2022-01-31 14:57:47.000000000 +0000 > @@ -3,8 +3,4 @@ > MNTID[RUN]: 0 > DEV[RUN]: 0 > FINDMNT[RUN]: 0 > -DEV[STR]: 1 > -MNTID: 312 > -DEV: 0:50 > -MNTID DEV: 312 0:50 > -FINDMNT_MNTID_DEV: 312 0:48 > +DEV[STR]: 0 > ============================================== >