tune2fs strange error when creating jounal on mounted ext4

Bug #416648 reported by Rune Kock
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
e2fsprogs (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: e2fsprogs

Using e2fsprogs 1.41.8-1ubuntu2 (Karmic alpha).

I unmount (or mount readonly) my ext4 partition, then remove the journal with tune2fs -O ^has_journal.

As long as the partition is unmounted, I can recreate the journal with tune2fs -O has_journal.

If the partition is mounted readonly, tune2fs fails with a sensible error message. I assume that this has never been intended to work.

If the partition is mounted readwrite, tune2fs says:
tune2fs: Unknown code ____ 255
        while trying to create journal file

According to the man page, creating a journal on a mounted partition should work. I guess that this has just never been tested on ext4.

Related branches

Changed in e2fsprogs (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Theodore Ts'o (tytso) wrote :

The following patch has been committed into the e2fsprogs maint branch.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 416648] Re: tune2fs strange error when creating jounal on mounted ext4

On Tue, 2009-08-25 at 14:35 +0000, Theodore Ts'o wrote:

> The following patch has been committed into the e2fsprogs maint branch.
>
Have you pushed this?

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package e2fsprogs - 1.41.9-1ubuntu1

---------------
e2fsprogs (1.41.9-1ubuntu1) karmic; urgency=low

  * Merge from Debian, remaining changes:
    - Do not build-depend on dietlibc-dev, which is universe.
    - Do now allow pkg-create-dbgsym to operate on this package.
    - Use external libblkid and libuuid from util-linux, rather than
      building our own.
    - Do not include /etc/e2fsck.conf and remove on upgrade.

  * Included a couple of extra revisions from GIT maint:
    - (ffd8078) e2freefrag: Update manpage to include e2fsprogs version
      and release date
    - (31b5a2b) mke2fs.conf: Use the feature name "extent" instead of
      "extents"
    - (8bafedb) tune2fs: Fix "tune2fs -j <dev>" for extent-enabled
       filesystems. LP: #416648.

e2fsprogs (1.41.9-1) unstable; urgency=low

  * New upstream release
  * Fix tune2fs -I to work correctly in the face of bad blocks and
    filesystems formatted for RAID arrays, and ENOSPC errors
  * Require the user to only answer one question instead of multiple
    ones for multiple bad block group checksums, or when an inode
    table needs to be moved.
  * Fix e2fsck to handle moving inode tables in FLEX_BG filesystems more
    gracefully by looking in the entire flex_bg for space, instead of
    just in the block group; if that doesn't work, try looking for
    space in the entire filesystem.
  * Fix the filefrag code to avoid printing the extent header if it
    needs to fallback to using the FIBMAP ioctl.
  * Fix filefrag to print the correct number of extents for zero-length
    files when using FIBMAP. (Closes: #540376)
  * Add a filefrag -B option to make it easier to debug the FIBMAP
    support.
  * Allow e2fsprogs programs to allocate from uninitalized block groups.
  * Add a new program, e2freefrag, which displays information about the
    free space fragmentation in an ext2/3/4 filesystem.
  * E2fsck will now print much fuller information when the last mount
    time or last written time is in the future, since most people can't
    seem to believe their distribution has buggy init scripts, or they
    have a failed CMOS/RTS clock battery.
  * Update French, Polish, Czech, and Sweedish translation from the
    Translation Project.
  * Enhance debugfs's 'stat' command to print basic extent information
    for extent-mapped inodes, and add a new command, 'dump_extents'
    which prints detailed information about an inode's extent tree.

e2fsprogs (1.41.8-2) unstable; urgency=low

  * Fix regression in ext2fs_extent_set_bmap() which caused e2fsck -fD
    to fail on ext4 filesystems if the directory needs to shrink by more
    than a block (Closes: #537510)
  * Fixed filefrag for non-extent based files
  * Fix use of apostrohe's in package descriptions
  * Don't use dietlibc when building for mips and mipsel architectures

 -- Scott James Remnant <email address hidden> Tue, 25 Aug 2009 18:34:46 +0100

Changed in e2fsprogs (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Theodore Ts'o (tytso) wrote : Re: [Bug 416648] Re: tune2fs strange error when creating jounal on mounted ext4

On Tue, Aug 25, 2009 at 05:26:22PM -0000, Scott James Remnant wrote:
> On Tue, 2009-08-25 at 14:35 +0000, Theodore Ts'o wrote:
>
> > The following patch has been committed into the e2fsprogs maint branch.
> >
> Have you pushed this?

Pushed now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.