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=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9880 invoked from network); 13 Feb 2021 02:50:09 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 13 Feb 2021 02:50:09 -0000 Received: from mail-io1-f48.google.com ([209.85.166.48]) by 1ess; Fri Feb 12 21:44:09 -0500 2021 Received: by mail-io1-f48.google.com with SMTP id s24so1216535iob.6 for <9front@9front.org>; Fri, 12 Feb 2021 18:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=yTdQkMYlzmqjRCMk0uuMUU22tiOT2lWViH8mpwEAIFI=; b=LcwsoyS+SGkXkklMtNacm5Stg8uP2MwbHO4VmvRadZtBnUbRQ8lv5ClzoLBgHFpd6h eIqhC0aurtpqnAmbPTEnVNSnUelOuf72rAWN8AFKn3LUUcibJGKtxMkWeA9uQfCjAr+W skwjaXNDPvKtX32uR4T3TwNrc29tILjkSirTy2LIFbcoY7x9vBqI5ByFfsvd3vHdVCTI CPgu2dJ6Bg7rGf/CkvUwaadLw3cnwxzoi9kLfE1ssK4WsANEgxsBF3bM5uMIV6NhVFhJ CxuwxWuRJiJJzUN9VfCG9m7bOtszTLDC5r324YBIaUCYLSqaXYLe4CkyVrBzs8lj2Vnt M1EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=yTdQkMYlzmqjRCMk0uuMUU22tiOT2lWViH8mpwEAIFI=; b=RowjqZpNzZ4oxjC43SleUtdtRqlSoo9zJ/v2fVzSQpPNcnZbgK1fCB02qNpP6495Gw t/ftb5WLtdxsu/rh4xoDnv4lyclwfIDf+BBNeiLz+NT1IgQPAWOY5vKAyKhdLyWqsE2u 3Sa0J2zVLTiv3quLPXoNe8efGmpYt5efaMta3xei57rhfVCe+qXNRL87MUdgOShMeQ72 2qQm/nCJpnI1E0nw6ptFZciLV52Q1qsHy1shFsz8k6dEVU2GeO2jEZ0ieiC2Ls+jWm2F ahppuDhlsNS5fdIS/Zafhbp7gprBObxpD6YczWZm23JIizyqk5S7vM2PamrFjEYzb1OA JpRA== X-Gm-Message-State: AOAM531uWNFA4r/RE4cEwcH2NvXRnge+BiAUlEOrY95UFUTQAm9+hAMF hmd+5vTVOC5/5/2MqZYlcZ2PrwBZv7Y= X-Google-Smtp-Source: ABdhPJwK2LAdp0+3kY37DMqsWlY74mRiAWKu2mP81ZPvbceQN5Q+O+yWPZxd1ywyDS3jW8x/laEDiQ== X-Received: by 2002:a6b:fa0f:: with SMTP id p15mr4562857ioh.164.1613183739047; Fri, 12 Feb 2021 18:35:39 -0800 (PST) Return-Path: Received: from [10.0.1.7] (c-67-184-39-205.hsd1.il.comcast.net. [67.184.39.205]) by smtp.gmail.com with ESMTPSA id b11sm5273339ilj.19.2021.02.12.18.35.38 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Feb 2021 18:35:38 -0800 (PST) From: Xiao-Yong Jin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Date: Fri, 12 Feb 2021 20:35:37 -0600 References: <3DCBF20C-767C-444E-9506-7D0D395F4DA6@stanleylieber.com> <6af5b5ea-c6d5-40f6-a22d-eb3b9f93f123@www.fastmail.com> <724AD21E-05BF-4ECD-B92B-3AF191CC77C2@gmail.com> To: 9front@9front.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3654.60.0.2.21) List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: wrapper scripting replication-oriented database Subject: Re: [9front] cfs(4) Reply-To: 9front@9front.org Precedence: bulk > On Feb 12, 2021, at 6:30 PM, james palmer wrote: >=20 > Quoth meta.jxy@gmail.com: >> What is that ramdisk provides that ramfs does not? >> Is there any 9p protocol not implemented properly? >=20 > iirc ramfs dynamically allocates data for its files. > data that is all 0 is not stored in memory. > ramdisk reserves a section of memory and presents it as a disk device. > cfs seems to assume the ramfs file is of 0 size. So you didn't see my dd command. >=20 >> Like I said, putting it in plan9.ini seems to work, >> but I can't figure out why running it manually does not. >> What am I supposed to do? >=20 > you are running it with -d. this enables debugging and keeps in in the = foreground. it is not hung, it is waiting for a 9p connection. No. ------ The actual issue is that devsrv disallows read/write to the file if the channel is already open. Even if I unmount, I still cannot read/write the srv file. The following is fine. ; ramfs ; dd -if /dev/zero -of /tmp/cache -bs 1m -count 16 16+0 records in 16+0 records out ; srv 9front.org post... ; cfs -F /srv/9front.org -dnS -f /tmp/cache dinit: bsize 0x0<=3D 0 formatting disk formatting inodes <-client: Tversion tag 65535 msize 8216 version '9P2000' ->server: Tversion tag 65535 msize 8216 version '9P2000' <-server: Rversion tag 65535 msize 8216 version '9P2000' ->client: Rversion tag 65535 msize 8216 version '9P2000' <-client: Tattach tag 91 fid 1506 afid -1 uname jxy aname=20 ->server: Tattach tag 91 fid 1506 afid -1 uname jxy aname=20 <-server: Rattach tag 91 qid (000000000000e00c 8 d) ->client: Rattach tag 91 qid (000000000000e00c 8 d) ; lc /mnt/cfs/ <-client: Twalk tag 91 fid 1506 newfid 1515 nwname 0=20 ->server: Twalk tag 91 fid 1506 newfid 1515 nwname 0=20 <-server: Rwalk tag 91 nwqid 0=20 ->client: Rwalk tag 91 nwqid 0=20 <-client: Tstat tag 91 fid 1515 ->server: Tstat tag 91 fid 1515 <-server: Rstat tag 91 stat 'n' 'sl' 'sys' 'sl' q (000000000000e00c 8 = d) m 020000000775 at 1608616529 mt 1608616529 l 0 t 77 d 62 ->client: Rstat tag 91 stat 'n' 'sl' 'sys' 'sl' q (000000000000e00c 8 = d) m 020000000775 at 1608616529 mt 1608616529 l 0 t 77 d 62 new file 57356.8 ino 0 <-client: Tclunk tag 36 fid 1515 ->server: Tclunk tag 36 fid 1515 <-server: Rclunk tag 36 ->client: Rclunk tag 36 <-client: Twalk tag 91 fid 1506 newfid 1517 nwname 0=20 ->server: Twalk tag 91 fid 1506 newfid 1517 nwname 0=20 <-server: Rwalk tag 91 nwqid 0=20 ->client: Rwalk tag 91 nwqid 0=20 <-client: Topen tag 91 fid 1517 mode 0 ->server: Topen tag 91 fid 1517 mode 0 <-server: Ropen tag 91 qid (000000000000e00c 8 d) iounit 8192=20 ->client: Ropen tag 91 qid (000000000000e00c 8 d) iounit 8192=20 <-client: Tread tag 91 fid 1517 offset 0 count 8192 ->server: Tread tag 91 fid 1517 offset 0 count 8192 <-server: Rread tag 91 count 483 '3b004d00 3e000000 80210000 00e8ce00 = 00000000 00fd0100 80d07fe1 5fd07fe1 5f000000 00000000 0005006c 69737473 = 0200736c 03007379 73020073 6c3c004d' ->client: Rread tag 91 count 483 '3b004d00 3e000000 80210000 00e8ce00 = 00000000 00fd0100 80d07fe1 5fd07fe1 5f000000 00000000 0005006c 69737473 = 0200736c 03007379 73020073 6c3c004d' <-client: Tread tag 91 fid 1517 offset 483 count 8192 ->server: Tread tag 91 fid 1517 offset 483 count 8192 <-server: Rread tag 91 count 0 '' ->client: Rread tag 91 count 0 '' <-client: Tclunk tag 91 fid 1517 ->server: Tclunk tag 91 fid 1517 <-server: Rclunk tag 91 ->client: Rclunk tag 91 9front/ extra/ fqa/ hardware/ iso/ = lists/ pkg/ sites/ ; unmount /mnt/cfs ; <-client: Tclunk tag 70 fid 1506 ->server: Tclunk tag 70 fid 1506 <-server: Rclunk tag 70 ->client: Rclunk tag 70 ; rm /srv/9front.org