All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: dsterba@suse.cz, linux-btrfs@vger.kernel.org
Cc: clm@fb.com
Subject: Re: [PATCH v2] btrfs-progs: add stat check in open_ctree_fs_info
Date: Fri, 18 Mar 2016 11:29:00 -0400	[thread overview]
Message-ID: <56EC1EBC.6010008@gmail.com> (raw)
In-Reply-To: <20160318151714.GA21722@twin.jikos.cz>

On 2016-03-18 11:17, David Sterba wrote:
> On Fri, Mar 18, 2016 at 10:03:42AM -0400, Austin S. Hemmelgarn wrote:
>> This has been both build and runtime tested on an x86-64 system with
>> glibc.  It has been build but not runtime tested with uClibc on x86-64
>> and ARMv7.  It has not been tested on Android or with musl, although it
>> should work there also.
>
> I would not expect any difference among the other arches and libc, it's
> using a common interface.
The only one I would think might possibly be an issue is Android (bionic 
has some serious oddities in some places), but I don't think it's likely 
that they deviated from POSIX semantics here (I would check the 
documentation, but I don't have it readily available).  Mention of the 
arch was more for the sake of completeness in specifying what I tested 
than anything else.
>
>> There are other tools that have similarly poor error behavior when
>> called incorrectly (btrfs rescue immediately comes to mind), but they
>> don't use open_ctree_fs_info, so this doesn't affect them.  I may do
>> followup patches to fix those too if I have the time.
>
> Yeah, it would be good to fix all.
I should have time to take a closer look at btrfs rescue early next 
week, so I may have a patch for that relatively soon.  I can't readily 
think of anything else that might be doing similar things without 
calling open_ctree_fs_info though, so it may be a bit longer before I 
actually post a patch (ideally, I'd like to get all the other things 
that parse unmounted filesystems at the same time).

  reply	other threads:[~2016-03-18 15:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18 14:03 [PATCH v2] btrfs-progs: add stat check in open_ctree_fs_info Austin S. Hemmelgarn
2016-03-18 15:17 ` David Sterba
2016-03-18 15:29   ` Austin S. Hemmelgarn [this message]
2016-03-18 17:50   ` Austin S. Hemmelgarn

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

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

  git send-email \
    --in-reply-to=56EC1EBC.6010008@gmail.com \
    --to=ahferroin7@gmail.com \
    --cc=clm@fb.com \
    --cc=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.