From owner-freebsd-hackers@freebsd.org Fri Apr 13 02:30:20 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B4FBF81CFA for ; Fri, 13 Apr 2018 02:30:20 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-yb0-x22e.google.com (mail-yb0-x22e.google.com [IPv6:2607:f8b0:4002:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF07275881 for ; Fri, 13 Apr 2018 02:30:19 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mail-yb0-x22e.google.com with SMTP id 185-v6so1395519ybv.0 for ; Thu, 12 Apr 2018 19:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=ZinnaKtll88UNq0AStecr5ut/t4T5dZ1J++I/CZIKVk=; b=Txc/5R4Quyotu0icMNuDulDotZyVHXrWvnBMikRoJYJvqith1/zWEHbPwfgs684MKa 216NKHbkGq616kfV6rKRkuzlwmyzQtpeCLqf2MCV+u4APCEd6C/YOVXNUpuklVAYuLgH 7bT1tTlgb4PdhQsUlj3O2H0Cd2JrPYp/VML0YapF3e05p+7fuFzQfenyXKYkZxN1qJYc ty1zgMUnoFlBH2Mr6ybATTTOng6uVvJOvirFxFHHD4qUoQfQqaJd2UINBK8S7CHg2anY cP30U1tvy2cpBsxYPlfNLa0Lc3eYvQdxkFBZUaKqM8PkiGL3sQ3GMaFFETI32MaqrG47 ByDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:cc:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ZinnaKtll88UNq0AStecr5ut/t4T5dZ1J++I/CZIKVk=; b=lP/7CiMsCyRdv4DoZXztMGsp6p+98WXgAA5vufEIXG/FGfNAmVOKPxahKWs6H1Tsor 5lo516xEqW7KQHdr+ESU1/kCYS6V5sr5rB0n98stnFRizbICxoS8GQfS3t8RgtBjmjPl i1GmZnI7HxNge7/+M0jSdAGCKSabBF3vUdXYd62kllh6NxeEcCz3N0h53haOrq2CP0H5 MT1+mpMRMvbND6BRLFYuBGahdtX+Y/vR17eaglcELYbhMHNmAOfk3k8QNsRQZkwu6hnX 6xyp7TeAA+tT7+oMuCsx1oxP7xR9TxpVF39m+pNvvlFnoL8NF7oPTkYe+qfhmIQZq2X3 Z7Zg== X-Gm-Message-State: ALQs6tCsy/eH0v/CrZw74V1E679o3uIMxi2GEMzhlMmJ3rTAR/3ru3Pf 9LetouAi9h+m6JFYeI9OnH/e213D X-Google-Smtp-Source: AIpwx4+9upUdv8tRRSq/9mKddl7p5vLwaO89jrt6s2aWxNjiJtpLMwsv7IyoLb4ZeokirDHE+T6+yQ== X-Received: by 2002:a25:b124:: with SMTP id g36-v6mr2843443ybj.418.1523586619252; Thu, 12 Apr 2018 19:30:19 -0700 (PDT) Received: from [168.122.154.98] (dhcp-resnet-168-122-154-98.bu.edu. [168.122.154.98]) by smtp.gmail.com with ESMTPSA id h2sm3473740qkc.27.2018.04.12.19.30.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Apr 2018 19:30:18 -0700 (PDT) Sender: Theron Tarigo Subject: Re: mount system call for nullfs To: Alfonso Sabato Siciliano References: From: Theron Tarigo Cc: freebsd-hackers@freebsd.org Message-ID: <76f78cee-e62a-67fb-3d84-e420c50a4ba1@gmail.com> Date: Thu, 12 Apr 2018 22:30:17 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2018 02:30:20 -0000 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