All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislav Brabec <sbrabec@suse.cz>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: [PATCH] libmount: run btrfs subvol checks for "auto" fs type
Date: Mon, 1 Feb 2016 16:20:30 +0100	[thread overview]
Message-ID: <56AF77BE.5030601@suse.cz> (raw)
In-Reply-To: <20160201111815.wilhso7klaiy6cio@ws.net.home>

Karel Zak wrote:
>   It's safe, but "mount -a" is going to call the btrfs ioctl or each
>   "auto" fstab entry :-)
>
I am aware of it. Guessing what is more effective: search for all
candidates in mountinfo and checking whether it is btrfs, or blindly
issuing ioctl() that will:
- quickly fail with EINVAL for non-btrfs
- wil be needed for btrfs anyway

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                         e-mail: sbrabec@suse.com
Lihovarská 1060/12                            tel: +49 911 7405384547
190 00 Praha 9                                 fax:  +420 284 084 001
Czech Republic                                    http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76

  reply	other threads:[~2016-02-01 15:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-26 20:59 [PATCH] libmount: run btrfs subvol checks for "auto" fs type Stanislav Brabec
2016-02-01 11:18 ` Karel Zak
2016-02-01 15:20   ` Stanislav Brabec [this message]
2016-02-02 10:00     ` Karel Zak

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=56AF77BE.5030601@suse.cz \
    --to=sbrabec@suse.cz \
    --cc=kzak@redhat.com \
    --cc=util-linux@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.