Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5218525pxb; Sun, 6 Feb 2022 18:06:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmrnNCgw4f5HN2EhZh7p11SMPsklNlUc/5Sj8HfeqbNyd0YHfxrFfnpvBy5uA0+aIg88cN X-Received: by 2002:a17:907:1c9d:: with SMTP id nb29mr8171784ejc.281.1644199590989; Sun, 06 Feb 2022 18:06:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644199590; cv=none; d=google.com; s=arc-20160816; b=YaosHAW9ISGXQJDVmBu1OnsbY1tRwP9Zd4xHFq55PrODd5xGGow0ehlTMLYOiXeFz2 kDvFXJ/IltqvG6vrrgMBU8OW0NFZtV6pfEjvGJVCqg2fSA/461XtkMGmlT9drRV98f7C XnnU3/B5wBuayNePtMVLtKTnBYhjIOcaAWDrCAjzTCNMqYoOsVXi+6oJNnegfuD5WS6o wAcapQVcGJLZ6Q2qI3ZY884ARC7HizTp1aBd6hy1Yi7iMYhZeR/ZjfwkYNSlB1gh2vAT gbEWMclskk+jCkvb9JtenOA0We+0pwoEHM9U4LcUAU84VfCeyHrPSAWFbXevib8oeXo/ 3Utg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=udHNH4CXWv6p8Jns4UPRJq2QDcg9Gq27VuSDffS7L6k=; b=EpnNm5e/pdL2V0AAc12vhVmUTM9Qn0jO9e1pXTiU8ciKD5pd/pTLxZfTnMn+IA9Ey4 52sCWkRJMaJkACMotpx7Yrg5MFP3hWnJJTz6jurvCYYKXiL0+8U6U29Mr1E2khS6msco Rqk0cbwsUPU4X7jexo4xgP8ViTyaw3AlhUOWMVCF9jfrZV01c9N1e3ZbxiktqXcmPxgb BO7h76TGn3NTa3Hq2dfC8u/ccnYb/LOHvGClOBYp8twdhPS+6nFQ7YUq2OdN0KMMPRQ3 qcv9XmvPwnNk46UI4r0z+6EhuzSRCtODwkjKMNxWAtxHkzV0n1Op3NJu6ZUhFj1xRNgo CMVw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k25si2682684edr.87.2022.02.06.18.06.07; Sun, 06 Feb 2022 18:06:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245181AbiBFQrr (ORCPT + 99 others); Sun, 6 Feb 2022 11:47:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231784AbiBFQrq (ORCPT ); Sun, 6 Feb 2022 11:47:46 -0500 Received: from mail.namespace.at (mail.namespace.at [IPv6:2a01:190:1801:100::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FBFDC06173B; Sun, 6 Feb 2022 08:47:44 -0800 (PST) Date: Sun, 6 Feb 2022 17:47:34 +0100 From: Chris Hofstaedtler To: Masatake YAMATO 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 Message-ID: <20220206164734.cgdrkcuvwzy76pyy@zeha.at> References: <20220131192337.lzpofr4pz3lhgtl3@zeha.at> <20220202.232106.1642450897216370276.yamato@redhat.com> <20220205.030324.1280110384368183671.yamato@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220205.030324.1280110384368183671.yamato@redhat.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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,...) 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 ==============================================