9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] double trouble
@ 2003-12-10  9:02 Charles Forsyth
  2003-12-10 14:16 ` Russ Cox
  0 siblings, 1 reply; 6+ messages in thread
From: Charles Forsyth @ 2003-12-10  9:02 UTC (permalink / raw)
  To: 9fans

	The attached mail from 'caldo.demon.co.uk!forsyth'
	to 'plan9.bell-labs.com!9trouble' alias `local!9trouble'
	failed with error '/bin/upas/deliver: opening mailbox: permission denied'.


the gist of the message (which i've resent to another address)
was: if you use filterkit's pipeto with
	if(isspam)
		spool /mail/box/$USER/spam
ensure chmod a+rw on /mail/box/$USER/L.spam
or each delivery of spam will take a little time.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] double trouble
  2003-12-10  9:02 [9fans] double trouble Charles Forsyth
@ 2003-12-10 14:16 ` Russ Cox
  2003-12-10 14:32   ` David Presotto
  0 siblings, 1 reply; 6+ messages in thread
From: Russ Cox @ 2003-12-10 14:16 UTC (permalink / raw)
  To: 9fans

> 	The attached mail from 'caldo.demon.co.uk!forsyth'
> 	to 'plan9.bell-labs.com!9trouble' alias `local!9trouble'
> 	failed with error '/bin/upas/deliver: opening mailbox: permission denied'.
>
>
> the gist of the message (which i've resent to another address)
> was: if you use filterkit's pipeto with
> 	if(isspam)
> 		spool /mail/box/$USER/spam
> ensure chmod a+rw on /mail/box/$USER/L.spam
> or each delivery of spam will take a little time.

Note that this says L.spam and not L.mbox,
a fact that I completely missed on first few readings.

Russ


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] double trouble
  2003-12-10 14:16 ` Russ Cox
@ 2003-12-10 14:32   ` David Presotto
  2003-12-10 16:52     ` Fco.J.Ballesteros
  2003-12-11  0:54     ` boyd, rounin
  0 siblings, 2 replies; 6+ messages in thread
From: David Presotto @ 2003-12-10 14:32 UTC (permalink / raw)
  To: 9fans

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

A dichotomy twixt tools that shouldn't be there.  It looks like upas/fs always locks
L.mbox but that upas/deliver and upas/send lock the file L.(basename of mailbox being used).
Usually, they're the same but if we're delivering into other mailboxes, they aren't.
I'll make everything lock /mail/box/<user>/L.mbox and avoid the problem all together.
I'll run it locally for a while since I'm sure to generate at least one deadlock
along the way.

[-- Attachment #2: Type: message/rfc822, Size: 2531 bytes --]

From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] double trouble
Date: Wed, 10 Dec 2003 09:16:20 -0500
Message-ID: <E1AU58Z-000CsS-2e@t40.swtch.com>

> 	The attached mail from 'caldo.demon.co.uk!forsyth'
> 	to 'plan9.bell-labs.com!9trouble' alias `local!9trouble'
> 	failed with error '/bin/upas/deliver: opening mailbox: permission denied'.
>
>
> the gist of the message (which i've resent to another address)
> was: if you use filterkit's pipeto with
> 	if(isspam)
> 		spool /mail/box/$USER/spam
> ensure chmod a+rw on /mail/box/$USER/L.spam
> or each delivery of spam will take a little time.

Note that this says L.spam and not L.mbox,
a fact that I completely missed on first few readings.

Russ

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] double trouble
  2003-12-10 14:32   ` David Presotto
@ 2003-12-10 16:52     ` Fco.J.Ballesteros
  2003-12-11  1:08       ` boyd, rounin
  2003-12-11  0:54     ` boyd, rounin
  1 sibling, 1 reply; 6+ messages in thread
From: Fco.J.Ballesteros @ 2003-12-10 16:52 UTC (permalink / raw)
  To: 9fans

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

Perhaps I'm picky. But I'd suggest changing the lock file
to be /mail/box/$user/Lock

Then it'd be clear that it does not refer to mbox in particular.

Thanks for the fix anyway.

[-- Attachment #2: Type: message/rfc822, Size: 4936 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 449 bytes --]

A dichotomy twixt tools that shouldn't be there.  It looks like upas/fs always locks
L.mbox but that upas/deliver and upas/send lock the file L.(basename of mailbox being used).
Usually, they're the same but if we're delivering into other mailboxes, they aren't.
I'll make everything lock /mail/box/<user>/L.mbox and avoid the problem all together.
I'll run it locally for a while since I'm sure to generate at least one deadlock
along the way.

[-- Attachment #2.1.2: Type: message/rfc822, Size: 2531 bytes --]

From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] double trouble
Date: Wed, 10 Dec 2003 09:16:20 -0500
Message-ID: <E1AU58Z-000CsS-2e@t40.swtch.com>

> 	The attached mail from 'caldo.demon.co.uk!forsyth'
> 	to 'plan9.bell-labs.com!9trouble' alias `local!9trouble'
> 	failed with error '/bin/upas/deliver: opening mailbox: permission denied'.
>
>
> the gist of the message (which i've resent to another address)
> was: if you use filterkit's pipeto with
> 	if(isspam)
> 		spool /mail/box/$USER/spam
> ensure chmod a+rw on /mail/box/$USER/L.spam
> or each delivery of spam will take a little time.

Note that this says L.spam and not L.mbox,
a fact that I completely missed on first few readings.

Russ

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] double trouble
  2003-12-10 14:32   ` David Presotto
  2003-12-10 16:52     ` Fco.J.Ballesteros
@ 2003-12-11  0:54     ` boyd, rounin
  1 sibling, 0 replies; 6+ messages in thread
From: boyd, rounin @ 2003-12-11  0:54 UTC (permalink / raw)
  To: 9fans

great band --  SRV and Double Trouble Walkin' the Tightrope ...




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] double trouble
  2003-12-10 16:52     ` Fco.J.Ballesteros
@ 2003-12-11  1:08       ` boyd, rounin
  0 siblings, 0 replies; 6+ messages in thread
From: boyd, rounin @ 2003-12-11  1:08 UTC (permalink / raw)
  To: 9fans

> Then it'd be clear that it does not refer to mbox in particular.

i have not read the locking code, but L.<file> is a good idea.

does a 'locked' file have a queue of lockers?




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-12-11  1:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-10  9:02 [9fans] double trouble Charles Forsyth
2003-12-10 14:16 ` Russ Cox
2003-12-10 14:32   ` David Presotto
2003-12-10 16:52     ` Fco.J.Ballesteros
2003-12-11  1:08       ` boyd, rounin
2003-12-11  0:54     ` boyd, rounin

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).