From owner-freebsd-arch@freebsd.org Thu Feb 11 19:00:56 2021 Return-Path: Delivered-To: freebsd-arch@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EC7F6531E40 for ; Thu, 11 Feb 2021 19:00:56 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dc5Yz6lxtz4fs9 for ; Thu, 11 Feb 2021 19:00:54 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (v-critter.freebsd.dk [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 69FBC8928B; Thu, 11 Feb 2021 19:00:47 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.16.1/8.16.1) with ESMTPS id 11BJ0loX082974 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 11 Feb 2021 19:00:47 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.16.1/8.16.1/Submit) id 11BJ0kXu082973; Thu, 11 Feb 2021 19:00:46 GMT (envelope-from phk) To: Ka Ho Ng , Ka Ho Ng via freebsd-arch Subject: Re: Proposing space management API to perform hole-punching In-reply-to: <17D576F5-FBB9-425A-B6AB-B6CBA97ED785@freebsdfoundation.org> From: "Poul-Henning Kamp" References: <17D576F5-FBB9-425A-B6AB-B6CBA97ED785@freebsdfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <82971.1613070046.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Thu, 11 Feb 2021 19:00:46 +0000 Message-ID: <82972.1613070046@critter.freebsd.dk> X-Rspamd-Queue-Id: 4Dc5Yz6lxtz4fs9 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of phk@critter.freebsd.dk designates 130.225.244.222 as permitted sender) smtp.mailfrom=phk@critter.freebsd.dk X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[phk]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[130.225.244.222:from]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.dk]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SPAMHAUS_ZRD(0.00)[130.225.244.222:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU]; FROM_NEQ_ENVFROM(0.00)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; MAILMAN_DEST(0.00)[freebsd-arch] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2021 19:00:57 -0000 -------- Ka Ho Ng via freebsd-arch writes: > The proposal contains fspacectl(2), VOP_DEALLOCATE(9) and vn_deallocate(= 9). fspacectl(2) is a space management API that takes a file descriptor, a= command value, a range and flags. The system call is responsible for doi= ng space management operations such as punching holes, which is the only o= peration supported so far. [...] 1. Which other operations are/can be foreseen ? 2. What arguments would they need ? 3. Should the syscall definition take this into account already now ? 4. Are there any existing APIs for this ? 5. Should we stick closely to them ? If not, why not ? -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= .