linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: remaper <yp.fangdong@gmail.com>
To: "Kevin Wilson" <wkevils@gmail.com>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re:mount namespaces issue
Date: Thu, 16 May 2013 18:05:49 +0800	[thread overview]
Message-ID: <tencent_644BC7F972805FB02AAE373A@qq.com> (raw)

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

:)

                 reply	other threads:[~2013-05-16 10:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_644BC7F972805FB02AAE373A@qq.com \
    --to=yp.fangdong@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=wkevils@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).