9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Lorenzo Bivens <izaki@belaska.us>
To: "9front@9front.org" <9front@9front.org>
Subject: Re: [9front] Re: Disk Mirroring, or disk composition using fs(3)
Date: Mon, 21 Jun 2021 05:34:34 +0000	[thread overview]
Message-ID: <CO1PR17MB5177F85CE1616E23FF01B640B60A9@CO1PR17MB5177.namprd17.prod.outlook.com> (raw)
In-Reply-To: <CO1PR17MB51772A268406183C6E31870FB60A9@CO1PR17MB5177.namprd17.prod.outlook.com>

And unstuck. The size of my partitions was off by several million bytes.

Thanks!

________________________________________
From: Lorenzo Bivens on behalf of Lorenzo Bivens <izaki@belaska.us>
Sent: Sunday, June 20, 2021 10:20 PM
To: 9front@9front.org
Subject: Re: [9front] Re: Disk Mirroring, or disk composition using fs(3)

Still stuck!

> Are you using the literal word "end" here?

I am using the word end as a placeholder for the size of the disk (sorry I reckon I should have put some bytes in there)
BUT, as a curiosity, I did try to use the word "end" now that you mentioned it... And it fails silently. Thanks for pointing to it!

________________________________________
From: Anthony Martin <ality@pbrane.org>
Sent: Friday, June 18, 2021 2:22 PM
To: 9front@9front.org
Subject: [9front] Re: Disk Mirroring, or disk composition using fs(3)

Lorenzo Bivens <izaki@belaska.us> once said:
> echo part md0/plan9 /dev/md0/data 0 end >/dev/fs/ctl  # correctly adds a partition to both disks
> echo part md0/fsworm /dev/md0/plan9 0 end >/dev/fs/ctl # adds the fsworm subpartition

Are you using the literal word "end" here?

It should be an integer. The fs(3) device
uses strtoll to parse the argument and will
silently return 0 if it is not a number
resulting in a zero length partition. This
should probably be an error but it's rare
to manually write to /dev/fs/ctl.

Just use disk/fdisk and disk/prep to figure
out the start and length offsets for the
plan9 and fsworm partitions, respectively.

Cheers,
  Anthony

      reply	other threads:[~2021-06-21 15:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-17 23:54 [9front] " Lorenzo Bivens
2021-06-18  8:02 ` Noam Preil
2021-06-18 19:09   ` Lorenzo Bivens
2021-06-18  8:06 ` Noam Preil
2021-06-18 21:22 ` [9front] " Anthony Martin
2021-06-21  5:20   ` Lorenzo Bivens
2021-06-21  5:34     ` Lorenzo Bivens [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=CO1PR17MB5177F85CE1616E23FF01B640B60A9@CO1PR17MB5177.namprd17.prod.outlook.com \
    --to=izaki@belaska.us \
    --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).