Re: What does the FreeBSD/i386 ABI say about stack alignment?

2011-01-14 Thread Peter Blok
Hi, I¹m probably missing something but if you require a stack variable to be aligned why not use a type attribute like __attribute__ ((aligned (8))) Peter On 1/14/11 00:34 AM, Warner Losh i...@bsdimp.com wrote: On 01/13/2011 13:28, Kostik Belousov wrote: On Thu, Jan 13, 2011 at 12:19:00PM

Re: What does the FreeBSD/i386 ABI say about stack alignment?

2011-01-14 Thread Kostik Belousov
On Thu, Jan 13, 2011 at 04:34:22PM -0700, Warner Losh wrote: On 01/13/2011 13:28, Kostik Belousov wrote: On Thu, Jan 13, 2011 at 12:19:00PM -0500, Ryan Stone wrote: I've been trying to get an application compiled with gcc 4.5.1 running on FreeBSD 8.1, but it's been crashing during startup with

Re: NFS: file too large

2011-01-14 Thread Daniel Braniss
:Try editting line #1226 of sys/nfsclient/nfs_vfsops.c, where :it sets nm_maxfilesize = (u_int64_t)0x8000 * DEV_BSIZE - 1; and make it :something larger. : :I have no idea why the limit is set that way? (I'm guessing it was the :limit for UFS.) Hopefully not some weird buffer cache

more gpart/glabel problems

2011-01-14 Thread Daniel Braniss
the provider in this case is mfid0 mfi0: Dell PERC H700 Integrated mfid0: MFI Logical Disk on mfi0 mfid0: 953344MB (1952448512 sectors) RAID volume 'r0' is optimal so I first use gpart: gpart create -s GPT mfid0 gpart bootcode -b /boot/pmbr mfid0

best way to run -RELEASE and -CURRENT on the same machine

2011-01-14 Thread Aryeh Friedman
My normal work doesn't require -CURRENT but the stuff I need to do Android development only works on -CURRENT the problem I only have one machine and want to make it so I can run 8.2-RC1 for most everyday things but can switch to -CURRENT when I do Android work Obviously I would like to make

Re: more gpart/glabel problems

2011-01-14 Thread Stefan Bethke
Am 14.01.2011 um 11:37 schrieb Daniel Braniss: now: glabel lable r0 mfid0 so what am I doing wrong? glabel uses the last sector of the device to store the label. GPT keeps it's backup table there. Additionally, GEOM then tastes the glabel device, and the size of the glabel device

Re: more gpart/glabel problems

2011-01-14 Thread Andrey V. Elsukov
On 14.01.2011 13:37, Daniel Braniss wrote: and on the console: GEOM: mfid0: the secondary GPT table is corrupt or invalid. GEOM: mfid0: using the primary only -- recovery suggested. GEOM: mfid0: the secondary GPT table is corrupt or invalid. GEOM: mfid0: using the

Re: more gpart/glabel problems

2011-01-14 Thread Daniel Braniss
On 14.01.2011 13:37, Daniel Braniss wrote: and on the console: GEOM: mfid0: the secondary GPT table is corrupt or invalid. GEOM: mfid0: using the primary only -- recovery suggested. GEOM: mfid0: the secondary GPT table is corrupt or invalid. GEOM: mfid0: using the

Re: more gpart/glabel problems

2011-01-14 Thread Andrey V. Elsukov
On 14.01.2011 14:33, Daniel Braniss wrote: On 14.01.2011 13:37, Daniel Braniss wrote: and on the console: GEOM: mfid0: the secondary GPT table is corrupt or invalid. GEOM: mfid0: using the primary only -- recovery suggested. GEOM: mfid0: the secondary GPT table is corrupt or

Re: more gpart/glabel problems

2011-01-14 Thread Daniel Braniss
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --enig796DC9FCBCDF02E77B675B44 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 14.01.2011 14:33, Daniel Braniss wrote: On 14.01.2011 13:37, Daniel Braniss wrote: and on the

Re: What does the FreeBSD/i386 ABI say about stack alignment?

2011-01-14 Thread Ryan Stone
On Fri, Jan 14, 2011 at 3:52 AM, Peter Blok peter.b...@bsd4all.org wrote: Hi, I¹m probably missing something but if you require a stack variable to be aligned why not use a type attribute like __attribute__ ((aligned (8))) Peter In my case I had no stack variable that required alignment.

[patch] nmount ro, rw and negated option handling

2011-01-14 Thread Jaakko Heinonen
Hi, Currently nmount(2) allows a mount point to have ro, rw, and noro string options concurrently active. This can cause erratic behavior demonstrated by this example: 1. Have mountd(8) running. 2. # mdconfig -a -t vnode -f ufsimg 3. # mount -o ro,rw /dev/md0 /mnt After these steps the mount

Re: What does the FreeBSD/i386 ABI say about stack alignment?

2011-01-14 Thread Peter Blok
Hi Ryan, Well I think gcc should not generate movdqa if it cannot guarantee the area it is working on is aligned. If the stack is not aligned, it should generate ­ probably less efficient ­ code that works. What is this area, if it is not a local variable allocated somewhere? Is it some sort of

Re: best way to run -RELEASE and -CURRENT on the same machine

2011-01-14 Thread David Wolfskill
I won't claim that the approach I use is best for anyone (even me), but it generally works adequately for my purposes. I use a dual- (actually, quad-)boot approach, and set up the file systems in such a way that /usr/local is a symlink from each bootable environment to the same place. On my home

Re: What does the FreeBSD/i386 ABI say about stack alignment?

2011-01-14 Thread Ryan Stone
On Fri, Jan 14, 2011 at 7:52 AM, Peter Blok peter.b...@bsd4all.org wrote: Hi Ryan, Well I think gcc should not generate movdqa if it cannot guarantee the area it is working on is aligned. If the stack is not aligned, it should generate – probably less efficient – code that works. Well that's

Re: What does the FreeBSD/i386 ABI say about stack alignment?

2011-01-14 Thread Warner Losh
On 01/14/2011 01:28, Kostik Belousov wrote: On Thu, Jan 13, 2011 at 04:34:22PM -0700, Warner Losh wrote: On 01/13/2011 13:28, Kostik Belousov wrote: On Thu, Jan 13, 2011 at 12:19:00PM -0500, Ryan Stone wrote: I've been trying to get an application compiled with gcc 4.5.1 running on FreeBSD

Re: best way to run -RELEASE and -CURRENT on the same machine

2011-01-14 Thread Warner Losh
On 01/14/2011 03:19, Aryeh Friedman wrote: My normal work doesn't require -CURRENT but the stuff I need to do Android development only works on -CURRENT the problem I only have one machine and want to make it so I can run 8.2-RC1 for most everyday things but can switch to -CURRENT when I do

dual booting two versions of FB

2011-01-14 Thread Aryeh Friedman
What is the correct procedure for loading two versions of FB onto the same disk and making both of them bootable? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to

Re: dual booting two versions of FB

2011-01-14 Thread Aryeh Friedman
On 1/14/11, Aryeh Friedman aryeh.fried...@gmail.com wrote: I know I spent all morning attempting to actual get it to work and can't... I can't seem to make the second partion bootable On 1/14/11, David Wolfskill da...@catwhisker.org wrote: On Fri, Jan 14, 2011 at 12:22:46PM -0500, Aryeh

Re: dual booting two versions of FB

2011-01-14 Thread Aryeh Friedman
On 1/14/11, Aryeh Friedman aryeh.fried...@gmail.com wrote: On 1/14/11, Aryeh Friedman aryeh.fried...@gmail.com wrote: I know I spent all morning attempting to actual get it to work and can't... I can't seem to make the second partion bootable On 1/14/11, David Wolfskill da...@catwhisker.org

Re: NFS: file too large

2011-01-14 Thread Rick Macklem
BTW, why not make away with the test altogether? Well, since a server specifies the maximum file size it can handle, it seems good form to check for that in the client. (Although I'd agree that a server shouldn't crash if a read/write that goes beyond that limit.) Also, as Matt notes, off_t

USENIX WebApps '11 Submission Deadline Approaching

2011-01-14 Thread Lionel Garth Jones
I am writing to remind you that the submission deadline for the 2nd USENIX Conference on Web Application Development (WebApps '11) is approaching. Please submit your work by January 21, 2011, at 11:59 p.m. PST. http://www.usenix.org/webapps11/cfpb/ Like the inaugural WebApps '10, WebApps '11

tcp_output.c:560 - is this code correct?

2011-01-14 Thread Stefan `Sec` Zehl
Hi, I just found a bug in FreeBSD amd64 -- (see the PR#kern/154006) a missing (long) cast in tcp_output.c. I have a question about this code (around line 560) where adv is calculated: | if (recwin 0 !(tp-t_flags TF_NEEDSYN) | !TCPS_HAVERCVDFIN(tp-t_state)) { |