All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't remount loopback ext4 without /etc/mtab
@ 2011-07-24 18:09 Daniel Drake
  2011-07-24 19:57 ` Ted Ts'o
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Drake @ 2011-07-24 18:09 UTC (permalink / raw)
  To: util-linux

Hi,

In Fedora 14, the test case below worked fine. In Fedora 15, it fails.
I think this is due to the change to have /etc/mtab as a symlink to
/proc/mounts.

# dd if=/dev/zero of=fs.img bs=1M count=20
# mkfs.ext4 fs.img
# mkdir mountpt
# mount -o loop fs.img mountpt

Now try to remount it read-only:

# mount -o remount,ro mountpt
mount: /home/dsd/tmpdisk/mountpt not mounted already, or bad option

(On Fedora 14 no error was returned and the mount became read-only)

When the error occurs, dmesg says:
[ 5495.860391] EXT4-fs (loop0): Unrecognized mount option "seclabel"
or missing value

Here is the corresponding entry from /proc/mounts:
/dev/loop0 /home/dsd/tmpdisk/mountpt ext4
rw,seclabel,relatime,barrier=1,data=ordered 0 0

Is this a util-linux bug? Or an ext4 issue?

Thanks,
Daniel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-07-26 19:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-24 18:09 Can't remount loopback ext4 without /etc/mtab Daniel Drake
2011-07-24 19:57 ` Ted Ts'o
2011-07-24 22:46   ` Davidlohr Bueso
2011-07-25  9:06   ` Karel Zak
2011-07-25  9:20     ` Daniel Drake
2011-07-25  9:46       ` Karel Zak
2011-07-26 19:29         ` Daniel Drake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.