* [9front] upas/fs issues after sysupdate
@ 2023-10-03 4:20 Kelly Roberts
2023-10-03 4:33 ` ori
2023-10-03 4:36 ` ori
0 siblings, 2 replies; 6+ messages in thread
From: Kelly Roberts @ 2023-10-03 4:20 UTC (permalink / raw)
To: 9front
Hey all,
Apologies in advance for formatting weirdness: I have to type this on
my phone because...
So after a sysupdate I can no longer use upas/fs for my gmail account.
I know this has something to do with Ori's recent commit to have
temporary index files created and I'm pretty sure it's a permissions
thing, but I don't know where to troubleshoot. I'm only just beginning
my foray into Plan 9.
Checking /dev/kmesg had this as the first error that appeared after the update:
upas/fs: dirfstat:
'/mail/box/glenda/imap.imap.gmail.com.<myemail>@gmail.com.idx.tmp'
does not exist
Trying to touch or otherwise create said file results in:
upas/fs: dirfstat: wstat -- attempt to change qid.vers
And if I instead move the .idx to .idx.tmp I get:
upas/fs: dirfstat:
'/mail/box/glenda/imap.imap.gmail.com.<myemail>@gmail.com.idx' does
not exist
Any tips or pointers would be greatly appreciated.
Cheers,
-K.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9front] upas/fs issues after sysupdate
2023-10-03 4:20 [9front] upas/fs issues after sysupdate Kelly Roberts
@ 2023-10-03 4:33 ` ori
2023-10-03 4:43 ` Kelly Roberts
2023-10-03 4:36 ` ori
1 sibling, 1 reply; 6+ messages in thread
From: ori @ 2023-10-03 4:33 UTC (permalink / raw)
To: 9front
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
...uhm. what file system is this?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9front] upas/fs issues after sysupdate
2023-10-03 4:20 [9front] upas/fs issues after sysupdate Kelly Roberts
2023-10-03 4:33 ` ori
@ 2023-10-03 4:36 ` ori
2023-10-03 4:56 ` kelly.glenn.roberts
1 sibling, 1 reply; 6+ messages in thread
From: ori @ 2023-10-03 4:36 UTC (permalink / raw)
To: 9front
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;
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9front] upas/fs issues after sysupdate
2023-10-03 4:33 ` ori
@ 2023-10-03 4:43 ` Kelly Roberts
0 siblings, 0 replies; 6+ messages in thread
From: Kelly Roberts @ 2023-10-03 4:43 UTC (permalink / raw)
To: 9front
On Mon, Oct 2, 2023 at 9:37 PM <ori@eigenstate.org> wrote:
>
> 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
>
> ...uhm. what file system is this?
>
I'm sorry, probably should have put that up front.
It's cwfs but it was encrypted at installation by dropping to a shell
and using disk/cryptsetup.
How much did I goof?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9front] upas/fs issues after sysupdate
2023-10-03 4:36 ` ori
@ 2023-10-03 4:56 ` kelly.glenn.roberts
0 siblings, 0 replies; 6+ messages in thread
From: kelly.glenn.roberts @ 2023-10-03 4:56 UTC (permalink / raw)
To: 9front
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!
^ permalink raw reply [flat|nested] 6+ messages in thread
* [9front] upas/fs issues after sysupdate
@ 2023-10-03 4:35 Kelly Roberts
0 siblings, 0 replies; 6+ messages in thread
From: Kelly Roberts @ 2023-10-03 4:35 UTC (permalink / raw)
To: 9front
Hey all,
Apologies in advance for formatting weirdness: I have to type this on
my phone because...
So after a sysupdate I can no longer use upas/fs for my gmail account.
I know this has something to do with Ori's recent commit to have
temporary index files created and I'm pretty sure it's a permissions
thing, but I don't know where to troubleshoot. I'm only just beginning
my foray into Plan 9.
Checking /dev/kmesg had this as the first error that appeared after the update:
upas/fs: dirfstat:
'/mail/box/glenda/imap.imap.gmail.com.<myemail>@gmail.com.idx.tmp'
does not exist
Trying to touch or otherwise create said file results in:
upas/fs: dirfstat: wstat -- attempt to change qid.vers
And if I instead move the .idx to .idx.tmp I get:
upas/fs: dirfstat:
'/mail/box/glenda/imap.imap.gmail.com.<myemail>@gmail.com.idx' does
not exist
Any tips or pointers would be greatly appreciated.
Cheers,
-K.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-10-03 5:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 4:20 [9front] upas/fs issues after sysupdate 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
2023-10-03 4:35 Kelly Roberts
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).