9front - general discussion about 9front
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9front@9front.org
Subject: Re: [9front] upas/fs issues after sysupdate
Date: Tue, 03 Oct 2023 00:36:49 -0400	[thread overview]
Message-ID: <C7C03B65945C38C53F2502500A63D2EA@eigenstate.org> (raw)
In-Reply-To: <CAM6_EkhSqfyi5626ECURMx51qYr7igqy73Rexobce3-XVN52Dg@mail.gmail.com>

Quoth Kelly Roberts <kelly.glenn.roberts@gmail.com>:
> 
>     upas/fs: dirfstat:
> '/mail/box/glenda/imap.imap.gmail.com.<myemail>@gmail.com.idx.tmp'
> does not exist

also, a diff to try; if this is hjfs, maybe it doesn't
like statting an fd that was just renamed under it:

diff 49bd8a86f3a07c4f54df94838c07fa653d725afa uncommitted
--- a/sys/src/cmd/upas/fs/idx.c
+++ b/sys/src/cmd/upas/fs/idx.c
@@ -271,7 +271,8 @@
 	if(dirfwstat(fd, &n) == -1)
 		sysfatal("dirfwstat: %r");
 
-	d = dirfstat(fd);
+	snprint(buf, sizeof buf, "%s.idx", mb->path);
+	d = dirstat(buf);
 	if(d == nil)
 		sysfatal("dirfstat: %r");
 	mb->qid = d->qid;


  parent reply	other threads:[~2023-10-03  4:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-03  4:20 Kelly Roberts
2023-10-03  4:33 ` ori
2023-10-03  4:43   ` Kelly Roberts
2023-10-03  4:36 ` ori [this message]
2023-10-03  4:56   ` kelly.glenn.roberts
2023-10-03  4:35 Kelly Roberts

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=C7C03B65945C38C53F2502500A63D2EA@eigenstate.org \
    --to=ori@eigenstate.org \
    --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).