Re: CVS removal from the base

2011-12-04 Thread Bakul Shah
On Sun, 04 Dec 2011 16:42:04 PST Julian Elischer jul...@freebsd.org wrote: On 12/4/11 3:36 PM, Randy Bush wrote: i suspect that my install pattern is similar to others o custom install so i can split filesystems the way i prefer, enabling net ssh o pkg_add -r { bash, rsync,

Re: No human readable message with g_vfs

2011-01-03 Thread Bakul Shah
On Mon, 03 Jan 2011 21:20:42 +0300 Anonymous swel...@gmail.com wrote: Do you mean perror(1)? $ perror 5 Input/output error I prefer mine: $ errno () { grep ^#.*\\$*\\ /usr/include/sys/errno.h } $ errno 5 #define EIO 5 /* Input/output error */ $ errno EIO

Re: No human readable message with g_vfs

2011-01-03 Thread Bakul Shah
On Mon, 03 Jan 2011 22:21:51 +0300 Anonymous swel...@gmail.com wrote: Bakul Shah ba...@bitblocks.com writes: On Mon, 03 Jan 2011 21:20:42 +0300 Anonymous swel...@gmail.com wrote: =20 Do you mean perror(1)? =20 $ perror 5 Input/output error I prefer mine: $ errno

Re: limits to memory on amd64

2010-11-09 Thread Bakul Shah
On Tue, 09 Nov 2010 08:45:14 PST Julian Elischer jul...@freebsd.org wrote: During the discussion at MeetBSD the question came up as to what the real limiting factors were with regard to how much RAM a system could have. it was put to us that the limit was currently around 512 GB, though no-one

Re: Interpreted language(s) in the base

2010-08-20 Thread Bakul Shah
On Thu, 19 Aug 2010 20:35:59 +0200 C. P. Ghost cpgh...@cordula.ws wrote: But seriously, the point isn't so much which specific interpreter we use (if we go down this road), it's about libraries: most sysadmin tasks require some basic networking and I/O, and a FFI to seamlessly call out C

Re: Interpreted language(s) in the base

2010-08-20 Thread Bakul Shah
On Fri, 20 Aug 2010 21:33:08 +0200 =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= d...@des.no wrote: C. P. Ghost cpgh...@cordula.ws writes: After all LISP-like syntax is *still* more common and prevalent than Lua, e.g. in Elisp, guile, esh, scsh and a lot of other apps that use it as a small

Re: Interpreted language(s) in the base

2010-08-19 Thread Bakul Shah
On Thu, 19 Aug 2010 18:00:54 +0200 C. P. Ghost cpgh...@cordula.ws wrote: On Wed, Aug 18, 2010 at 3:43 PM, Andrew Reilly arei...@bigpond.net.au wro= te: On Sun, Aug 15, 2010 at 11:15:55PM -0700, Doug Barton wrote: got any other suggestions? This is very much a sorry I asked question, but

Re: bsdgrep does not work with tail -f | grep combination

2010-08-04 Thread Bakul Shah
On Tue, 03 Aug 2010 20:21:56 +0200 Gabor Kovesdan ga...@freebsd.org wrote: Em 2010.08.03. 19:25, poyop...@puripuri.plala.or.jp escreveu: Hi, It seems bsdgrep does not work when piped from tail -f. I'm running r210728. term0$ jot 10 /tmp/1 term0$ tail -f /tmp/1 | grep 0 [no

Re: Importing clang/LLVM into FreeBSD HEAD

2010-05-31 Thread Bakul Shah
On Mon, 31 May 2010 09:52:48 +0200 Roman Divacky rdiva...@freebsd.org wrote: I would like to propose to integrate clang/LLVM into FreeBSD HEAD in the near future (days, not weeks). clang/LLVM is a C/C++/ObjC compiler (framework) which aims to possibly replace gcc. It is BSDL-like

Re: Importing clang/LLVM into FreeBSD HEAD

2010-05-31 Thread Bakul Shah
On Mon, 31 May 2010 12:33:18 MDT M. Warner Losh i...@bsdimp.com wrote: : It is clear that not everyone has the same view of what the : acceptance criteria might be so publishing it would help : people understand what to expect. : : nothing changes for the ports, there's an ongoing

Re: swapon vs savecore dilemma

2003-09-02 Thread Bakul Shah
Is fsck really that memory heavy so that it needs swap? Yes, if you have a huge FS. The problem is that the checking of the CG bitmaps during an fsck require that you have all the bitmaps in core Hmm For a one TB FS with 8KB block size you need 2^(40-13) bits to keep track of blocks.

Re: Anyone working on fsck?

2003-03-17 Thread Bakul Shah
UFS is the real problem here, not fsck. Its tradeoffs for improving normal access latencies may have been right in the past but not for modern big disks. The seek time RPM have not improved very much in the past 20 years while disk capacity has increased by a factor of about 20,000 (and GB/$

Re: Anyone working on fsck?

2003-03-17 Thread Bakul Shah
Now, before we go off and design YABFS, can we just get real for a second ? I leave it to others to design YAFS, I just wanted to complain about this one :-) Every few years I seriously look at speeding up fsck but give up. I remember even asking about it a few years ago on one of these

Re: Anyone working on fsck?

2003-03-17 Thread Bakul Shah
You talk like I have a choice :-) I cannot change ufs/ffs and even if I could the clients wouldn't go for it. What about changing the size of block size or cyl grp size? Do they change things much? The problem space is Fsck of UFS/FFS partitions is too slow for 200GB+ filesystems. The

Re: Anyone working on fsck?

2003-03-17 Thread Bakul Shah
UFS is the real problem here, not fsck. Its tradeoffs for improving normal access latencies may have been right in the past but not for modern big disks. ... Sorry, but the track-to-track seek latency optimizations you are referring to are turned off, given the newfs defaults, and

Re: Problems with Current XFree86

2003-02-10 Thread Bakul Shah
Since it works with 4.7-STABLE it must(?) be a current problem more than a XFree86 problem. Or? I had the same problem -- something to do with files left over from the original 4.7 installation. Cured by deinstalling XFree86-* ports, renaming /usr/X11R6 to something else (in case something was

Re: rand() is broken

2003-02-02 Thread Bakul Shah
Good point. We can re-implement random() internally with arc4rand(). Objections? Guys, please realize that random() is also used in generating simulation inputs (or timing or whatever). If you go change the underlying algorithm or its parameters one can't generate the same sequence from the

Re: rand() is broken

2003-02-02 Thread Bakul Shah
As I said, I don't know how big a concern this is. But last time it was enough of a concern to make us keep rand() as it was. [I know you are talking about rand() but Mark Murray's earlier email about wanting to re-implement random() really concerned me so I want to make sure my point gets

Re: rand() is broken

2003-02-02 Thread Bakul Shah
RC4 is _utterly_ repeatable, given a particular seed/key. May be but it is not the same as the current random(). Also, I know you will want to change it the next time some one points out a problem with RC4. Yes. And it breaks, and we have a complainant. So create a new function! Or use a

Re: rand() is broken

2003-02-02 Thread Bakul Shah
Maybe I missed something, but why cannot you just rip random() from libc, rename it to bakul_shah_random() and use that in your testing code? Then you are safe from any changes to random(), and indeed have a portable RNG if your host OS changes. Yes, *I* can do it but I don't work at every

Re: rand() is broken

2003-02-02 Thread Bakul Shah
a restriction on the OS. If FreeBSD makes random2() using RC4 to avoid changing rand() or random(), will people then start relying on random2()'s behaviour, and when someone finds a problem in RC4, then the next will be random3()? What I am suggesting is to leave random() as it is and

Re: rand() is broken

2003-02-02 Thread Bakul Shah
Would you prefer that we defined random() as int random(void) { static int retval = 0; return retval++; } No because that would be a change from the exisiting random() behavior :-) As I indicated in my earlier email random() is not broken, srand() is (as corrected by

Re: rand() is broken

2003-02-02 Thread Bakul Shah
Since you keep talking about random(), I must conclude you're knee-jerking, since we're not discussing that function. Please stay on-topic :-) Read through the thread. In particular see Mark's message [EMAIL PROTECTED] where he says Good point. We can re-implement random() internally

Re: rand() is broken

2003-02-02 Thread Bakul Shah
another suggestion: why not fold your algorithm change in that function? For example, initstate(seed, RC4, 3); changes the algorithm to RC4. Yes, this is a change in the interface but one I am sure most people can live with. No. Evil interface change. #ifdef hell while

Re: rand() is broken

2003-02-02 Thread Bakul Shah
Last 10 digits. FreeBSD Redhat SunOS 660787754660787754645318364 3275486913275486911583150371 2009993994 2009993994 715222008 1653966416 1653966416 1349166998 1074113008 1074113008 566227131 2142626740 2142626740 1382825076 1517775852

Re: rand() is broken

2003-02-02 Thread Bakul Shah
Interesting The SunOS output exactly matches random(3) behavior from 4.3BSD! In fact random() remained the same for 4.3BSD-Reno, -Tahoe, 4.4BSD-Alpha and Net2. 4.2BSD random() behavior is different from all of the above. There was real bug-fix between 4.2BSD and 4.3BSD. I don't

Re: Style fixups for proc.h

2003-02-01 Thread Bakul Shah
Julian Elischer writes: I don't know about the protection with a '_'. It's not standard and usually the name matches that used in the actual function. When the prototype parameter name matches a local variable, the C compiler (and lint) whine about clashes between names in

Re: Style fixups for proc.h

2003-02-01 Thread Bakul Shah
I can't see what actual error is avoided by this warning. s/actual/potential/ If a named prototype clashes with something in global scope, isn't it still a shadowing issue? They should probably never be *in* scope. Nothing is being shadowed. Paramater names in a function prototype (as

Re: pppd not working on latest current 2002-10-20

2002-10-25 Thread Bakul Shah
Until pppd is taught to create the interface if one doesn't exist, this information needs to be in /usr/src/UPDATING. pppd doesn't need to be taught to create the interface. Rather it needed to learn to check for ppp support in a non-stupid way. The following patch should do it as well

Re: pppd not working on latest current 2002-10-20

2002-10-25 Thread Bakul Shah
Here's a new patch that gives the user more of a hint at how to add PPP support and only loads the module if they are actully root. How's this look? I still don't like it. How to explain I don't think it is pppd's responsibility to muck with modules. It is like mount kldloading a disk

Re: pppd not working on latest current 2002-10-20

2002-10-25 Thread Bakul Shah
Brooks Davis wrote: This isn't going to have an effect on the ability to use kernel ppp for other things. The tty orientation of pppd and the outdated, unmodular design on ppp(4) have taken care of that. This patch gives people the functionality they want (pppd just working) without any

Re: pppd not working on latest current 2002-10-20

2002-10-25 Thread Bakul Shah
On Fri, Oct 25, 2002 at 06:15:55PM +, Dave Evans wrote: Is anyone using pppd on CURRENT. somewhere between may and October it seems to have broken. My KERNEL is GENERIC, my sources are dated cvs -D2002-10-20, but I now get a message about needing facilities in the kernel. However,

ldconfig in /etc/rc /etc/rc.d/ldconfig

2002-09-22 Thread Bakul Shah
If the ldconfig_insecure flag is set in /etc/rc.conf, ldconfig doesn't do anything useful at startup time except complain. The following patch should fix it. diff -ur /usr/src/etc/rc ./rc --- /usr/src/etc/rc Tue Sep 17 21:02:01 2002 +++ ./rcSun Sep 22 16:49:19 2002 @@ -692,9 +692,10

Re: Bluetooth stack for FreeBSD

2002-09-10 Thread Bakul Shah
Yes. we are aware of the work and we are pleased that it is hapenning, but few of us have even SEEN any bluetooth stuff yet.. certainly in the US it's not yet being marketted a lot. Fry's Electronics in the SF bayarea has a bunch of bluetooth gadgets. Go to www.outpost.com and search for

Re: aout support broken in gcc3

2002-09-04 Thread Bakul Shah
You are blowing this out of proportion and not actually reading what people are proposing. So far, the comments are about removing a.out support from the base compiler and offering a.out binutils and gcc _as ports_. A port is fine -- but this was proposed much later in the thread.

Re: aout support broken in gcc3

2002-09-03 Thread Bakul Shah
Where exactly does GCC fit into the mix, making this impossible? They compile Lisp (etc) to a C file, which they compile (with gcc) to ^^^ actually with as(1), because gcc is only generates assembler file, which is then

Re: pkg_add broken by POLA breakage in tar

2002-08-01 Thread Bakul Shah
My recollection matches what Bruce says (and I have been using unix since when version 7 was the latest and greatest). At least the SUN OS 5.6 man page I could locate online says this: The o function modifier is only valid with the x function. p Restore the named files to their original modes,

Re: mount_nfs -T breakage

2002-07-26 Thread Bakul Shah
Yes, that code is very broken indeed. It probably was supposed to call __rpc_setconf(udp) and not getnetconfigent(udp), but that seems to pick up an ipv6 address. I think the best plan is to go back to the way that part of the code was before revision 1.10. Could you try the following

mount_nfs -T breakage

2002-07-24 Thread Bakul Shah
TCP mount of nfs seems to be broken. # mount bar:/usr /mnt [tcp] bar:/usr: RPCPROG_NFS: RPC: Unknown protocol I tracked this down to lib/libc/rpc/rpcb_clnt.c. Seems like the problem is in __rpcb_findaddr_timed(). diff -r 1.9 rpcb_clnt.c --- rpcb_clnt.c 22 Mar 2002 23:18:37 - 1.9 +++

suspend bug

2002-07-18 Thread Bakul Shah
Try this: $ csh % su Password: % stop $$ Suspended (signal) %fg At which point you will lose you login shell. Prior to KSE one could switch between an su'ed shell and a normal shell at will by using stop $$ and fg. Is this breakage considered a bug or a feature? To Unsubscribe: send mail to

Re: Interesting panic very early in the boot

2002-07-17 Thread Bakul Shah
I believe setting DISABLE_PSE in the config file and rebuilding will make this go away. Terry, thanks for the suggestion but that didn't do it. Time to review recent changes and single step the kernel. BTW, how do you stop the kernel before it panics? It panics so early that there is no time

Re: Interesting panic very early in the boot

2002-07-17 Thread Bakul Shah
That there could be a real error in that code surprises me, since Peter really knows what he's doing, even if that low in the hardware, there are undocumented interactions that even Intel's errata doesn't seem to know about. Turns out the workaround is to use DISABLE_PG_G. Two things made

Re: Interesting panic very early in the boot

2002-07-16 Thread Bakul Shah
I've run into a very similar bug -- the kernel panics almost right after it is started by the loader. With remote gdb I've traced it to this point so far: (kgdb) target remote /dev/cuaa0 Remote debugging using /dev/cuaa0 pmap_set_opt () at /usr/src/sys/i386/i386/pmap.c:449 449

Re: Please test PAUSE on non-Intel processors

2002-05-24 Thread Bakul Shah
$ dmesg | head | tail -4 CPU: AMD Athlon(tm) XP 1700+ (1466.51-MHz 686-class CPU) Origin = AuthenticAMD Id = 0x662 Stepping = 2 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE AMD Features=0xc048b19,AMIE,DSP,3DNow! $ ./pt Testing

Re: multi default routes in freebsd !?

2002-05-21 Thread Bakul Shah
BGP is a better idea (of course). You might also consider using BGP. And have I mentioned BGP? 8-) 8-). Whether to use BGP/OSPF is orthogonal to multipath use. Both OSPF and BGP allow you to install multiple next hops. Adding multipath support requires, at a minimum, changing struct

Re: mergemaster(8) broken -- uses Perl

2002-05-19 Thread Bakul Shah
Paul Herman [EMAIL PROTECTED] wrote: On Sun, 19 May 2002, Dima Dorfman wrote: How about fixing ls(1) to output the numeric mode if asked to? That's good, but while you're at it you'd probably want to get *everything* out of (struct stat) and print it numerically (device, flags,

Re: mergemaster(8) broken -- uses Perl

2002-05-19 Thread Bakul Shah
$ stat -a stat Oops! A few lines got eaten! $ stat -a stat May 19 00:24:42 2002|48|May 19 00:24:42 2002|291846|-|bakul|0|262301|1|May 19 00:24:42 2002|rwxr-xr-x|1095744|23996|-|bakul|stat $ stat -a -n stat

stat(1) (was Re: mergemaster(8) broken -- uses Perl

2002-05-19 Thread Bakul Shah
the trick nicely (but is too ``complicated'', and I'd still like having a tool that allows userland to call stat/fstat(2): You are not alone; a number of stat(1) commands seemed to have popped up over the years. My friend @ SGI told me IRIX also has such a command. I liked its options so I

Re: size of /usr/src

2002-01-16 Thread Bakul Shah
Your questions belong to freebsd-questions! I created a separate partition for /usr/src (around 420MB) and cvsup ran out of space. Can someone give me a rough idea of how big it is? Also, I should be able to use growfs (after booting off of a floppy) to increase the size of the partition

Re: RFC: hack volatile bzero and bcopy

2001-09-07 Thread Bakul Shah
well this is th idea, because I think that bcopy is probably a safe operation on the volatile structures if the driver knows that they are presently owned by it.. (e.g. mailboxes) *probably* safe? For truly volatile memory bzero bcopy are *not* safe. Anyone remember the origial 68000's

Re: HEADS UP: ACPI CHANGES AFFECTING MOST -CURRENT USERS

2001-09-06 Thread Bakul Shah
$ size scheme textdata bss dec hex filename 6134244763480 69298 10eb2 scheme Is that statically-linked? I'm curious to know the size of the bootloader forth footprint. The loader is about 150k, so I'm sure you could probably fit a nice Scheme

Re: HEADS UP: ACPI CHANGES AFFECTING MOST -CURRENT USERS

2001-09-05 Thread Bakul Shah
I doubt if the bootloader will ever change from FORTH, but if it does, I suggest LISP as the preferred choice on a short-list of potential replacements. Show us a suitable LISP interpreter, then. I don't know what size constraints the bootloader has to have but the smallest two lisp

Re: Ok, try this patch. (was Re: symlink(2) [Was: Re: tcsh.cat])

2001-06-18 Thread Bakul Shah
NetBSD committed essentially this patch 4 years ago (as part of rev.1.23). I like it, except it seems to be incompatible with POSIX.1-200x. The bug that stat(2) on a null symlink classifies the target of the symlink as a directory is caused by resolving the pathname to and then not

Re: Ok, try this patch. (was Re: symlink(2) [Was: Re: tcsh.cat])

2001-06-18 Thread Bakul Shah
So it seems to me the _use_ of a target symlink (in all but the final path component position) is exactly equivalent to the use of a / target symlink. When used in the final path component position, you get either the symlink or ENOENT. The POSIX excerpt Garrett quoted seems to match

skipping mouse pointer

2000-11-06 Thread Bakul Shah
I upgraded my system from the -current sources as of Aug-1 to Nov-4 and find that now the mouse pointer skips while dragging -- the pointer tracks mouse motion fine for a while, then freezes and then jumps to a new location quite a few pixels away. The same thing happens under X as well as on a

Re: Archive pruning

2000-04-24 Thread Bakul Shah
Do we really need 5 year old history? That really depends on your point of view. "Those who cannot remember the past are condemned to repeat it" -- Santayana "The only thing we learn from history is that we learn nothing from history." -- Hegel I am with Hegel

Re: Kernel config utility

1999-12-15 Thread Bakul Shah
So, would having a kernel config utility help us get better reviews? I was thinking about something like an explorer-type thing that was divided into two panes. On the left would be LINT. Here, we would have icons representing the various devices. For example, we could ahve an icon

Re: removing enigma(1)

1999-12-01 Thread Bakul Shah
With the FreeBSD 4.0 code freeze fast approaching, are there any compelling reasons to keep enigma (src/usr.bin/enigma) in the source tree? How dare you be so anti-bloat, living so close to Redmond?:-) [But otherwise a nice place, Seattle. I used to live there] Enigma is just a format

440fx builtin pnp `soundcard' doesn't work anymore under current

1999-09-27 Thread Bakul Shah
Running rvplayer crashes the system. Catting a small .au file works but a large one panics the system so I think the problem may just be the drq difference. I know a number of people in the FreeBSD crowd have this system (a Toshiba Equium 6200M -- a `good' buy 15 months back) so this can't be