Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2018 17:20:23 +0200
From:      alfix86 <alfix86@gmail.com>
To:        Theron Tarigo <theron.tarigo@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: mount system call for nullfs
Message-ID:  <20180419172023.e19621515d3060295dccb2f5@gmail.com>
In-Reply-To: <76f78cee-e62a-67fb-3d84-e420c50a4ba1@gmail.com>
References:  <CAPJrGM3NdM1oCGPMMnUut6Qu=EsCcmJz=_Jy8=micdCjni8wpA@mail.gmail.com> <76f78cee-e62a-67fb-3d84-e420c50a4ba1@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> > I would use "mount" system call
> >
> >   int mount(const char *type, const char *dir, int flags, void *data);
> >
> > to mount a nullfs, the problem is about *data;
> >
> > Where can I find docs? Example? Code?

I solved,
The *data [0] was in FreeBSD4:

struct null_args {
char    *target;    /* Target of loopback  */
};

but was deleted [1], so  I'll use nmount

[0] http://fxr.watson.org/fxr/source/miscfs/nullfs/null.h?v=FREEBSD4
[1] https://svnweb.freebsd.org/base/head/sys/fs/nullfs/null.h?r1=65467&r2=97186

-- 
alfix86 <alfix86@gmail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180419172023.e19621515d3060295dccb2f5>