[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltp-list
Subject:    Re: [LTP] network namespaces tests cleanup
From:       Cyril Hrubis <chrubis () suse ! cz>
Date:       2015-02-25 13:05:02
Message-ID: 20150225130502.GB20275 () rei ! suse ! de
[Download RAW message or body]

Hi!
> > What I got:
> > 
> > mount("/proc/15413/ns/net", "netnstest", 0x410848, MS_MGC_VAL|MS_BIND, NULL) = -1 \
> > ENOTDIR (Not a directory)
> 
> Right, "netnstest" already needs to exist as a *file*, not a directory
> and the second argument needs to be without a trailing '/' (which it
> is). Then it works for me. The posted C snippets are meant to fit in
> the example setup I posted earlier (just acting in place of unshare or
> nsenter).

My bad I wasn't reading the instruction carefully enough and did mkdir
instead of touch. Now it works fine for me.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic