Date: Thu, 12 Apr 2018 22:30:17 -0400 From: Theron Tarigo <theron.tarigo@gmail.com> To: Alfonso Sabato Siciliano <alfix86@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: mount system call for nullfs Message-ID: <76f78cee-e62a-67fb-3d84-e420c50a4ba1@gmail.com> In-Reply-To: <CAPJrGM3NdM1oCGPMMnUut6Qu=EsCcmJz=_Jy8=micdCjni8wpA@mail.gmail.com> References: <CAPJrGM3NdM1oCGPMMnUut6Qu=EsCcmJz=_Jy8=micdCjni8wpA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 04/12/18 21:30, Alfonso Sabato Siciliano wrote: > Hello, > > 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? Hi Alfonso, The MOUNT(2) manual says: The data argument is a pointer to a structure that contains the type specific arguments to mount. The format for these argument structures is described in the manual page for each file system. By convention file system manual pages are named by prefixing ``mount_'' to the name of the file system as returned by lsvfs(1). Thus the NFS file system is described by the mount_nfs(8) manual page. It should be noted that a manual page for default file systems, known as UFS and UFS2, does not exist. Try looking at /usr/src/sbin/mount_nullfs/ for example. Cheers, Theron
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?76f78cee-e62a-67fb-3d84-e420c50a4ba1>