* Re:mount namespaces issue
@ 2013-05-16 10:05 remaper
0 siblings, 0 replies; only message in thread
From: remaper @ 2013-05-16 10:05 UTC (permalink / raw)
To: Kevin Wilson, linux-fsdevel
i test this on centos and ubuntu, in a tmp dir, method:
touch root.img
mkdir hda
dd if=/dev/zero of=./root.img bs=1M count=100
mkfs.ext3 root.img
strace mount -o loop root.img hda/ 2>log
and then: cat log | grep hda
on centos:
execve("/bin/mount", ["mount", "-o", "loop", "root.img", "hda/"], [/* 28 vars */]) = 0
open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3
stat64("/sbin/mount.ext3", 0xbfaa4484) = -1 ENOENT (No such file or directory)
mount("/dev/loop0", "hda/", "ext3", MS_MGC_VAL, NULL) = 0
on ubuntu:
execve("/bin/mount", ["mount", "-o", "loop", "rootfs.img", "hda/"], [/* 53 vars */]) = 0
stat64("/sbin/mount.ext3", 0xbfa83590) = -1 ENOENT (No such file or directory)
mount("/dev/loop0", "hda/", "ext3", MS_MGC_VAL, NULL) = 0
may be you can see here, the different between centos and ubuntu:
open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3
:)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-16 10:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-16 10:05 Re:mount namespaces issue remaper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).