From owner-freebsd-questions@FreeBSD.ORG Sun Nov 1 20:12:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1B3F1065676 for ; Sun, 1 Nov 2009 20:12:53 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from server505.appriver.com (server505e.appriver.com [98.129.35.9]) by mx1.freebsd.org (Postfix) with ESMTP id 6A75E8FC12 for ; Sun, 1 Nov 2009 20:12:53 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Primary: psteele@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: psteele@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.14 X-Note-Reverse-DNS: ht01.exg5.exghost.com X-Note-WHTLIST: psteele@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: 112 113 114 115 119 120 131 217 X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.14] (HELO ht01.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.2.14) with ESMTPS id 12561032 for freebsd-questions@freebsd.org; Sun, 01 Nov 2009 14:12:46 -0600 Received: from mbx03.exg5.exghost.com ([169.254.1.164]) by ht01.exg5.exghost.com ([98.129.23.14]) with mapi; Sun, 1 Nov 2009 14:12:52 -0600 From: Peter Steele To: "freebsd-questions@freebsd.org" Date: Sun, 1 Nov 2009 14:12:50 -0600 Thread-Topic: Example of using mount() function? Thread-Index: AcpbL7AAZeisKwNATB23iwJFrczsQA== Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3375EB60@MBX03.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Example of using mount() function? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2009 20:12:53 -0000 I want to call the mount() function to perform the same action as running t= he following mount command from the command line: mount -t ufs -o noatime /dev/adXXX /mnt The man page lists the signature of mount() as int mount(const char *type, const char *dir, int flags, voi= d *data); The problem is that the last parameter, data, apparently has to be in a spe= cial structure based on the file system type and it does not describe what = this structure is for ufs. It says "The format for these argument structure= s is described in the manual page for each file system", then it follows th= is up saying that there is no man page for ufs? I did some searches but could not find a single example of what needs to be= plugged into this parameter. Can anyone fill in the missing info?