9front - general discussion about 9front
 help / color / mirror / Atom feed
From: cinap_lenrek@felloff.net
To: 9front@9front.org
Subject: Re: [9front] devfs config file loading
Date: Mon, 29 Mar 2021 15:42:13 +0200	[thread overview]
Message-ID: <BDD0DAAB8D63A17E62B6938613909E88@felloff.net> (raw)
In-Reply-To: <50840a80-ccc0-41e4-b55d-eb7156af7e6f@www.fastmail.com>

> should the devfs config file be loaded by bootrc instead of the driver?

yes, that makes sense.

tho that should already be happening?

boorc runs nusbrc first, then runs configlocal(), which calls diskparts,
which after having parsed all partition tables of all the disks (/dev/sd*),
it will execute this line:

	# set up any fs(3) partitions
	if (! test -e /dev/fs/ctl && test -e '#k/fs')
		bind -b '#k' /dev

the fs configuration is read at walk time (rdconf() called from mwalk()) so
the line above should trigger the fs configuration load. at at this time,
all the usb devices (and their partitions) should have been enumerated?

you can try setting the debug variable in devfs.c and add debug print to
diskparts script and see if that is correct. there might be some place
where we accidentally trigger a config load before usb is enumerated?

--
cinap

  reply	other threads:[~2021-03-29 13:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-27 20:36 james palmer
2021-03-29 13:42 ` cinap_lenrek [this message]
2021-03-29 16:30   ` james palmer
2021-03-29 18:10     ` james palmer
2021-03-31 15:57       ` cinap_lenrek

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=BDD0DAAB8D63A17E62B6938613909E88@felloff.net \
    --to=cinap_lenrek@felloff.net \
    --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).