unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
From: Dominique Martinet <asmadeus@codewreck.org>
To: Eric Wong <e@80x24.org>
Cc: Julien Moutinho <julm+public-inbox@sourcephile.fr>,
	meta@public-inbox.org
Subject: Re: [PATCH] nodatacow: quiet chattr errors [was: Test failures with 1.7.0]
Date: Mon, 31 Jan 2022 08:18:40 +0900	[thread overview]
Message-ID: <Yfcc0C8ODrag1eik@codewreck.org> (raw)
In-Reply-To: <20220130214908.M320944@dcvr>

Eric Wong wrote on Sun, Jan 30, 2022 at 09:49:08PM +0000:
> Thanks for testing the previous patch.  Actually, I prefer we
> drop previous implementations and instead rely on Linux ABI
> stability while shifting maintenance burden to maintainers.

This makes sense.

> Can you test the patch below?  It supercedes the other one.

I've tested the patch with a btrfs test directory and this test:
BTRFS_TESTDIR=... prove -bvw t/nodatacow.t

after adding the local git repo to PERL5LIBs

With a BTRFS dir as BTRFS it all works, the ioctl are passed and files
are indeed nocow (checked with lsattr afterwards as files aren't
deleted)

With a tmpfs instead the tests fail as it tried to call the ioctl
anyway -- I didn't take the time to check if thest mtab parsing was
removed, is the ioctl tried anyway or does setting the environment
variable skip this part?
If so then it's probably fine.

(the failure is as below:
------
$ BTRFS_TESTDIR=/tmp/test strace -o /tmp/strace -f prove -bvw t/nodatacow.t 
t/nodatacow.t .. 
ok 1 - use PublicInbox::Syscall;
/run/current-system/sw/bin/lsattr: Operation not supported While reading flags on /tmp/test/nodatacow-rfqh/pp.f
not ok 2 - `C' attribute set on fd with pure Perl

#   Failed test '`C' attribute set on fd with pure Perl'
#   at t/nodatacow.t line 31.
#                   ''
#     doesn't match '(?^:C.*\/tmp\/test\/nodatacow\-rfqh\/pp\.f)'
/run/current-system/sw/bin/lsattr: Operation not supported While reading flags on /tmp/test/nodatacow-rfqh/pp.d
not ok 3 - `C' attribute set on dir with pure Perl

#   Failed test '`C' attribute set on dir with pure Perl'
#   at t/nodatacow.t line 38.
#                   ''
#     doesn't match '(?^:C.*\/tmp\/test\/nodatacow\-rfqh\/pp\.d)'
1..3
# Looks like you failed 2 tests of 3.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/3 subtests 

Test Summary Report
-------------------
t/nodatacow.t (Wstat: 512 Tests: 3 Failed: 2)
  Failed tests:  2-3
  Non-zero exit status: 2
Files=1, Tests=3,  1 wallclock secs ( 0.04 usr  0.08 sys +  0.15 cusr  0.21 csys =  0.48 CPU)
Result: FAIL
--------

> Apologies for the delay, I've pretty much lost all motivation for
> everything in life :<  Will try to find some energy to look into the
> other issues in a bit...

No worry, one step at a time is good :)

Wish you the best,
-- 
Dominique

  reply	other threads:[~2022-01-30 23:19 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-08  1:07 Test failures with 1.7.0 Julien Moutinho
2021-12-08  4:08 ` Eric Wong
2021-12-08 10:56   ` Dominique Martinet
2021-12-08 18:22     ` [PATCH] nodatacow: quiet chattr errors [was: Test failures with 1.7.0] Eric Wong
2021-12-08 21:14       ` Dominique Martinet
2021-12-08 22:01         ` Dominique Martinet
2022-01-30 21:49           ` Eric Wong
2022-01-30 23:18             ` Dominique Martinet [this message]
2022-01-31  2:03               ` Eric Wong
2022-01-31  3:34                 ` Dominique Martinet
2022-02-01  1:27                   ` Eric Wong
2021-12-09  1:37     ` Test failures with 1.7.0 Julien Moutinho
2021-12-09  2:53       ` Dominique Martinet
2022-02-01  9:37         ` Eric Wong
2022-02-01 23:27       ` FD_CLOEXEC w/ nix-shell [was: Test failures with 1.7.0] Eric Wong
2022-02-02  0:23         ` Dominique Martinet
2022-02-02  2:11           ` Dominique Martinet
2022-02-01 23:34       ` [PATCH] test_lei: use consistent locale for error messages Eric Wong
2022-02-17 21:02       ` [PATCH] t/lei-sigpipe: attempt to improve diagnostics for stuck test Eric Wong
2022-02-20  1:38         ` Julien Moutinho
2022-02-22  6:44           ` Eric Wong
2022-02-27  4:15             ` Julien Moutinho
2022-02-27  6:41               ` Julien Moutinho
2022-02-27  7:23                 ` Dominique Martinet
2022-02-27  8:04                   ` Julien Moutinho
2022-02-27 11:17                     ` [PATCH] t/lei-sigpipe: ensure SIGPIPE is unblocked for this test Eric Wong
2022-03-11 10:42                       ` [PATCH] t/lei-sigpipe.t: ensure SIGPIPE is not ignored instead of not blocked Julien Moutinho
2022-03-14 22:14                         ` Eric Wong
2022-03-15  2:56                           ` Julien Moutinho
2022-03-01  2:30   ` Test failures with 1.7.0 Julien Moutinho
2022-03-01  4:05     ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Yfcc0C8ODrag1eik@codewreck.org \
    --to=asmadeus@codewreck.org \
    --cc=e@80x24.org \
    --cc=julm+public-inbox@sourcephile.fr \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).