From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15032 invoked from network); 29 Dec 2021 17:50:31 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 29 Dec 2021 17:50:31 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id CF0F99CFFE; Thu, 30 Dec 2021 03:50:27 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 3B9B99CED2; Thu, 30 Dec 2021 03:50:16 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 576899CED2; Thu, 30 Dec 2021 03:50:15 +1000 (AEST) Received: from server907.appriver.com (server907a.appriver.com [204.232.250.39]) by minnie.tuhs.org (Postfix) with ESMTPS id CCC6F9CEA9 for ; Thu, 30 Dec 2021 03:50:14 +1000 (AEST) X-Note: This Email was scanned by AppRiver SecureTide X-Note-AR-ScanTimeLocal: 12/29/2021 12:50:13 PM X-Note: SecureTide Build: 12/13/2021 6:35:34 PM UTC (2.19.13.0) X-Note: Filtered by 10.246.0.224 X-Note-AR-Scan: None - PIPE Received: by server907.appriver.com (CommuniGate Pro PIPE 6.2.15) with PIPE id 234157014; Wed, 29 Dec 2021 12:50:13 -0500 Received: from [10.246.0.39] (HELO smtp.us.exg7.exghost.com) by server907.appriver.com (CommuniGate Pro SMTP 6.2.15) with ESMTPS id 234157008; Wed, 29 Dec 2021 12:50:12 -0500 Received: from E16DN31A-S1E7.exg7.exghost.local (192.168.244.15) by E16DN31B-S1E7.exg7.exghost.local (192.168.246.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.17; Wed, 29 Dec 2021 12:49:40 -0500 Received: from E16DN31A-S1E7.exg7.exghost.local ([192.168.244.15]) by E16DN31A-S1E7.exg7.exghost.local ([192.168.244.15]) with mapi id 15.01.2375.017; Wed, 29 Dec 2021 12:49:41 -0500 From: Brantley Coile To: Clem Cole Thread-Topic: [TUHS] moving directories in svr2 Thread-Index: AQHX/NVi2peukjqyDESnL++gSqSgZ6xKCUwAgAAGtoCAAAMwAA== Date: Wed, 29 Dec 2021 17:49:41 +0000 Message-ID: References: <202112291714.1BTHEiXo008223@freefriends.org> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [47.46.143.102] x-rerouted-by-exchange: MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: <687535307924E44EB803A6B17524BEC4@fwd7.exghost.com> Content-Transfer-Encoding: quoted-printable X-Note: This Email was scanned by AppRiver SecureTide X-Note-AR-ScanTimeLocal: 12/29/2021 12:50:12 PM X-Note: SecureTide Build: 12/13/2021 6:35:34 PM UTC (2.19.13.0) X-Note: Filtered by 10.246.0.224 X-Policy: GLOBAL X-Primary: GLOBAL@coraid.com X-Note-Sender: brantley@coraid.com X-Note-Envelope-Recip: FAILURE,DELAY, X-Note-Envelope-Recip: FAILURE,DELAY, X-Note-Envelope-Recip: FAILURE,DELAY, X-Note-Envelope-Recip: FAILURE,DELAY, X-Virus-Scan: V- X-Note-SnifferID: 0 X-GBUdb-Analysis: 1, 192.168.244.15, Ugly c=0.616906 p=-0.959799 Source White X-Signature-Violations: 0-0-0-7031-c X-Note-419: 0 ms. Fail:0 Chk:1434 of 1434 total X-Note: VSCH-CT/SI: 0-1434/SG:1 12/29/2021 12:49:40 PM X-Note: Spam Tests Failed: X-Country-Path: United States of America->PRIVATE->PRIVATE-> X-Note-Sending-IP: 10.246.0.39 X-Note-Reverse-DNS: X-Note-Return-Path: brantley@coraid.com X-Note: User Rule Hits: X-Note: Global Rule Hits: G912 G914 G915 G916 G917 G935 G936 G937 G1378 X-Note: Encrypt Rule Hits: X-Note: Mail Class: VALID Subject: Re: [TUHS] moving directories in svr2 X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "bakul@iitbombay.org" , "tuhs@minnie.tuhs.org" Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Plan 9 can't move directories with mv. I will only change the name of them. (If this is the question. I was only half paying attention to the thread. S= orry) --bwc cessna% mkdir dira cessna% mkdir dirb cessna% touch dira/a cessna% touch dirb/b cessna% mv dira dirb mv: can't remove ./dirb: remove -- directory not empty To move contents of directories we use dircp. cessna% man dircp TAR(1) TAR(1) NAME tar, dircp - archiver SYNOPSIS tar key [ file ... ] dircp fromdir todir DESCRIPTION Tar saves and restores file trees. It is most often used to transport a tree of files from one system to another. The ... and .tz. If no extension matches, gzip is used. The z flag is unnecessary (but allowed) when using the t and x verbs on archives with recognized extensions. EXAMPLES Tar can be used to copy hierarchies thus: @{cd fromdir && tar c .} | @{cd todir && tar xT} Dircp does this. SOURCE /sys/src/cmd/tar.c /rc/bin/dircp SEE ALSO ar(1), bundle(1), tapefs(4), mkfs(8) cessna%=20 > On Dec 29, 2021, at 12:38 PM, Clem Cole wrote: >=20 > At the risk of kicking a dead horse too much ... >=20 > On Wed, Dec 29, 2021 at 12:14 PM wrote: > Plan 9 eventually did something like this. I don't remember the details. > Arnold - point taken but ... unfortunately, I think that the comparison i= s a little difficult because Plan9's concepts of namespaces is a tad differ= ent than UNIX's. But I'll let Rob or Ken comment as they lived and develop= ed both systems. >=20 > FWIW: An object store is something that retains information after the pro= cesses that operates on it complete - i.e. its a static entity. Links were= (are) also a static concept. Late binding to names (like symlinks) are a= dynamic (runtime idea). Bakul points out that by using the per process u = area, the dynamic context can be retained. The observation is that .. (lik= e symlinks) tend to be a runtime (dynamic) notion, although I'm not sure ho= w you keep consistency in the static FS if you don't store the link in the = inode. As someone that did, I suggest - try writing fsck if you are using = dynamic content. How do you know? I'd still claim it is the same issue. >=20 > Anyway, I suppose that like context sensitive symlinks (which I sorely mi= ss), you could do this and keep a list of the N inodes for the N parents an= d then like CDSL's keep the one you used to get there in the u area so that= .. picks the proper one on the way out and you can still have the static n= otion which something like fsck can check off line.