From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kate-mail.whsl206.com ([49.50.249.47]) by ewsd; Wed Feb 19 20:26:41 EST 2020 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qs.co.nz; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=00Mo3Z2RohDJxmft6t5RgJnRMXFU2qaBMnvMSA0riqM=; b=VYOkNgrdItDSxHcLt1SAZXOcbI DTrtQ7RfdOo3S/cnBs9Tgwkz11xNvUjw24+Vxvdo3o2r9lC3UrJNbNKF49CvgIlHVbQ8H8M75xVyT 8N+XS7dtHCuPdKKufCRAtiZWUymrELGK+WWwPeyWf11QLRLzky2H4yWdOgKLNARKkTjIu/ZHwGv0P flNdv4PPi1aBffXulqVPQPYYEQaul+m0a5lQXrBbAmpRX7339ycoCDXbXAVVtYadNyXQpadTN+Hhl egmnu2HoF28gfscyWzOT2xu9WAbwCn4fLrmhGAeLfZpBRDJu7zibQWW34sgUutrYCWfD77NWWuAS5 Qugtly3g==; Received: from [118.149.197.133] (port=1834 helo=[192.168.43.80]) by kate.whsl206.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1j4abE-004EvS-Ns for 9front@9front.org; Thu, 20 Feb 2020 14:25:58 +1300 Subject: Re: [9front] Help wanted tracking down a bug in divergefs code [unionfs] To: 9front@9front.org References: <8972386454B91041A5D31D0211896297@a-b.xyz> <1581969796.5020.0@riseup.net> From: Trevor Higgins Message-ID: <360b4425-5351-23a5-239b-f3300f721c7a@qs.co.nz> Date: Thu, 20 Feb 2020 14:25:53 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1581969796.5020.0@riseup.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - kate.whsl206.com X-AntiAbuse: Original Domain - 9front.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - qs.co.nz X-Get-Message-Sender-Via: kate.whsl206.com: authenticated_id: phil@qs.co.nz X-Authenticated-Sender: kate.whsl206.com: phil@qs.co.nz X-Source: X-Source-Args: X-Source-Dir: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: abstract core full-stack frontend Thanks kvik, Unionfs is definately a keeper. I see why but personally I don't like the intermediate mount point requirement. Unfortunately it will not replace divergefs in my use case. I am not saying this is the best approach but I divergefs over the root namespace, this precludes any intermediate mount point, as it would create a loop. I have an aversion to historic and obsolete crap and don't appear to have any sentimental attachment (although I own two pdp11's) to the the origins of p9 files and programs. In keeping with the above, I have moved every file and directory I am not partial to into an /attic directory , as well as moving some dirs from / into /arch and other changes. However, I still want to pull changes from 9front.org and I want the least hassles and merge conflicts. This is were divergefs comes in handy. It presents to sysupdate a layout of the namespace consistant with the mercurial repository. The ability to write back to the diverged directory is paramount to its success. If for example, one of the fortune files is updated (like /lib/theo et al), then the changes will be written back to /attic/lib/... and not recreated in /lib. So updates don't recruft my namespace but are still kept current so I dont get future merge conflicts. But changes to other files in /lib will be written back so are kept current. After I have sysupdated, I unmount and I am back to a system will less cruft. Before I got sidetracked with this bug , I was on the way to adding in some more features to make NS rearranging more seamless. Thanks for you comments and the code for unionfs. On 02/18/2020 09:03 AM, raingloom wrote: > Oh dang, I've been looking for this. Also struggling with divergefs > weirdness, but this seems so much simpler. > > On Mon, Feb 17, 2020 at 16:44, kvik@a-b.xyz wrote: >> Unfortunately I can't help you with divergefs problem; I am >> not familiar with the code and I don't feel like dissecting it >> at the time. >> >> If I may instead shamelessly plug unionfs(4) for the task at hand: >> git://code.a-b.xyz/unionfs >> or >> http://code.a-b.xyz/unionfs/snapshot/unionfs-master.tar.gz >> >> ; ramfs >> ; bind /sys/src /mnt/src >> ; unionfs -m /sys/src /tmp /mnt/src >> ; @{cd /sys/src; mk install} > > -- We need another plan