Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 276352

Summary: sys-fs/e2fsprogs-1.41.7: resize2fs broken handling of device name
Product: Gentoo Linux Reporter: Matthias Schwarzott <zzam>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fix from e2fsprogs-git

Description Matthias Schwarzott gentoo-dev 2009-07-03 09:51:10 UTC
Trying to resize a mounted ext3 filesystem I get this:

# resize2fs /dev/vg2/bilder
resize2fs 1.41.7 (29-June-2009)
Das Dateisystem auf /dev/vg2/bilder ist auf /usr/share/locale/de_DE.utf8/LC_MESSAGES/e2fsprogs.mo eingehängt; Online-Grössenveränderung nötig
old desc_blocks = 2, new_desc_blocks = 2
resize2fs: Datei oder Verzeichnis nicht gefunden beim Versuch, Einhängpunkt /usr/share/locale/de_DE.utf8/LC_MESSAGES/e2fsprogs.mo zu öffnen

As the output is in German: resize2fs seems to thing the mountpoint of the filesystem is "/usr/share/locale/de_DE.utf8/LC_MESSAGES/e2fsprogs.mo".

Trying the same with LC_ALL=C:
# LC_ALL=C resize2fs /dev/vg2/bilder
resize2fs 1.41.7 (29-June-2009)
Filesystem at /dev/vg2/bilder is mounted on �+�         ; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 2
resize2fs: No such file or directory while trying to open mountpoint �+�

Same result, but other corrupt string used for mountpoint.

Using e2fsprogs-1.41.6 it works as usual:
LC_ALL=C resize2fs /dev/vg2/bilder
resize2fs 1.41.6 (30-May-2009)
Filesystem at /dev/vg2/bilder is mounted on /home/bilder; on-line resizing required
old desc_blocks = 2, new_desc_blocks = 2
Performing an on-line resize of /dev/vg2/bilder to 5388288 (4k) blocks.
The filesystem on /dev/vg2/bilder is now 5388288 blocks long.
Comment 1 Matthias Schwarzott gentoo-dev 2009-07-03 10:29:47 UTC
Created attachment 196492 [details, diff]
fix from e2fsprogs-git

This patch from e2fsprogs-git, commit id e2b3dbd0298af0788e614250279c17e38b49c921
fixes this bug. Please apply.
Comment 2 SpanKY gentoo-dev 2009-07-03 18:43:34 UTC
feel free to apply
Comment 3 SpanKY gentoo-dev 2009-07-03 19:35:48 UTC
added the patch to 1.41.7-r1