Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Rudolf Sykora
On 11 January 2012 11:06, Richard Miller <9f...@hamnavoe.com> wrote: > Try 'mount -a /srv/usb /dev' and see if /dev/sdUx.y appears. > If yes, try 'ext2srv -f /dev/sdUx.y/data && mount /srv/ext2 /n/linux' > If no, try 'cat /dev/usb/ep4.0/ctl' and see if you get something like: 1) Even though I plug

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Richard Miller
> 3) 'ext2srv -f /dev/sdU0.0/data && mount /srv/ext2 /n/linux' goes smoothly. > However. > ; cd /n/linux > ; lc > ls: .: I/O error > > Any more help? Try invoking ext2srv with '-v' to get more diagnostics. Try 'dd -if /dev/sdU0.0/data -of /dev/null' to see if usb driver is having trouble reading

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Rudolf Sykora
On 12 January 2012 11:07, Richard Miller <9f...@hamnavoe.com> wrote: >> 3) 'ext2srv -f /dev/sdU0.0/data && mount /srv/ext2 /n/linux' goes smoothly. >> However. >> ; cd /n/linux >> ; lc >> ls: .: I/O error >> >> Any more help? > > Try invoking ext2srv with '-v' to get more diagnostics. ext2srv 220:

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Richard Miller
>> Try 'dd -if /dev/sdU0.0/data -of /dev/null' to see if usb driver >> is having trouble reading the device. > > 0+1 records in > 0+1 records out > > The last bit is strange, isn't it? Try 'cat /dev/sdU0.0/ctl' to see if usb/disk has got the geometry wrong.

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Rudolf Sykora
On 12 January 2012 11:26, Richard Miller <9f...@hamnavoe.com> wrote: >>> Try 'dd -if /dev/sdU0.0/data -of /dev/null' to see if usb driver >>> is having trouble reading the device. >> >> 0+1 records in >> 0+1 records out >> >> The last bit is strange, isn't it? > > Try 'cat /dev/sdU0.0/ctl' to see i

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Richard Miller
> /dev/usb/ep4.0 lun 0: inquiry Generic Flash Disk 8.07 geometry 8007680 > 512 > > ... so I'd think this is ok ... My next step would be to get more diagnostic output from usb/disk. This is no longer easy with the new monolithic usb driver architecture. You can't just start 'usb/disk -d' b

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Francisco J Ballesteros
you can enable debug diagnostics for devices by using the usbd ctl file. I donĀ“t remember which ones are the strings (see the man, probably) but I remember you can enable debug flags without restarting it. You could try to locate them and enable debug for that, plug the disk again, disable debug f

Re: [9fans] usb flash drive with ext2

2012-01-12 Thread Richard Miller
> you can enable debug diagnostics for devices by using the usbd ctl file. Sorry, I wasn't aware of that. usbd(4) does describe setting environment variables in plan9.ini to change the arguments for usb drivers (I wasn't aware of that either), but doesn't mention that you can also do it dynamical

Re: [9fans] Plan 9/plan9port coding conventions

2012-01-12 Thread Comeau At9Fans
On Wed, Jan 11, 2012 at 1:41 PM, wrote: > As readers may remember from a previous thread, I have historically > been, well, less than enamored with some aspects of the coding style > used in Plan 9/plan9port. Now that I'm getting into development, I'd > like to know what coding conventions the P

[9fans] kerTeX: get_mk_install.rc

2012-01-12 Thread tlaronde
Hello, I have tested and corrected various blunders (or adapted for slight idiosynchrasies of Plan9 utils), and as for Unices users, there is now a rc(1) script to simplify getting, compiling, installing and generating the core fonts and dumps. You will be "cutting edge" mind you! even on LaTeX s

Re: [9fans] kerTeX: get_mk_install.rc

2012-01-12 Thread tlaronde
And get_mk_install.rc with an obvious typo (for english doc): READEM -> README hence hget fails. Fixed version online. (Should test all paths...) -- Thierry Laronde http://www.kergis.com/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C

Re: [9fans] Plan 9/plan9port coding conventions

2012-01-12 Thread Christian Neukirchen
quans...@quanstro.net (erik quanstrom) writes: > On Wed Jan 11 20:34:39 EST 2012, skip.tavakkol...@gmail.com wrote: >> by way of an example: >> >> int pszBesmirchHungeriansNotation; > > who let the camel's nose in the tent? The Go people. -- Christian Neukirchenhttp://chneukirchen.org

Re: [9fans] fossil (again)

2012-01-12 Thread tlaronde
On Tue, Jan 10, 2012 at 02:47:19PM +0100, David du Colombier wrote: > >[...] > Running snapclean 0 will discard all snapshots and will > set epoch low = hi. Running snapclean without argument will > only discard snapshots older than snapLife or everything > if unspecified. >[...] > You can check

Re: [9fans] Plan 9/plan9port coding conventions

2012-01-12 Thread Yaroslav
> style(6) deals with some of your questions. Since nobody mentioned it yet, Besides style(6) you may want to read "Notes on Programming in C", Rob Pike, 1989.

Re: [9fans] miau, an IRC bouncer

2012-01-12 Thread Yaroslav
2012/1/12 John Floren : > but I missed the simplicity and > convenience of having just one nickname on IRC at all times why not to use their nickserv extentions for this purpose, and a startup script to deal with connection and authentication to select servers and channels?

Re: [9fans] miau, an IRC bouncer

2012-01-12 Thread John Floren
On Thu, Jan 12, 2012 at 12:27 PM, Yaroslav wrote: > 2012/1/12 John Floren : >> but I missed the simplicity and >> convenience of having just one nickname on IRC at all times > > why not to use their nickserv extentions for this purpose, > and a startup script to deal with connection and authentica

Re: [9fans] fossil (again)

2012-01-12 Thread David du Colombier
> So, there is no snapshot, only plan9.iso + apx. 40Mb for kerTeX, /tmp > empty, and I still have almost 750 Mb used and only 220Mb free? > > Is there a way to know what occupies roughly twice the size of the > files? I don't know. I just set up a tiny Fossil file system and extracted the current

Re: [9fans] fossil (again)

2012-01-12 Thread erik quanstrom
> You should probably try to compare with "du -sh". why will -h make a difference? i don't see it in the code. - erik

Re: [9fans] fossil (again)

2012-01-12 Thread David du Colombier
> why will -h make a difference? i don't see it in the code. It's more convenient. But why this question? It doesn't matter anyway. My point was just to compare the size reported by fossilcons df with the size reported by du. -- David du Colombier

Re: [9fans] fossil (again)

2012-01-12 Thread erik quanstrom
On Thu Jan 12 17:26:35 EST 2012, 0in...@gmail.com wrote: > > why will -h make a difference? i don't see it in the code. > > It's more convenient. But why this question? > It doesn't matter anyway. i read your email as implying that -h returned substantively different results than otherwise. i g

Re: [9fans] fossil (again)

2012-01-12 Thread tlaronde
On Thu, Jan 12, 2012 at 10:29:19PM +0100, David du Colombier wrote: > > You should probably try to compare with "du -sh". BTW, I have "played" with du(1) since it answers partially (Erik gave data) about the optimization of blocksize. Namely the "-b" option. If I understand correctly, this does t

Re: [9fans] Plan 9/plan9port coding conventions

2012-01-12 Thread Skip Tavakkolian
i was providing the example to what John was pointing out about the futility of including type information in identifiers when there isn't an enforcement mechanism. in this case, presumably the variable named pszBesmirchesAllHungariansEverywhereNotation is a 'pointer to zero terminated string ...'