From owner-freebsd-hackers@freebsd.org Thu Apr 19 15:20:27 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 28EAFF833F4 for ; Thu, 19 Apr 2018 15:20:27 +0000 (UTC) (envelope-from alfix86@gmail.com) Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::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 8DC7D6AB4D for ; Thu, 19 Apr 2018 15:20:26 +0000 (UTC) (envelope-from alfix86@gmail.com) Received: by mail-wr0-x22e.google.com with SMTP id q13-v6so15119620wre.3 for ; Thu, 19 Apr 2018 08:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HHfYqBEOWxs/jPmIl6B73dTuX37wYhMs+ock8knixgQ=; b=jsw4yabhGvsiTBeGSyCzQHmMtteRepZGVRPr4aRxM3CfETkp6vQ/fxrPy81XVCTkys 32r2d4GbhKq8xxMRloWhtT9xeSfjJNU9xXv7D8coIJQk1oD62jCrPG1xLoxp6T0G0uA/ poxyvsQsuSg1j1PMZeyxThG+zwpIPYVzBUtPoYHNOm9ZzPKNgAeTsElwPyb1aV4mp4Pm wkNIl4x0s8iOP/9pcSebxHBmJcZnNmIyk7NRw1qYn8KUROws7J56wJc1o1Ilp1Sekbpj hgCu+NiKFcrC91F4I0iOgsyMTg788q3MDLESerLX0kC+IlGv30UqMREUXlFsmIsphlmy 8mIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HHfYqBEOWxs/jPmIl6B73dTuX37wYhMs+ock8knixgQ=; b=ic3i1UFyoPSOEiHLEpdXBeug9RCkSl9RaKbdqmOpKcoAjkBmbT4O9cQbQ4mLnqjh8F 7UzgYFxw4nE71mNwZIztg+lCdvNyJHf9iQVqrT5gzehPqUDZ1fQbJXB7cYDfgSJ4Bu2D rgOGSAX/b4tkdYQGyRSo1JxnEE4uOzF3jqlDmwjHy+BhCcfwjNe9tb2sgZ3j4ytLhYni LYGIZE+6o9HneR0MtfVzivMA/nKLLqUfH2Vp2L+6llAIAD0ZpTRaIvCzOBBYy4l0ovCa 29YqWU5Ab/vFZYVPOi45t+D48dyAoAbSkLtxnHKzmTjaafWZPUQGoXw6BTSfXvzof6gb qInw== X-Gm-Message-State: ALQs6tBhjKODj23iAPba7qp814s6MT/kCDOQs/Wt6/YjEPzTB7Rjahar sShStZ7mHWUaVYYJuF5SDh23SQ== X-Google-Smtp-Source: AIpwx48IX92Wq/CfkddHA93n/KEO8J3omIVLNPBZyK0/rnX/2VaZfJuMndrLhCURhNT+KRJeuMiNVQ== X-Received: by 2002:adf:b90a:: with SMTP id k10-v6mr5414942wrf.283.1524151225170; Thu, 19 Apr 2018 08:20:25 -0700 (PDT) Received: from alfixfbsd (host81-254-dynamic.22-79-r.retail.telecomitalia.it. [79.22.254.81]) by smtp.gmail.com with ESMTPSA id n79sm6194467wmi.20.2018.04.19.08.20.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 08:20:24 -0700 (PDT) Date: Thu, 19 Apr 2018 17:20:23 +0200 From: alfix86 To: Theron Tarigo 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: <76f78cee-e62a-67fb-3d84-e420c50a4ba1@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Thu, 19 Apr 2018 15:20:27 -0000 > > 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