Package: mount
Version: 2.13.1.1-1
Severity: wishlist

ext3 mount(2) allows specification of journal device by "-o 
journal_dev=0xUUUU",  
but the device number has to be worked out by hand as mount(8) won't do the 
translation for us.

(The underlying problem is that ext3 writes the device number of the journal 
device into the super block, but shuffling the devices around or moving the 
device 
to a different machine can change the device number allocated to the journal 
device.  The super block also holds the UUID of the journal device, so we can 
find 
the real device number using liblkid.  It would be nice if mount(8) did this 
for 
us.  Alternatively e2fsprogs needs a /sbin/mount.ext3 helper prog).

Currently:

# blkid
[...]
/dev/md126: UUID="32df9e24-eb73-4173-bcd7-31a258e699cd" 
EXT_JOURNAL="b554a3ab-4741-4f34-a59c-f10490ca160a" SEC_TYPE="ext2" TYPE="ext3" 
/dev/md125: UUID="b554a3ab-4741-4f34-a59c-f10490ca160a" TYPE="jbd"
# stat /dev/md126
  File: `/dev/md126'
  Size: 0               Blocks: 0          IO Block: 4096   block special file
Device: ch/12d  Inode: 17870       Links: 1     Device type: 9,7e
Access: (0660/brw-rw----)  Uid: (    0/    root)   Gid: (    6/    disk)
Access: 2009-12-03 16:22:00.706591367 +0100
Modify: 2009-12-03 12:03:32.192382318 +0100
Change: 2009-12-03 12:03:32.192382318 +0100
# mount -o journal_dev=0x97e /dev/md125 /mnt
[16235.523938] EXT3-fs: external journal device major/minor numbers have changed
[16235.526338] kjournald starting.  Commit interval 5 seconds
[16235.576496] EXT3 FS on md126, external journal on md125
[16235.576539] EXT3-fs: mounted filesystem with ordered data mode.
#

Wish:

# mount -o journal_dev=UUID="b554a3ab-4741-4f34-a59c-f10490ca160a" /dev/md125 
/mnt

Even better:

# mount /dev/md125 /mnt
[ reads superblock, sees it doesn't match current device numbers, fixes it 
automaticaly... ]


-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mount depends on:
ii  libblkid1                     1.41.3-1   block device id library
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libselinux1                   2.0.65-5   SELinux shared libraries
ii  libuuid1                      1.41.3-1   universally unique id library

mount recommends no packages.

Versions of packages mount suggests:
ii  nfs-common               1:1.1.2-6lenny1 NFS support files common to client

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to