Authentication-Results: mail-b.sr.ht; dkim=pass header.d=pixelhero.dev header.i=@pixelhero.dev Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by mail-b.sr.ht (Postfix) with ESMTPS id 453FD11F001 for <~sircmpwn/public-inbox@lists.sr.ht>; Tue, 22 Nov 2022 00:31:52 +0000 (UTC) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pixelhero.dev; s=key1; t=1669077111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=jH5tgKPIjPZoWM2AVvLcsrLB/ATryMl/Iosczwd0xRw=; b=NB4AD7NF4rCi3Jl2oomfyUYgDbnlAWcF9WL2qs7idd8jnXHhz9JXuc2knoTvJIsBE+7H/A lYUgT/7NdwxoQ+uWpMfd8GRAjAoK2/p4947r6SjI8c4hVbdTKpme01zmTwQbNMF/Nk6F/R dAgXtwhoGh/T8G5N/3Mqy8PZ4/OSgNEja6MhL2+V71u5EKA9NG5gvmtmhVSkxC+70506NM wXCkmpjJKYf0AGlm3MFCGAV1eLxEILaCTZ4/1CHxHCaFknwKRcRrWUPU0b2AW5iQTyd/yK GXyvsteErdzcaWctUOAXXiZc68wpTdYQ+olnvn0a+Cyhzp390r02IvwKKCweTw== To: safinaskar@gmail.com, ~sircmpwn/public-inbox@lists.sr.ht Subject: Re: In praise of Plan 9: Plan 9 doesn't have true "mv"! Date: Mon, 21 Nov 2022 20:31:25 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: noam@pixelhero.dev In-Reply-To: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 X-Migadu-Footer: yes Quoth Askar Safin : > Hi. This letter is mostly not for Drew himself, but for everybody > else. I hope that Drew's readers will read this mail and will know how > bad Plan 9 actually is. I use Plan 9 as my primary personal operating system, and am writing this within it. > As you can see by carefully reading this source, "mv" always > unconditionally COPIES file data (as opposed to Linux: Linux and all > sane OS move files without copying when on the same file system)! > As well as I remember I got this answer: this is because the 9P > protocol (core file protocol in Plan 9) doesn't have move operation. The wstat operation, used to update metadata, can be (and is, in fact, *in the code YOU LINKED*) used as a rename operation. Renames are supported, but only within the same file system. They're not supported in _every_ case by mv(1) (currently, only within the same folder), but in principle it can be done. The main problem is that it's hard to know if two different folders are on the same file system. The reality is that it's doable, but nobody has cared enough to make the needed changes, because it _hasn't mattered_. Yes, it's slower - but how often do you move a lot of data to another point on the *same file system*? - Noam Preil