* [9front] new user
@ 2022-02-27 0:11 thinktankworkspaces
2022-02-27 3:51 ` Alex Musolino
0 siblings, 1 reply; 15+ messages in thread
From: thinktankworkspaces @ 2022-02-27 0:11 UTC (permalink / raw)
To: 9front
I created a new user on another system. Its running hjfs
I noticed permission had sys?
cpu% ls -l
d-rwxrwxr-x M 184 glenda glenda 0 Feb 26 14:46 glenda
d-rwxrwxr-x M 184 www sys 0 Feb 26 16:08 www
This does not seem right?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] new user
2022-02-27 0:11 [9front] new user thinktankworkspaces
@ 2022-02-27 3:51 ` Alex Musolino
2022-02-27 3:56 ` Alex Musolino
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Alex Musolino @ 2022-02-27 3:51 UTC (permalink / raw)
To: 9front
> I created a new user on another system. Its running hjfs
>
> I noticed permission had sys?
>
> cpu% ls -l
> d-rwxrwxr-x M 184 glenda glenda 0 Feb 26 14:46 glenda
> d-rwxrwxr-x M 184 www sys 0 Feb 26 16:08 www
>
> This does not seem right?
This is a bug in hjfs that has been uncovered by changeset
e1907b41d32441e79e8cc3db26afc5f0c4cdcef9. New directories *are*
supposed to inherit their group from the parent directory. However,
this is not what we want when creating home directories for new users.
I think the following ought to fix it. Can you give this a try?
diff facb0e757ac63f763bd942a2714f979538b99eb0 uncommitted
--- a/sys/src/cmd/hjfs/auth.c
+++ b/sys/src/cmd/hjfs/auth.c
@@ -366,13 +366,18 @@
createuserdir(Fs *fs, char *name, short uid)
{
Chan *ch;
+ Dir di;
ch = chanattach(fs, CHFNOPERM);
if(ch == nil)
return;
ch->uid = uid;
- if(chanwalk(ch, "usr") > 0)
+ if(chanwalk(ch, "usr") > 0){
chancreat(ch, name, DMDIR | 0775, OREAD);
+ nulldir(&di);
+ di.gid = name;
+ chanwstat(ch, &di);
+ }
chanclunk(ch);
}
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] new user
2022-02-27 3:51 ` Alex Musolino
@ 2022-02-27 3:56 ` Alex Musolino
2022-02-27 5:41 ` thinktankworkspaces
2022-03-08 13:28 ` Alex Musolino
2 siblings, 0 replies; 15+ messages in thread
From: Alex Musolino @ 2022-02-27 3:56 UTC (permalink / raw)
To: 9front
> I think the following ought to fix it. Can you give this a try?
After backing up your data, of course. This is the filesystem code
you're messing about with after all.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] new user
2022-02-27 3:51 ` Alex Musolino
2022-02-27 3:56 ` Alex Musolino
@ 2022-02-27 5:41 ` thinktankworkspaces
2022-03-08 13:28 ` Alex Musolino
2 siblings, 0 replies; 15+ messages in thread
From: thinktankworkspaces @ 2022-02-27 5:41 UTC (permalink / raw)
To: 9front
Sorry. I felt something was wrong and purged it then did install with cwfs.
I didn't have any data on it. It was a new install
Thanks!
Quoth Alex Musolino <alex@musolino.id.au>:
> > I created a new user on another system. Its running hjfs
> >
> > I noticed permission had sys?
> >
> > cpu% ls -l
> > d-rwxrwxr-x M 184 glenda glenda 0 Feb 26 14:46 glenda
> > d-rwxrwxr-x M 184 www sys 0 Feb 26 16:08 www
> >
> > This does not seem right?
>
> This is a bug in hjfs that has been uncovered by changeset
> e1907b41d32441e79e8cc3db26afc5f0c4cdcef9. New directories *are*
> supposed to inherit their group from the parent directory. However,
> this is not what we want when creating home directories for new users.
>
> I think the following ought to fix it. Can you give this a try?
>
> diff facb0e757ac63f763bd942a2714f979538b99eb0 uncommitted
> --- a/sys/src/cmd/hjfs/auth.c
> +++ b/sys/src/cmd/hjfs/auth.c
> @@ -366,13 +366,18 @@
> createuserdir(Fs *fs, char *name, short uid)
> {
> Chan *ch;
> + Dir di;
>
> ch = chanattach(fs, CHFNOPERM);
> if(ch == nil)
> return;
> ch->uid = uid;
> - if(chanwalk(ch, "usr") > 0)
> + if(chanwalk(ch, "usr") > 0){
> chancreat(ch, name, DMDIR | 0775, OREAD);
> + nulldir(&di);
> + di.gid = name;
> + chanwstat(ch, &di);
> + }
> chanclunk(ch);
> }
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] new user
2022-02-27 3:51 ` Alex Musolino
2022-02-27 3:56 ` Alex Musolino
2022-02-27 5:41 ` thinktankworkspaces
@ 2022-03-08 13:28 ` Alex Musolino
2022-03-10 3:58 ` thinktankworkspaces
2 siblings, 1 reply; 15+ messages in thread
From: Alex Musolino @ 2022-03-08 13:28 UTC (permalink / raw)
To: 9front, alex
> This is a bug in hjfs that has been uncovered by changeset
> e1907b41d32441e79e8cc3db26afc5f0c4cdcef9. New directories *are*
> supposed to inherit their group from the parent directory. However,
> this is not what we want when creating home directories for new users.
>
> I think the following ought to fix it. Can you give this a try?
I got around to trying this out on a spare machine/disk tonight.
Worked for me. Committed.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] new user
2022-03-08 13:28 ` Alex Musolino
@ 2022-03-10 3:58 ` thinktankworkspaces
2022-03-10 4:12 ` Alex Musolino
0 siblings, 1 reply; 15+ messages in thread
From: thinktankworkspaces @ 2022-03-10 3:58 UTC (permalink / raw)
To: 9front
Quoth Alex Musolino <alex@musolino.id.au>:
> > This is a bug in hjfs that has been uncovered by changeset
> > e1907b41d32441e79e8cc3db26afc5f0c4cdcef9. New directories *are*
> > supposed to inherit their group from the parent directory. However,
> > this is not what we want when creating home directories for new users.
> >
> > I think the following ought to fix it. Can you give this a try?
>
> I got around to trying this out on a spare machine/disk tonight.
> Worked for me. Committed.
>
is it worth using hjfs vs cjfs. Not sure of the trade off after I switched?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] new user
2022-03-10 3:58 ` thinktankworkspaces
@ 2022-03-10 4:12 ` Alex Musolino
2022-03-10 4:42 ` Stanley Lieber
0 siblings, 1 reply; 15+ messages in thread
From: Alex Musolino @ 2022-03-10 4:12 UTC (permalink / raw)
To: 9front
> is it worth using hjfs vs cjfs. Not sure of the trade off after I
> switched?
The main benefit of hjfs(4) would seem to me to be its ability to work
with small disks. Running cwfs(4) on a 10GB VPS is a non-starter. I
think you can run cwfs(4) in a cache-only mode in such a situation,
but then you lose the dump. With hjfs(4) you can have it both ways.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] new user
2022-03-10 4:12 ` Alex Musolino
@ 2022-03-10 4:42 ` Stanley Lieber
0 siblings, 0 replies; 15+ messages in thread
From: Stanley Lieber @ 2022-03-10 4:42 UTC (permalink / raw)
To: 9front
cwfs has 16k blocks.
hjfs has 4k blocks.
this makes a huge difference if you have a large number of small files.
sl
> On Mar 9, 2022, at 11:16 PM, Alex Musolino <alex@musolino.id.au> wrote:
>
>
>>
>> is it worth using hjfs vs cjfs. Not sure of the trade off after I
>> switched?
>
> The main benefit of hjfs(4) would seem to me to be its ability to work
> with small disks. Running cwfs(4) on a 10GB VPS is a non-starter. I
> think you can run cwfs(4) in a cache-only mode in such a situation,
> but then you lose the dump. With hjfs(4) you can have it both ways.
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [9front] New user
@ 2021-12-30 18:41 Benjamin Riefenstahl
2021-12-30 19:54 ` Humm
` (3 more replies)
0 siblings, 4 replies; 15+ messages in thread
From: Benjamin Riefenstahl @ 2021-12-30 18:41 UTC (permalink / raw)
To: 9front
Hi everybody.
I am having some fun with 9front lately, just looking at what it does in
a VM and trying to wrap my head around concepts.
Besides trying out the native stuff, I have started a personal project
to get Tcl to run. This is uncovering bugs in Tcl as well as in
9front's APE library. Are you interested in patches for APE? I notice
that voices on the net discourage porting packages to Plan 9 and that
"This UNIX compatibility [meaning APE] is old and quite unmaintained"
(https://pspodcasting.net/dan/blog/2019/plan9_desktop.html).
Let me know, and I can provide patches to individual problems when I
have them.
so long, benny
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] New user
2021-12-30 18:41 [9front] New user Benjamin Riefenstahl
@ 2021-12-30 19:54 ` Humm
2022-01-01 16:56 ` Benjamin Riefenstahl
2021-12-30 20:32 ` theinicke
` (2 subsequent siblings)
3 siblings, 1 reply; 15+ messages in thread
From: Humm @ 2021-12-30 19:54 UTC (permalink / raw)
To: 9front
Quoth Benjamin Riefenstahl:
>Besides trying out the native stuff, I have started a personal project
>to get Tcl to run.
Isn’t there a Tcl port in fgb’s contrib? (That means you do
`9fs 9pio` (read /rc/bin/9fs) and look at
/n/9pio/contrib/fgb/root/sys/src/^(lib cmd)/^tcl.) (Also, why?)
>This is uncovering bugs in Tcl as well as in
>9front's APE library. Are you interested in patches for APE?
APE was not yet thrown out of 9front. Generally bugfixes are good.
>I notice
>that voices on the net discourage porting packages to Plan 9 and that
>"This UNIX compatibility [meaning APE] is old and quite unmaintained"
>(https://pspodcasting.net/dan/blog/2019/plan9_desktop.html).
Yep, APE is old and quite unmaintained. I recommend looking at
https://git.sr.ht/~ft/npe .
--
Humm
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] New user
2021-12-30 19:54 ` Humm
@ 2022-01-01 16:56 ` Benjamin Riefenstahl
0 siblings, 0 replies; 15+ messages in thread
From: Benjamin Riefenstahl @ 2022-01-01 16:56 UTC (permalink / raw)
To: 9front
Hi Humm,
> Quoth Benjamin Riefenstahl:
>>Besides trying out the native stuff, I have started a personal project
>>to get Tcl to run.
Humm writes:
> Isn’t there a Tcl port in fgb’s contrib? (That means you do `9fs
> 9pio` (read /rc/bin/9fs) and look at
> /n/9pio/contrib/fgb/root/sys/src/^(lib cmd)/^tcl.)
Right, that is the basis of what I am doing. First there was a problem
with the 64 bit version (seems fgb worked on 32 bit at the time), that
was a Tcl problem. Than I moved it to a recent version of Tcl and now I
am trying to get through the Tcl test suite. And as I said, that turns
up some limitations.
> (Also, why?)
For fun, to learn about Plan 9 and to give back a bit to my favorite
programming language.
> APE was not yet thrown out of 9front. Generally bugfixes are good.
Ok, thanks.
> Yep, APE is old and quite unmaintained. I recommend looking at
> https://git.sr.ht/~ft/npe .
Thinks for that pointer, I have just seen that, too. It looks quite
limited, though, even compared to APE.
Thanks, benny
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] New user
2021-12-30 18:41 [9front] New user Benjamin Riefenstahl
2021-12-30 19:54 ` Humm
@ 2021-12-30 20:32 ` theinicke
2021-12-30 20:45 ` ori
2021-12-30 22:00 ` qwx
3 siblings, 0 replies; 15+ messages in thread
From: theinicke @ 2021-12-30 20:32 UTC (permalink / raw)
To: 9front
Quoth Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>:
> Hi everybody.
>
> I am having some fun with 9front lately, just looking at what it does in
> a VM and trying to wrap my head around concepts.
>
> Besides trying out the native stuff, I have started a personal project
> to get Tcl to run. This is uncovering bugs in Tcl as well as in
> 9front's APE library. Are you interested in patches for APE? I notice
> that voices on the net discourage porting packages to Plan 9 and that
> "This UNIX compatibility [meaning APE] is old and quite unmaintained"
> (https://pspodcasting.net/dan/blog/2019/plan9_desktop.html).
>
> Let me know, and I can provide patches to individual problems when I
> have them.
>
> so long, benny
>
Hi,
you might be interested in fgb's Tcl port:
https://9p.io/sources/contrib/fgb/root/sys/src/cmd/tcl/
That being said, I think that patches are always welcome.
Cheers,
Tobias Heinicke
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] New user
2021-12-30 18:41 [9front] New user Benjamin Riefenstahl
2021-12-30 19:54 ` Humm
2021-12-30 20:32 ` theinicke
@ 2021-12-30 20:45 ` ori
2021-12-30 22:00 ` qwx
3 siblings, 0 replies; 15+ messages in thread
From: ori @ 2021-12-30 20:45 UTC (permalink / raw)
To: 9front
Quoth Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>:
> Hi everybody.
>
> I am having some fun with 9front lately, just looking at what it does in
> a VM and trying to wrap my head around concepts.
>
> Besides trying out the native stuff, I have started a personal project
> to get Tcl to run. This is uncovering bugs in Tcl as well as in
> 9front's APE library. Are you interested in patches for APE? I notice
> that voices on the net discourage porting packages to Plan 9 and that
> "This UNIX compatibility [meaning APE] is old and quite unmaintained"
> (https://pspodcasting.net/dan/blog/2019/plan9_desktop.html).
>
> Let me know, and I can provide patches to individual problems when I
> have them.
It's old and not particularly loved, but it's only
unmaintained if nobody sends patches to maintain it.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [9front] New user
2021-12-30 18:41 [9front] New user Benjamin Riefenstahl
` (2 preceding siblings ...)
2021-12-30 20:45 ` ori
@ 2021-12-30 22:00 ` qwx
2022-01-01 17:03 ` Benjamin Riefenstahl
3 siblings, 1 reply; 15+ messages in thread
From: qwx @ 2021-12-30 22:00 UTC (permalink / raw)
To: 9front
On Thu Dec 30 21:26:13 +0200 2021, b.riefenstahl@turtle-trading.net wrote:
> Besides trying out the native stuff, I have started a personal project
> to get Tcl to run. This is uncovering bugs in Tcl as well as in
> 9front's APE library.
[...]
You might also be interested in this: https://github.com/opless/jimsh9.
Cheers,
qwx
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2022-03-10 4:49 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-27 0:11 [9front] new user thinktankworkspaces
2022-02-27 3:51 ` Alex Musolino
2022-02-27 3:56 ` Alex Musolino
2022-02-27 5:41 ` thinktankworkspaces
2022-03-08 13:28 ` Alex Musolino
2022-03-10 3:58 ` thinktankworkspaces
2022-03-10 4:12 ` Alex Musolino
2022-03-10 4:42 ` Stanley Lieber
-- strict thread matches above, loose matches on Subject: below --
2021-12-30 18:41 [9front] New user Benjamin Riefenstahl
2021-12-30 19:54 ` Humm
2022-01-01 16:56 ` Benjamin Riefenstahl
2021-12-30 20:32 ` theinicke
2021-12-30 20:45 ` ori
2021-12-30 22:00 ` qwx
2022-01-01 17:03 ` Benjamin Riefenstahl
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).