9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Arne Meyer <meyer.arne83@netcologne.de>
To: "9front@9front.org" <9front@9front.org>
Subject: [9front] [patch] sync cdfs with IOUNIT
Date: Sat, 26 Aug 2023 20:37:29 +0200 (CEST)	[thread overview]
Message-ID: <298851749.5726268.1693075049628@comcenter.netcologne.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 73 bytes --]

Hello,
this updates cdfs to use the new IOUNIT constant.

Greetings,
Arne

[-- Attachment #2: cdfs.patch --]
[-- Type: application/octet-stream, Size: 567 bytes --]

diff 44a2f89a03c370940fa0f4747c2357c73984d653 uncommitted
--- a/sys/src/cmd/cdfs/dat.h
+++ b/sys/src/cmd/cdfs/dat.h
@@ -132,12 +132,7 @@
 	CDNblock = 12,		/* chosen for CD */
 	DVDNblock = 16,		/* DVD ECC block is 16 sectors */
 	BDNblock = 32,		/* BD ECC block (`cluster') is 32 sectors */
-	/*
-	 * number of blocks read/written must fit in this. if we don't do this,
-	 * remote access (e.g., via /mnt/term/dev/sd* or nusb/disk) fails mysteriously.
-	 * see /sys/src/9/port/devmnt.c MAXRPC.
-	 */
-	Maxrpc = 8192,
+	Maxrpc = IOUNIT,
 };
 
 typedef struct Buf Buf;

[-- Attachment #3: cdfs.patch --]
[-- Type: application/octet-stream, Size: 567 bytes --]

diff 44a2f89a03c370940fa0f4747c2357c73984d653 uncommitted
--- a/sys/src/cmd/cdfs/dat.h
+++ b/sys/src/cmd/cdfs/dat.h
@@ -132,12 +132,7 @@
 	CDNblock = 12,		/* chosen for CD */
 	DVDNblock = 16,		/* DVD ECC block is 16 sectors */
 	BDNblock = 32,		/* BD ECC block (`cluster') is 32 sectors */
-	/*
-	 * number of blocks read/written must fit in this. if we don't do this,
-	 * remote access (e.g., via /mnt/term/dev/sd* or nusb/disk) fails mysteriously.
-	 * see /sys/src/9/port/devmnt.c MAXRPC.
-	 */
-	Maxrpc = 8192,
+	Maxrpc = IOUNIT,
 };
 
 typedef struct Buf Buf;

             reply	other threads:[~2023-08-26 18:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-26 18:37 Arne Meyer [this message]
2023-09-08 16:34 ` Arne Meyer
2023-09-09 21:55 ` ori

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=298851749.5726268.1693075049628@comcenter.netcologne.de \
    --to=meyer.arne83@netcologne.de \
    --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).