Bug#707029: e2fsprogs: UUID is not used to discouver ext4 external journal

2013-05-07 Thread Dmitry Smirnov
Hi Ted,

Thank you for fantastic advice and explanation.

Shall we re-assign this bug to util-linux?

Cheers,
 Dmitry Smirnov.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#707029: e2fsprogs: UUID is not used to discouver ext4 external journal

2013-05-06 Thread Dmitry Smirnov
Package: e2fsprogs
Version: 1.42.5-1.1
Severity: normal

When mounting ext4 with external journal the journal is discovered by
using device number rather than UUID. Because of this mounting ext4
with external journal often fails after reboot because devices
/dev/sd[a-z] are not persistent. As such /dev/disk/by-* links can't
help either as they are merely symlinks to /dev/sd[a-z].

Please add support for ext4 external journal discovery using UUID.

All the best,
 Dmitry Smirnov.


signature.asc
Description: This is a digitally signed message part.


Bug#707029: e2fsprogs: UUID is not used to discouver ext4 external journal

2013-05-06 Thread Theodore Ts'o
On Tue, May 07, 2013 at 10:44:03AM +1000, Dmitry Smirnov wrote:
 
 When mounting ext4 with external journal the journal is discovered by
 using device number rather than UUID. Because of this mounting ext4
 with external journal often fails after reboot because devices
 /dev/sd[a-z] are not persistent. As such /dev/disk/by-* links can't
 help either as they are merely symlinks to /dev/sd[a-z].
 
 Please add support for ext4 external journal discovery using UUID.

This is technically not an e2fsprogs bug.

It is really up to the mount program (which is part of util-linux) or
the shell script which tries mounting the external journal to pass the
device number to the kernel via the journal_dev mount option.  The way
to do this manually is via something like this:

devname=$(blkid -U $journal_uuid)
devno=$(stat -c -x%t%T $devname)
mount -t ext4 -O journal_dev=$devno /dev/$fsdev $mntpt

In the ideal work this is something that mount would be taught to do,
and mount is part of the util-linux package.

- Ted


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org