Re: Supporting human parsable journal_dev specifiers

Christoph Hellwig
2014-07-10T14:31:19Z

On Thu, Jul 10, 2014 at 10:28:24AM -0400, Theodore Ts'o wrote:
> I have a user request that mount be able to interpret the device
> specifier for the journal_dev mount option, so that instead of having
> to type something like
>
> mount -o journal_dev=0x0803 ....
>
> they could unstead use: "journal_dev=/dev/sda3" or even
> "journal_dev=LABEL=ext_journal". I assume the right way to do this is
> a mount helper? Or is this something that you would be willing to
> accept as a patch into util-linux?

At least for the device name the best is to implement it in the kernel,
take a look at what XFS is doing for the log device. The open by dev_t
functionality currently used by extN isn't something we like to see used
anyway.