Re: [9fans] Miller's 9pi image (rpi4) problems

2021-06-11 Thread adr via 9fans
; fdisk -p /dev/sdU0.0/data part dos 63 803250 part plan9 803250 3519064769 ; fdisk -p /dev/sdU0.0/data >/dev/sdU0.0/ctl ; ls /dev/sdU0.0 /dev/sdU0.0/ctl /dev/sdU0.0/data /dev/sdU0.0/raw Thanks anyway. adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.

Re: [9fans] Miller's 9pi image (rpi4) problems

2021-06-11 Thread adr via 9fans
the web you'll end up with this error. Just a few If you want to do a test: https://developer.arm.com https://wikipedia.org https://marc.info https://www.perseus.tufts.edu http://mars.jpl.nasa.gov Regards, adr. -- 9fans: 9fans Permalink: https://9fans.top

[9fans] rc: <{command} and > mess with exit status

2021-06-16 Thread adr via 9fans
; if(grep a <{echo a}) echo true a true ; if(echo a | grep a >/tmp/1) echo true true But now: ; if(grep a <{echo a} >/tmp/1) echo true ; Is this expected? Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/

Re: [9fans] rc: <{command} and > mess with exit status

2021-06-16 Thread adr via 9fans
Thanks, it looks like a bug. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tad6cf6b7414c1847-Me2445f0e132fd2e7da654a5e Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[9fans] 9legacy patches dependency & future releases

2021-06-16 Thread adr via 9fans
eases will be maintained into the future." I would preffer to wait to send diffs if there is going to be an active repository (I mean a tradicional one, no a patch queue) in the future. Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.

Re: [9fans] rc: <{command} and > mess with exit status

2021-06-16 Thread adr via 9fans
Thanks for the patch! -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tad6cf6b7414c1847-Ma7401221faeb5647bc8bec13 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] 9legacy patches dependency & future releases

2021-06-16 Thread adr via 9fans
in order. Some are independent, > but some are depending on other patches. I see, then is more easy than I thought. I was going to ask you if you wanted to include the rc patch sent to the list from 9front, but I saw just now that is already there, that was fast! Regards, adr. ---

Re: [9fans] Miller's 9pi image (rpi4) problems

2021-06-11 Thread adr via 9fans
Now all is making sense. The tricky part will be configuring it at boot time to make it the root file system... Thanks a lot to both of you for the help, specially to you Richard. Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups

[9fans] Miller's 9pi image (rpi4) problems

2021-06-10 Thread adr via 9fans
he 9front usb system. Sorry I can only report this at the moment. Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc5dcd85d69518168-M542f01bc62388a7ac295c914 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[9fans] Re: Miller's 9pi image (rpi4) problems

2021-06-13 Thread adr via 9fans
ere is no one available. But what the code is doing is allocating a new slot every time a new device is attached and what this hack does is free the corresponded slot every time a device is detached. Regards, adr. -- 9fans: 9fans Permalink: https

Re: [9fans] Miller's 9pi image (rpi4) problems

2021-06-17 Thread adr via 9fans
't have to change webfs, I can connect to almost every site, but I still have some trouble with some of them, I want to debug it but now I'm using some free time trying to decide my fossil and venti partitions and settings... piece of cake... Regards, adr. -

Re: [9fans] Miller's 9pi image (rpi4) problems

2021-06-19 Thread adr via 9fans
.c. Adding Protouas to the test solve the problem. This is done also in 9front. Regards, adr. diff -urP /n/img/sys/src/cmd/usb/disk/disk.c /sys/src/cmd/usb/disk/disk.c --- /n/img/sys/src/cmd/usb/disk/disk.c Tue Dec 13 23:35:47 2011 +++ /sys/src/cmd/usb/disk/disk.cSat Jun 19

Re: [9fans] full fossil follies

2021-06-25 Thread adr via 9fans
On Fri, Jun 25, 2021 at 05:17:39PM +0200, tlaro...@polynum.com wrote: > On Fri, Jun 25, 2021 at 02:12:07PM +0000, adr via 9fans wrote: > > On Fri, Jun 25, 2021 at 01:41:30PM +0100, Richard Miller wrote: > > > > it just becomes difficult > > > > to do anything when

Re: [9fans] full fossil follies

2021-06-25 Thread adr via 9fans
On Fri, Jun 25, 2021 at 01:41:30PM +0100, Richard Miller wrote: > > it just becomes difficult > > to do anything when no fossil blocks can be allocated > > Thinking a bit further about this: intuitively one might expect to be > able to reboot using a local file system which is completely full,

Re: [9fans] full fossil follies

2021-06-25 Thread adr via 9fans
I don't think there is need of superuser concept here. What I'm imagining, again, without having seen the source code, is something like this: The file system is formatted and data representing the structure of the file system are stored normally. At execution time, the file server check a flag

Re: [9fans] 9legacy patches dependency & future releases

2021-06-17 Thread adr via 9fans
I noticed that you rearranged the patches so the rc ones are now consecutive. Do you serve a 9p or there is another way to list the patches by date? I'm going to use 9legacy as a base distribution so this would be handy. Regards, adr. -- 9fans: 9fans

Re: [9fans] mkfs

2021-07-07 Thread adr via 9fans
ed, like copying entire directories. This function could return the position of the next entry in the proto file. Functions to do common operations, like copying entire directories could be provided in disk.h. Sorry for the runt, adr. -- 9fans: 9fans P

[9fans] ape function args not checked|mixed ansi/old function declaration

2021-06-29 Thread adr via 9fans
declaration: setrealloctag I'm missing something about how ape is importing the headers, any hint? Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T5d3998509603ebde-Mccca41b19d6ae0ccc0c716b5 Delivery options: https

[9fans] Re: ape function args not checked|mixed ansi/old function declaration

2021-06-29 Thread adr via 9fans
The only patches I didn't use were one that didn't exist, the multiline tag acme patch (glitches) and two or three which couldn't be applied. Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Ta3a6ef4d223738a9-M325536ac295e33

Re: [9fans] 9legacy venti-p9p, etc

2021-06-26 Thread adr via 9fans
On Sun, Jun 27, 2021 at 12:04:09AM +0200, David du Colombier wrote: > > venti-9p9, fossil-libventi, fossil-libventi-p9p, anyone with some > > experience with this? It's worthy? > > I highly recommend the fossil-libventi patch. The purpose > of this change is to get rid of the old liboventi and

[9fans] 9legacy venti-p9p, etc

2021-06-26 Thread adr via 9fans
venti-9p9, fossil-libventi, fossil-libventi-p9p, anyone with some experience with this? It's worthy? Thanks, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tac4d36dfa36d502c-M3dbeef3ea8045b3e74c40a0e Delivery options: https

Re: [9fans] pngread: alloc chunk's length

2021-07-12 Thread adr via 9fans
ke in the original code: [...] n = chunklen(b); if(n < 13) sysfatal("missing IHDR chunk"); [...] Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T4a714ed14c50767a-M36acff490ae45918672f52bd Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] pngread: alloc chunk's length

2021-07-12 Thread adr via 9fans
On Mon, 12 Jul 2021, o...@eigenstate.org wrote: Do you have an example? I could upload it in some place but you don't need it, really. The specification is clear, the length of a data chunk must be less than 2^31 - 1, and the complete image data is represented by a single zlib datastream that

Re: [9fans] pngread: alloc chunk's length

2021-07-12 Thread adr via 9fans
On Mon, 12 Jul 2021, hiro wrote: Date: Mon, 12 Jul 2021 20:04:23 +0200 From: hiro <23h...@gmail.com> Reply-To: 9fans <9fans@9fans.net> To: 9fans <9fans@9fans.net> Subject: Re: [9fans] pngread: alloc chunk's length it's always useful to have the testcase available, for others and for possible

Re: [9fans] pngread: alloc chunk's length

2021-07-12 Thread adr via 9fans
On Mon, 12 Jul 2021, adr via 9fans wrote: [...] the length of a data chunk must be less than 2^31 - 1 [...] can't be fixed (At least you want to allocate more than 2GB...) [...] Well... to be exact here, it can't be bigger than 2^31 - 1, so there are "almost

[9fans] mkfs

2021-07-05 Thread adr via 9fans
distribution as possible, without breaking things other people can be using. Some thoughts from users? adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te2c67c4bc489fa54-M7335a5aacfe0f1462601e5e9 Delivery options: https://9fans.topicbox.com

Re: [9fans] pngread: alloc chunk's length

2021-07-10 Thread adr via 9fans
Checking the sent mail I noticed that I forgot to remove mag... --- sys/src/cmd/jpg/readpng.c Thu Jan 24 23:39:55 2013 +++ /sys/src/cmd/jpg/readpng.c Sat Jul 10 13:09:13 2021 @@ -10,8 +10,6 @@ enum { - IDATSIZE = 100, - /* filtering algorithms */ FilterNone =

[9fans] pngread: alloc chunk's length

2021-07-10 Thread adr via 9fans
Hi, Png is using a fix size to allocate space for the chunks. I noticed it because it couldn't open some png files (the chunk size was bigger than IDATSIZE). This patch removes IDATSIZE and instead makes png to allocate the size of the chunk before reading it. --- sys/src/cmd/jpg/readpng.c

Re: [9fans] pngread: alloc chunk's length

2021-07-13 Thread adr via 9fans
By the way, the lenght should be checked to not exceed 0x7FFF so a corrupt chunk can be detected early. --- /n/dump/2021/0627/sys/src/cmd/jpg/readpng.c Thu Jan 24 23:39:55 2013 +++ /sys/src/cmd/jpg/readpng.c Tue Jul 13 11:16:50 2021 @@ -10,8 +10,6 @@ enum { - IDATSIZE = 100, -

Re: [9fans] pngread: alloc chunk's length

2021-07-13 Thread adr via 9fans
memory you should be allowed to open a _correct_ png file. Of course we could (I wont) discuss how to change the implementation to allow systems without enough ram to process files with large chunks, but I doubt it would be a problem in real life. Regards, adr

Re: [9fans] pngread: alloc chunk's length

2021-07-14 Thread adr via 9fans
On Wed, 14 Jul 2021, o...@eigenstate.org wrote: Yes, but your patch doesn't apply cleanly to 9front, and it would be useful to check whether I fuck up porting it manually. Ok, but I told you already how to create one. http://adr.freeshell.org/files/turner_ovid_banished_from_rome.png

Re: [9fans] pngread: alloc chunk's length

2021-07-13 Thread adr via 9fans
you'll obtain with the example I gave you will be as correct as any other png file. Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T4a714ed14c50767a-M1c74c38625f5a5b11071043e Delivery options: https://9fans.topicbox.com

[9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
, if you use the lab's distro apply first sam-wheel.diff from 9legacy. Regards, adr. --- sys/src/cmd/sam/cmd.c Wed Apr 24 00:06:05 2013 +++ /sys/src/cmd/sam/cmd.c Sun Jul 18 18:23:06 2021 @@ -17,6 +17,7 @@ 'g',0, 1, 0, 'p',aDot, 0, 0, g_cmd

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
nce of sam with the label "sam /file/path". I can exchange selections easily with other sam instances or other applications that use rio's snarf buffer. I can't identify the file I'm editing using winwatch or the menu when hidden, and so on. I hope all is clea

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
On Tue, 20 Jul 2021, adr via 9fans wrote: buffer. I can't identify the file I'm editing using winwatch or the menu when hidden, and so on. Oh my... is "I can identify..." and I wanted to make things clear... -- 9fans: 9fans Permali

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
e the case, it will not work if samter and sam were in different machines. Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc809ad6007ccd2bd-Mad061fe322c02394d56d259c Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] sam label and rio snarf buffer

2021-07-20 Thread adr via 9fans
You'll need to reinvent (or change, at least) plumbing if you want multiple editors, be it one per file or one per project. I'll make sam create allways the named pipe with the pid in the name so I can identify wich one I want to talk with. There are a lot of possibilities.

Re: [9fans] Command to set samterm label

2021-07-18 Thread adr via 9fans
On Mon, 19 Jul 2021, umbrati...@prosimetrum.com wrote: This patch adds a command 'l' to set the label, and sets it at startup as described above. meh; you can already run !label blah from inside sam That's run by sam, not samterm. not sure the label-on-startup adds much? It's for using

Re: [9fans] Command to set samterm label

2021-07-18 Thread adr via 9fans
thing more. By the way, sam -r allows you to edit remotely a file in a unix system, not only with p9p sam, samterm will drive even the old sam from pkgsrc. Running samterm locally is way more efficient than using X forwarding. Regards, adr. -- 9fans: 9fans

[9fans] Command to set samterm label

2021-07-18 Thread adr via 9fans
, adr. --- sys/src/cmd/sam/cmd.c Wed Apr 24 00:06:05 2013 +++ /sys/src/cmd/sam/cmd.c Sun Jul 18 18:23:06 2021 @@ -17,6 +17,7 @@ 'g',0, 1, 0, 'p',aDot, 0, 0, g_cmd, 'i',1, 0, 0, 0, aDot, 0, 0, i_cmd

Re: [9fans] sam label and rio snarf buffer

2021-07-23 Thread adr via 9fans
don't set samriosnarf you wont notice anything, this patch doesn't change the normal behavior of sam. I've to revise the code and test it more, but I don't like the idea of a buggy patch floting on the list, even if no one is using it. Regards, adr. --- sys/src/cmd/samterm/main.c Sat Jun 26 21

[9fans] Go arm builder's image

2023-09-16 Thread adr via 9fans
Last thing about your rpi image Richard, Is this the one used in the go arm builders? Can I asume that these are the only patches needed to have a working go? Regards, adr

Re: [9fans] Go arm builder's image

2023-09-17 Thread adr via 9fans
Ok, thanks. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T3dbd3cda56f638ee-M16e29431130bbf818b28 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] RPi in QEMU

2023-09-14 Thread adr via 9fans
ones you shared with 9legacy? Regards, adr -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T5da5467097e4eab2-M274ad663cccfc3a3db43b78f Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] RPi in QEMU

2023-09-14 Thread adr via 9fans
I see, thanks. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T5da5467097e4eab2-M0fe5284a21a2266220ee5409 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[9fans] Re: Learning C the hard way

2023-08-20 Thread adr via 9fans
Hi, plan6? Your newlines are feeding the next getchar. You don't want to read chars, you want to read strings. Read the documentation, don't use stdio.h, explore the 9 way... Regards, adr -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans

[9fans] Re: 9legacy: '/boot/kfs' does not exist

2023-08-22 Thread adr via 9fans
the live CD and try using fossil/conf in your fossil partition to see if there is a configuration stored or not. Regards, adr. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T9732b4657cb10d19-M3d50c113b8c6b4c6a21f4959 Delivery options

[9fans] Re: 9legacy: '/boot/kfs' does not exist

2023-08-22 Thread adr via 9fans
Oh, by the way, if you are using a usb hard disk, boot will screw with partfs and the usb disk's partitions will not be exposed. That's the main reason I replaced it. If that's the case, take a look in the mailing list archive, Richard Miller gave some workaround storing the config in the

<    1   2