From: Jan Tulak <jtulak@redhat.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: Christoph Hellwig <hch@infradead.org>,
Eric Sandeen <sandeen@redhat.com>,
xfs@oss.sgi.com
Subject: Re: [PATCH v3] xfsprogs: blkid is now mandatory
Date: Thu, 6 Aug 2015 09:13:15 -0400 (EDT) [thread overview]
Message-ID: <1490980415.3591793.1438866795648.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <55C0E73B.1000904@sandeen.net>
----- Original Message -----
> From: "Eric Sandeen" <sandeen@sandeen.net>
> > Signature detection (if I understand you correctly 'signature of existing
> > FS') could be really disabled, I think. That would take care of
> > check_overwrite(). However, blkid is also used in get_topology. That one
> > calls blkid_get_topology, which uses blkid's functions for finding out
> > sector and io sizes.
>
> Well, it would be sane to default to 512 sectors; if that fails it'll
> be obvious fairly quickly, and the user can always use the command line
> to specify 4k sectors (or stripe alignment, etc) manually.
>
> > What I really can do is to say "on osx, you can mkfs only files," and cut
>
> bleah! ;)
>
> > out the blkid parts. But it limits the usage on OS X even further.
> > Although, the removed code for non-blkid systems used platform_findsizes
> > as fallback. Are there some ugly, terrible monsters who would jump from
> > under the bed when doing that?
>
> Well, the old findsizes was there for this reason, but now it's gone ;)
platform_findsizes is still there, in the "is file" branch. Small ifdef can
put it instead of blkid...
>
> > However, this patch affects only mkfs. It still should be possible to use
> > xfs_db and xfs_repair even on block devices.
>
> I don't know how invasive it'd be, but I think in the absence of blkid,
> we should still work, but lose signature detection, and fall back to geometry
> defaults.
It looks like it works. Though I need to do some testing before I send the patch.
Unfortunately, making FS tests without the ability to mount it on the machine
requires USB drive shuffling and it is hard to automate it... :-)
What I think about is whether to write some warning in autoconf. Because it is
easy to forget to install libblkid-dev package on linux and with this patch,
it chancan change the behaviour unexpectedly when using autoconf for blkid
detection.
Or maybe I could require blkid by default, and disable it with an argument
like LOCAL_CONFIGURE_OPTIONS="--enable-blkid=no".
I think the config option is a better way - it can't happen you disable it just
because you forget to install a package.
Cheers,
Jan
--
Jan Tulak
jtulak@redhat.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2015-08-06 13:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-01 16:01 [PATCH] xfsprogs: blkid is now mandatory Jan Tulak
2015-07-01 22:55 ` Dave Chinner
2015-07-02 10:27 ` Jan Tulak
2015-07-02 10:43 ` [PATCH v2] " Jan Tulak
2015-07-03 15:19 ` Christoph Hellwig
2015-07-03 23:45 ` Dave Chinner
2015-07-07 15:10 ` Jan Tulak
2015-07-08 9:14 ` [PATCH v3] " Jan Tulak
2015-07-21 12:39 ` Jan Tulak
2015-07-26 16:25 ` Christoph Hellwig
2015-08-03 10:40 ` Jan Tulak
2015-08-03 17:20 ` Eric Sandeen
2015-08-04 15:30 ` Jan Tulak
2015-08-04 16:24 ` Eric Sandeen
2015-08-06 13:13 ` Jan Tulak [this message]
2015-08-11 16:40 ` Jan Tulak
2015-07-26 16:28 ` Christoph Hellwig
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=1490980415.3591793.1438866795648.JavaMail.zimbra@redhat.com \
--to=jtulak@redhat.com \
--cc=hch@infradead.org \
--cc=sandeen@redhat.com \
--cc=sandeen@sandeen.net \
--cc=xfs@oss.sgi.com \
/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.