9front - general discussion about 9front
 help / color / mirror / Atom feed
From: kelly.glenn.roberts@gmail.com
To: 9front@9front.org
Subject: Re: [9front] upas/fs issues after sysupdate
Date: Mon, 02 Oct 2023 21:56:33 -0700	[thread overview]
Message-ID: <5320B1A2FA7525568FA0E5548C2CC8B4@gmail.com> (raw)
In-Reply-To: <C7C03B65945C38C53F2502500A63D2EA@eigenstate.org>

Quoth ori@eigenstate.org:
> 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;
> 

This did the trick. Thanks, Ori!

  reply	other threads:[~2023-10-03  5:00 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
2023-10-03  4:56   ` kelly.glenn.roberts [this message]
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=5320B1A2FA7525568FA0E5548C2CC8B4@gmail.com \
    --to=kelly.glenn.roberts@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).