9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Xiao-Yong Jin <meta.jxy@gmail.com>
To: 9front@9front.org
Subject: Re: [9front] cfs(4)
Date: Fri, 12 Feb 2021 20:35:37 -0600	[thread overview]
Message-ID: <FB803552-CC85-45CE-8572-A5F67E24A0B6@gmail.com> (raw)
In-Reply-To: <f2475cf8-bc38-43ea-9ea0-7cef2d1f795c@www.fastmail.com>


> On Feb 12, 2021, at 6:30 PM, james palmer <james@biobuf.link> wrote:
> 
> Quoth meta.jxy@gmail.com:
>> What is that ramdisk provides that ramfs does not?
>> Is there any 9p protocol not implemented properly?
> 
> 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.

> 
>> 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?
> 
> 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<= 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 
->server: Tattach tag 91 fid 1506 afid -1 uname jxy aname 
<-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 
->server: Twalk tag 91 fid 1506 newfid 1515 nwname 0 
<-server: Rwalk tag 91 nwqid 0 
->client: Rwalk tag 91 nwqid 0 
<-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 
->server: Twalk tag 91 fid 1506 newfid 1517 nwname 0 
<-server: Rwalk tag 91 nwqid 0 
->client: Rwalk tag 91 nwqid 0 
<-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 
->client: Ropen tag 91 qid (000000000000e00c 8 d) iounit 8192 
<-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



      reply	other threads:[~2021-02-13  2:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-09 15:51 Stanley Lieber
2021-02-10 15:27 ` james palmer
2021-02-12  3:16   ` Xiao-Yong Jin
2021-02-12  7:30     ` Silas McCroskey
2021-02-12  8:34       ` james palmer
2021-02-12 19:50       ` Xiao-Yong Jin
2021-02-13  0:30         ` james palmer
2021-02-13  2:35           ` Xiao-Yong Jin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FB803552-CC85-45CE-8572-A5F67E24A0B6@gmail.com \
    --to=meta.jxy@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).