From: Anand Jain <Anand.Jain@oracle.com>
To: dsterba@suse.cz, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs-progs: make btrfs dev scan multi path aware
Date: Wed, 10 Apr 2013 11:07:07 +0800 [thread overview]
Message-ID: <5164D75B.1060402@oracle.com> (raw)
In-Reply-To: <20130409111208.GF18193@twin.jikos.cz>
On 04/09/2013 07:12 PM, David Sterba wrote:
> On Mon, Apr 08, 2013 at 05:22:38PM +0200, David Sterba wrote:
>>> + fd = open("/dev/btrfs-control", O_RDWR);
>>> + e = errno;
>>> + if (fd < 0) {
>>> + FILE *mfd = popen("lsmod | grep btrfs", "r");
>> Please transform this into C.
>
> Actually, what if btrfs is not built as a module? There should be another
> way to detect that btrfs is compiled in, like opening the control device
> and reading something back.
yeah sorry i missed it. Thanks. Let me followup in the latest
patch of this.
Thanks, Anand
next prev parent reply other threads:[~2013-04-10 3:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 11:56 [PATCH] btrfs-progs: make btrfs dev scan multi path aware Anand Jain
2013-04-08 15:22 ` David Sterba
2013-04-09 11:12 ` David Sterba
2013-04-10 3:07 ` Anand Jain [this message]
2013-04-10 3:05 ` Anand Jain
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=5164D75B.1060402@oracle.com \
--to=anand.jain@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox