Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318307 - with CONFIG_EXT4_USE_FOR_EXT23=y, ext4 root filesystem shows as ext2 (sys-kernel/gentoo-sources-2.6.33-r1)
Summary: with CONFIG_EXT4_USE_FOR_EXT23=y, ext4 root filesystem shows as ext2 (sys-ker...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor with 1 vote (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-bugzilla-pending
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 16:46 UTC by PM
Modified: 2010-08-07 21:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel config (.config,53.64 KB, text/plain)
2010-05-11 18:31 UTC, PM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PM 2010-05-03 16:46:49 UTC
When CONFIG_EXT4_USE_FOR_EXT23 is enabled my root ext4 filesystem is reported as being mounted as ext2 (which is impossible). Examples:

[    2.499639] EXT4-fs (sda5): mounted filesystem with ordered data mode 
[    2.499649] VFS: Mounted root (ext2 filesystem) readonly on device 8:5.

$ mount 
rootfs on / type rootfs (rw) 
/dev/root on / type ext2 (rw,noatime,barrier=1,data=ordered)

My wild guess is that the kernel during boot first tries to mount the root fs as ext2 and the ext4 filesystem built with CONFIG_EXT4_USE_FOR_EXT23 silently reverts to ext4 which causes the confusion.

Reproducible: Always




Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7400_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 03 May 2010 11:30:01 +0000
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -msse3 -mssse3 -msse4.1 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -msse3 -mssse3 -msse4.1 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/kde-sunset /usr/local/portage/moje"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 amr amrnb amrwb async audiofile automount bash-completion berkdb bineditor branding bzip2 cairo cdda cddb cdio cdparanoia cdr chdir cli consolekit cracklib crypt css cuda cups curl cxx dbus dirac disk-partition divx djvu dri dts dvd dvdr editor emboss emovix enca encode exchange exif faac faad fam fat ffmpeg fftw firefox firefox3 flac fontconfig fortran gd gdbm geoip gif glitz gmedia gphoto2 gpm gtk hal hddtemp iconv id3 id3tag imagemagick inotify ipod jpeg kde kde4 kdehiddenvisibility kipi kompare kpathsea kqemu ladspa lame laptop lastfm latex lcms libcaca libnotify libsamplerate lm_sensors mad midi mikmod mjpeg mmap mmx mmxext mng modules mp3 mp3tunes mp4 mpeg mplayer mtp mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin ntfs ogg openal opencore-amr opengl openmp optimized-qmake pam pango pch pcre pdf perl plasma png policykit ppds pppd python qt3 qt3support qt4 readline realmedia reflection roe sasl scanner schroedinger sdl secure-delete sensord session slang sndfile solver soundtouch sourceview spell spl sse sse2 sse3 sse4a ssl ssse3 startup-notification suid svg swat symlink sysfs syslog tcpd theora threads tiff truetype unicode upnp usb vamp vcd vdpau vorbis webkit wicd wmf wmp wxwidgets wxwindows x264 xcb xcomposite xine xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-05-10 07:23:40 UTC
I found also this http://thread.gmane.org/gmane.comp.file-systems.ext4/18007 .

Can you give it a try with =gentoo-sources-2.6.33-r2 ? This is probably upstream, but please upload your full kernel config (as attachment) to let the maintainers see your full configuration. Thank you for your report.
Comment 2 PM 2010-05-11 18:31:30 UTC
Created attachment 231117 [details]
kernel config
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2010-05-27 23:15:57 UTC
Try the latest ~testing kernel (2.6.34) and report back please

Thank you
Comment 4 PM 2010-05-31 10:06:00 UTC
It's still present in 2.6.34.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2010-06-29 21:00:41 UTC
I would suggest to file a bug on kernel upstream bugzilla about this

http://bugzilla.kernel.org including your .config file and the most recent kernel version that fails

Remember to post here the upstream URL of your bug so we can watch it

Thank you
Comment 6 Kim 2010-08-07 21:18:53 UTC
There is already an, sadly quiet, upstream bug here:
https://bugzilla.kernel.org/show_bug.cgi?id=15391

The problem is still there in sys-kernel/gentoo-sources-2.6.35 for ext3 and ext4 root partitions.