RE: Samba 3.2.4 not in ports?

2008-10-07 Thread Johan Hendriks

Onderwerp: Samba 3.2.4 not in ports?

Hi all,

Sorry if this is a faq or something obvious, but
is there a reason why current version of samba 3.2.4
is not in ports? I only see 3.0.32 at the moment :-(

Best regards,
Holger

This has been asked before, there are some issues with samba 3.2.x 
The maintainer said that maybe a 3.2.2 or even higher will be in ports but we 
are now at 3.2.4 and still no 3.2.x in ports.
So the issues are not worked out yet.

Be patient, it will hit the tree some time.

But maybe it is time for a samba32-devel in the ports tree so it gets more 
testing.



Regards,
Johan Hendriks




No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.173 / Virus Database: 270.7.6/1711 - Release Date: 6-10-2008 17:37
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help me to develop a FreeBSD patch for gcc-4.2.1

2008-10-07 Thread Unga
--- On Tue, 10/7/08, Peter Jeremy [EMAIL PROTECTED] wrote:

 On 2008-Oct-06 06:19:34 -0700, Unga
 [EMAIL PROTECTED] wrote: 
 The FreeBSD stable comes with gcc-4.2.1 but the sources
 are scattered
 over the /usr/src, therefore, I find it difficult to
 re-create the
 gcc-4.2.1 to its original directory layout to make a
 patch.
 
 The original sources for gcc can be found in
 /usr/src/contrib/gcc -
 note that this is not a complete gcc 4.2.1 distribution as
 parts of
 gcc that are not relevant for FreeBSD have been deleted. 
 Refer to the
 FREEBSD-* files for details.
 

Here is how I did that:

1. Unpack original GCC sources
tar -xjf gcc-4.2.1.tar.bz2
mv -v gcc-4.2.1 gcc-4.2.1.orig

2. Bring under one roof FreeBSD-modified GCC sources
mkdir -pv gcc-4.2.1
cd gcc-4.2.1

cp -R /usr/src/contrib/gcc .
cp -R /usr/src/contrib/gcclibs/ .
cp -R /usr/src/contrib/libobjc .
cp -R /usr/src/contrib/libstdc++ libstdc++-v3

cd ..

3. Make a patch
diff -aur gcc-4.2.1.orig gcc-4.2.1  FreeBSD-gcc.patch


Now the question is have I collected all the GCC sources from FreeBSD source 
tree? Have I missed any?


Now I unpacked the gcc-4.2.1.tar.bz2 into some other directory and applied this 
FreeBSD-gcc.patch. Ran configure and compiled. It develop following error:
../../gcc-4.2.1/gcc/c-format.c:1780: error: 'flag_format_extensions' undeclared 
(first use in this function)
../../gcc-4.2.1/gcc/c-format.c:1780: error: (Each undeclared identifier is 
reported only once
../../gcc-4.2.1/gcc/c-format.c:1780: error: for each function it appears in.)
gmake[2]: *** [c-format.o] Error 1

So where is the flag_format_extensions is declared in FreeBSD?

Best regards
Unga



  
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread Jeremy Chadwick
On Tue, Oct 07, 2008 at 12:07:26PM +0200, Holger Kipp wrote:
 On Tue, Oct 07, 2008 at 02:54:37AM -0700, Jeremy Chadwick wrote:
  On Tue, Oct 07, 2008 at 05:32:43PM +0800, lhmwzy wrote:
   I create a zfs volume pool/lhm and give it quota 1M use zfs set
   quota=1m pool/lhm
 
  I can confirm and reproduce what you're seeing.
  
  Based on all of the ZFS documentation and examples I've read, it appears
  to be a bug in FreeBSD ZFS.
  
  CC'ing pjd@, who maintains ZFS on FreeBSD.
 
 I can't confirm this on a recent 7-STABLE (yesterday):
 
 intserv2# zfs set quota=1m tank/test
 intserv2# cp /usr/ports/distfiles/samba-3.0.32.tar.gz /tank/test/
 cp: /tank/test/samba-3.0.32.tar.gz: Disc quota exceeded

Interesting.  The system I'm testing on:

FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct  2 
03:04:20 PDT 2008 [EMAIL 
PROTECTED]:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64

Can you provide the output from zfs get all tank tank/test?
Below are mine.

Note that for the testing, I set the quota on storage/home to 4G, and
did dd if=/dev/zero of=/home/filler bs=1g count=8.  I've since
set the quota back to 16G.

NAME  PROPERTY   VALUE  SOURCE
storage   type   filesystem -
storage   creation   Wed Sep 24 17:47 2008  -
storage   used   181G   -
storage   available  1.16T  -
storage   referenced 180G   -
storage   compressratio  1.02x  -
storage   mountedyes-
storage   quota  none   default
storage   reservationnone   default
storage   recordsize 128K   default
storage   mountpoint /storage   default
storage   sharenfs   offdefault
storage   checksum   on default
storage   compressionon local
storage   atime  on local
storage   deviceson default
storage   exec   on default
storage   setuid on default
storage   readonly   offdefault
storage   jailed offdefault
storage   snapdirhidden default
storage   aclmodegroupmask  default
storage   aclinherit secure default
storage   canmount   on default
storage   shareiscsi offdefault
storage   xattr  offtemporary
storage   copies 1  default

storage/home  type   filesystem -
storage/home  creation   Wed Sep 24 20:26 2008  -
storage/home  used   944M   -
storage/home  available  14.1G  -
storage/home  referenced 944M   -
storage/home  compressratio  1.25x  -
storage/home  mountedyes-
storage/home  quota  15Glocal
storage/home  reservationnone   default
storage/home  recordsize 128K   default
storage/home  mountpoint /home  local
storage/home  sharenfs   offdefault
storage/home  checksum   on default
storage/home  compressionon inherited from storage
storage/home  atime  on inherited from storage
storage/home  deviceson default
storage/home  exec   on default
storage/home  setuid on default
storage/home  readonly   offdefault
storage/home  jailed offdefault
storage/home  snapdirhidden default
storage/home  aclmodegroupmask  default
storage/home  aclinherit secure default
storage/home  canmount   on default
storage/home  shareiscsi offdefault
storage/home  xattr  offtemporary
storage/home  copies 1  default

Filesystem  SizeUsed   Avail Capacity  Mounted on
storage 1.3T180G1.2T13%/storage
storage/home 15G944M 14G 6%/home

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable

Re: zfs quota question

2008-10-07 Thread Pawel Jakub Dawidek
On Tue, Oct 07, 2008 at 02:54:37AM -0700, Jeremy Chadwick wrote:
 On Tue, Oct 07, 2008 at 05:32:43PM +0800, lhmwzy wrote:
  I create a zfs volume pool/lhm and give it quota 1M use zfs set
  quota=1m pool/lhm
  
  #zfs get all pool/lhm
  zfs get all pool/lhm
  [ttyp0][5:22:12pm]
  NAME  PROPERTY   VALUE  SOURCE
  pool/lhm  type   filesystem -
  pool/lhm  creation   Tue Oct  7 17:14 2008  -
  pool/lhm  used   1.00M  -
  pool/lhm  available  0  -
  pool/lhm  referenced 1.00M  -
  pool/lhm  compressratio  7.25x  -

Turn compression off and retry.

-- 
Pawel Jakub Dawidek   http://www.wheel.pl
[EMAIL PROTECTED]   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgprVJ3srzFuf.pgp
Description: PGP signature


Re: zfs quota question

2008-10-07 Thread Holger Kipp
On Tue, Oct 07, 2008 at 03:12:59AM -0700, Jeremy Chadwick wrote:
 On Tue, Oct 07, 2008 at 12:07:26PM +0200, Holger Kipp wrote:
  On Tue, Oct 07, 2008 at 02:54:37AM -0700, Jeremy Chadwick wrote:
   On Tue, Oct 07, 2008 at 05:32:43PM +0800, lhmwzy wrote:
I create a zfs volume pool/lhm and give it quota 1M use zfs set
quota=1m pool/lhm
  
   I can confirm and reproduce what you're seeing.
   
   Based on all of the ZFS documentation and examples I've read, it appears
   to be a bug in FreeBSD ZFS.
   
   CC'ing pjd@, who maintains ZFS on FreeBSD.
  
  I can't confirm this on a recent 7-STABLE (yesterday):
  
  intserv2# zfs set quota=1m tank/test
  intserv2# cp /usr/ports/distfiles/samba-3.0.32.tar.gz /tank/test/
  cp: /tank/test/samba-3.0.32.tar.gz: Disc quota exceeded
 
 Interesting.  The system I'm testing on:
 
 FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct  2 
 03:04:20 PDT 2008 [EMAIL 
 PROTECTED]:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64
 
 Can you provide the output from zfs get all tank tank/test?
 Below are mine.
 
 Note that for the testing, I set the quota on storage/home to 4G, and
 did dd if=/dev/zero of=/home/filler bs=1g count=8.  I've since
 set the quota back to 16G.
 
 NAME  PROPERTY   VALUE  SOURCE
 storage   compressratio  1.02x  -
 
 storage/home  type   filesystem -
 storage/home  compressratio  1.25x  -

I am not sure if you get correct results with /dev/zero and
enabled compression. A file that only contains null bytes won't 
grow very fast in compressed form.

You might want to create storage/test and disable compression
for this, then set a limit of 1M or larger (if you like) and try
once again.

I currently have a pool defined without general compression and
just used

# zfs create tank/test
# zfs set quota=1m tank/test
# cp /usr/ports/distfiles/samba-3.0.32.tar.gz /tank/test/
cp: /tank/test/samba-3.0.32.tar.gz: Disc quota exceeded

# zfs destroy tank/test

and compressration is a very steady 1.00x ;-)

Best regards,
Holger Kipp
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread Pawel Jakub Dawidek
On Tue, Oct 07, 2008 at 03:30:09AM -0700, Jeremy Chadwick wrote:
 On Tue, Oct 07, 2008 at 12:17:55PM +0200, Pawel Jakub Dawidek wrote:
  Turn compression off and retry.
 
 Yep, that's the key!
 
 # zfs set quota=4g storage/home
 # zfs set compression=off storage
 # zfs get compression,quota,mountpoint
 NAME  PROPERTY VALUE SOURCE
 storage   compression  off   local
 storage   quotanone  default
 storage   mountpoint   /storage  default
 storage/home  compression  off   inherited from storage
 storage/home  quota4Glocal
 storage/home  mountpoint   /home local
 
 # dd if=/dev/zero of=/home/filler bs=1g count=8
 dd: /home/filler: Disc quota exceeded
 4+0 records in
 3+1 records out
 3306553344 bytes transferred in 62.566567 secs (52848566 bytes/sec)
 
 # df -h /home
 Filesystem  SizeUsed   Avail Capacity  Mounted on
 storage/home4.0G4.0G  0B   100%/home
 
 I had no idea compression could cause this.  A useful feature, but
 obviously can result in misleading results...  :-)

Yeah, ZFS offers a lot, which can create confusion, unfortunately. Do we
limit physical space with quota or only logical (before compression)?
Should we take space consumed by snapshots into account or not? etc.

-- 
Pawel Jakub Dawidek   http://www.wheel.pl
[EMAIL PROTECTED]   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgpVuXJCx6E3U.pgp
Description: PGP signature


Re: reloading samba config made system unresponsible

2008-10-07 Thread Bartosz Stec

Bartosz Stec wrote:
My tries to tune smb.conf to achieve better performance expose very 
strange bug:

Just executing:

   /usr/local/etc/rc.d/samba reload

made my system unresponsible from network. It happens three times 
until now so I'm sure that is the cause (but it happened after some 
succesful reloads a couple of minutes earlier, so it's not happening 
all the time command is executed).

Symptoms:

   - machine only responding to ping requests
   - ssh session shows, that config reload was succesful, and that's
   last thing showed (no shell after message)
   - can't connect with another ssh session, but no refuse nor timeout
   - on local console system seems responsible (alt +[1-9] works), but
   any try to login cause it to wait forever for password prompt
   - no kernel or error message on screen, and nothing suspicious in logs
   - alt+ctrl+del does nothing
   - pressing power button and waiting for system to shutdown does 
nothing

   - hard reset was the only way
   - after first restart I've made full fsck and started rebuilding
   gmirror - when machine hangs second time rebuilding doesn't stop

I'm not a developer but it looks like some kind of deadlock? Note that 
changes I made to smb.conf was only in socket options.



Update:
   The true reason of this was a filesystem - I've noticed some strange 
kernel message about old format snaphot. Fsck didn't found any fs 
error, so I just deleted all snapshots from /usr. Problem is gone now. 
Note that snapshots were about 2 months old so it's still scary :)

Sorry for confusion.

--
Bartosz Stec

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread Andrew Snow

I love ZFS, but I suddenly found out last night that I
have lost the ability tto do a 'du' on a directory to work out if it will
fit onto a CD or not :-)


I have created a shell script, /usr/local/bin/dirsize :


#!/bin/sh
find $1 -type f -ls | awk '{j += $7} END {print j}'



Usage: dirsize path

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Regression 7.0R - 7-stable?

2008-10-07 Thread Jeremy Chadwick
On Tue, Oct 07, 2008 at 02:37:24PM +0200, Gerrit Kühn wrote:
 On Tue, 7 Oct 2008 13:38:01 +0200 Gerrit Kühn [EMAIL PROTECTED]
 wrote about Re: Regression 7.0R - 7-stable?:
 
 [...]
 
 GK However, yesterday I upgraded the system to a recent 7-stable
 GK codebase, and now it locks again hard after probing the CPU cores. My
 GK setup remained exactly the same, the new code just does not work.
 GK Please let me know what I have do to provide further information.
 
 Well, comparing the kernel setups again I found one thing that makes a
 difference: The scheduler (somewhen SCHED_ULE has been declared the
 default).
 SCHED_ULE is crashing the system, SCHED_4BSD works fine...

This is of great concern if in fact that's true.

I'm adding Jeff Roberson, author of the ULE/SMP2.0 code, to the CC.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Regression 7.0R - 7-stable?

2008-10-07 Thread John Baldwin
On Tuesday 07 October 2008 09:37:10 am Jeremy Chadwick wrote:
 On Tue, Oct 07, 2008 at 02:37:24PM +0200, Gerrit Kühn wrote:
  On Tue, 7 Oct 2008 13:38:01 +0200 Gerrit Kühn [EMAIL PROTECTED]
  wrote about Re: Regression 7.0R - 7-stable?:
  
  [...]
  
  GK However, yesterday I upgraded the system to a recent 7-stable
  GK codebase, and now it locks again hard after probing the CPU cores. My
  GK setup remained exactly the same, the new code just does not work.
  GK Please let me know what I have do to provide further information.
  
  Well, comparing the kernel setups again I found one thing that makes a
  difference: The scheduler (somewhen SCHED_ULE has been declared the
  default).
  SCHED_ULE is crashing the system, SCHED_4BSD works fine...
 
 This is of great concern if in fact that's true.
 
 I'm adding Jeff Roberson, author of the ULE/SMP2.0 code, to the CC.

Do you have more details about the crash?  Are you getting an actual panic 
with messages on the console, or are you still seeing hangs?  When you get a 
hang, can you break into the debugger and get a crash dump?

-- 
John Baldwin
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread lhmwzy
You're right.
I turn off the compression,everything go well.
So this is my problem,not a ZFS of FreeBSD problme.
Tks for reply.

2008/10/7 Pawel Jakub Dawidek [EMAIL PROTECTED]:
.00M  -
  pool/lhm  compressratio  7.25x  -

 Turn compression off and retry.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread lhmwzy
sorry,I make a mistake.
It is a filesystem,not a volume.

2008/10/7 Holger Kipp [EMAIL PROTECTED]:
 according to zfs manpage:

   Quotas cannot be set on volumes, as the volsize property acts  as
   an implicit quota.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Regression 7.0R - 7-stable?

2008-10-07 Thread Gerrit Kühn
On Tue, 7 Oct 2008 10:02:56 -0400 John Baldwin [EMAIL PROTECTED] wrote
about Re: Regression 7.0R - 7-stable?:

JB Do you have more details about the crash?  Are you getting an actual
JB panic with messages on the console, or are you still seeing hangs?

Like it was before: system just hangs after displaying the probing
messages about the CPU cores; next step for a working kernel would be
mounting of the file systems (and changing from white kernel output to grey
system output).

JB When you get a hang, can you break into the debugger and get a crash
JB dump?

Is there a documentation somewhere how to do this?


cu
  Gerrit
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread Max Laier
On Tuesday 07 October 2008 12:43:45 Pete French wrote:
  Yeah, ZFS offers a lot, which can create confusion, unfortunately. Do we
  limit physical space with quota or only logical (before compression)?
  Should we take space consumed by snapshots into account or not? etc.

 On a related note, is there any way to make du tell me how big files
 are in actual bytes on a compressed ZFS filesystem, aas opposed to space
 on the disc ? I love ZFS, but I suddenly found out last night that I
 have lost the ability tto do a 'du' on a directory to work out if it will
 fit onto a CD or not :-)

But you can't do that on UFS either: sparse files, hardlinks, ...

The GNU du(1) has a --apparent-size switch to get the logical size instead 
of what the tool's name suggests (the disk usage).

-- 
/\  Best regards,  | [EMAIL PROTECTED]
\ /  Max Laier  | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
/ \  ASCII Ribbon Campaign  | Against HTML Mail and News
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Regression 7.0R - 7-stable?

2008-10-07 Thread Jeremy Chadwick
On Tue, Oct 07, 2008 at 04:15:34PM +0200, Gerrit Kühn wrote:
 On Tue, 7 Oct 2008 10:02:56 -0400 John Baldwin [EMAIL PROTECTED] wrote
 about Re: Regression 7.0R - 7-stable?:
 
 JB Do you have more details about the crash?  Are you getting an actual
 JB panic with messages on the console, or are you still seeing hangs?
 
 Like it was before: system just hangs after displaying the probing
 messages about the CPU cores; next step for a working kernel would be
 mounting of the file systems (and changing from white kernel output to grey
 system output).

Actually, I think you mean mounting of the root filesystem, do you not?

If so, others have recently reported this problem (hard lock-ups before
or after printing Mounting root from...).

 JB When you get a hang, can you break into the debugger and get a crash
 JB dump?
 
 Is there a documentation somewhere how to do this?

John can probably help you with the commands you need to type, but the
FreeBSD Handbook goes over the general commands.

As far as getting into the debugger, it's Control-Alt-Esc from the
console.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread Holger Kipp
On Tue, Oct 07, 2008 at 05:32:43PM +0800, lhmwzy wrote:
 I create a zfs volume pool/lhm and give it quota 1M use zfs set
 quota=1m pool/lhm

according to zfs manpage:

   Quotas cannot be set on volumes, as the volsize property acts  as
   an implicit quota.

Aditionally, I see you're using compression, so a 2.4M file might
not use up that much space. Compressration 7.25x

 #zfs get all pool/lhm
 zfs get all pool/lhm
 [ttyp0][5:22:12pm]
 NAME  PROPERTY   VALUE  SOURCE
 pool/lhm  type   filesystem -
 pool/lhm  creation   Tue Oct  7 17:14 2008  -
 pool/lhm  used   1.00M  -
 pool/lhm  available  0  -
 pool/lhm  referenced 1.00M  -
 pool/lhm  compressratio  7.25x  -
 pool/lhm  mountedyes-
 pool/lhm  quota  1M local
 pool/lhm  reservationnone   default
 pool/lhm  recordsize 128K   default

If you find this answer helpful, donate money to some children help fund :-)

Regards,
Holger Kipp
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread lhmwzy
My system
#uname -a
FreeBSD bxzxfreebsd.slof.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #4:
Mon Oct  6 15:02:42 CST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/lhmwzy  amd64

zfs version:
ZFS filesystem version 6
ZFS storage pool version 6
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


zfs quota question

2008-10-07 Thread lhmwzy
I create a zfs volume pool/lhm and give it quota 1M use zfs set
quota=1m pool/lhm

#zfs get all pool/lhm
zfs get all pool/lhm
[ttyp0][5:22:12pm]
NAME  PROPERTY   VALUE  SOURCE
pool/lhm  type   filesystem -
pool/lhm  creation   Tue Oct  7 17:14 2008  -
pool/lhm  used   1.00M  -
pool/lhm  available  0  -
pool/lhm  referenced 1.00M  -
pool/lhm  compressratio  7.25x  -
pool/lhm  mountedyes-
pool/lhm  quota  1M local
pool/lhm  reservationnone   default
pool/lhm  recordsize 128K   default

But I cp 10 files,per file size is 2.4M to pool/lhm
#ll -h /pool/lhm
total 1013
-rw---  1 root  wheel   2.4M Oct  7 17:18 d
-rw---  1 root  wheel   2.4M Oct  7 17:19 dd
-rw---  1 root  wheel   2.4M Oct  7 17:19 ddd
-rw---  1 root  wheel   2.4M Oct  7 17:19 
-rw---  1 root  wheel   2.4M Oct  7 17:19 d
-rw---  1 root  wheel   2.4M Oct  7 17:19 dd
-rw---  1 root  wheel   2.4M Oct  7 17:19 dd2
-rw---  1 root  wheel   2.4M Oct  7 17:19 dd24
-rw---  1 root  wheel   2.1M Oct  7 17:19 dd247
-rw---  1 root  wheel   2.4M Oct  7 17:18 kldstat.core

#du -hs /pool/lhm
1.0M.

I am puzzled,the what's zfs quota mean?
I understand is file quota,that can't put files which total size larger than 1M.
But it seems my understanding is wrong.
Anybody give a idea?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Possibility of backporting of Heimdal 1.1

2008-10-07 Thread Mike Tancsa

At 05:24 PM 10/6/2008, Galen Sampson wrote:
I would like to second that.  The heimdal in 7.0 is quite old.  It 
is in fact inoperable with an mit kerberos realm when using 
ssh.  The byte order is incorrect such that you get MIC checksum 
failures.  After much googling (not documented in the krb5.conf man 
page or handbook) I found that a fix was added in the heimdal in 
7.0, but defaults to the old incompatible byte order.  The heimdal 
in current uses the correct byte order by default.  For those having 
the this issue with freebsd 7.0 the fix is adding the following 
lines to /etc/krb5.conf:


[gssapi]
correct_des3_mic = host/[EMAIL PROTECTED]

Gunnar Flygt wrote:

Is there any possibility that heimdal 1.1 that works beautifully in
Current will be backported to FreeBSD-7.x?

Gunnar Flygt
Sveriges Radio Teknik/IT



I think someone mentioned the possibility of post 7.1R. But not 100% sure

---Mike 


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread Pete French
 Yeah, ZFS offers a lot, which can create confusion, unfortunately. Do we
 limit physical space with quota or only logical (before compression)?
 Should we take space consumed by snapshots into account or not? etc.

On a related note, is there any way to make du tell me how big files
are in actual bytes on a compressed ZFS filesystem, aas opposed to space
on the disc ? I love ZFS, but I suddenly found out last night that I
have lost the ability tto do a 'du' on a directory to work out if it will
fit onto a CD or not :-)

-pete.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Regression 7.0R - 7-stable?

2008-10-07 Thread Gerrit Kühn
On Tue, 7 Oct 2008 07:25:42 -0700 Jeremy Chadwick [EMAIL PROTECTED]
wrote about Re: Regression 7.0R - 7-stable?:

JC  Like it was before: system just hangs after displaying the probing
JC  messages about the CPU cores; next step for a working kernel would
JC  be mounting of the file systems (and changing from white kernel
JC  output to grey system output).

JC Actually, I think you mean mounting of the root filesystem, do you not?
JC If so, others have recently reported this problem (hard lock-ups
JC before or after printing Mounting root from...).

Yes, of course (sorry for being vague).

JC  JB When you get a hang, can you break into the debugger and get a
JC  JB crash dump?

JC  Is there a documentation somewhere how to do this?

JC John can probably help you with the commands you need to type, but the
JC FreeBSD Handbook goes over the general commands.
JC As far as getting into the debugger, it's Control-Alt-Esc from the
JC console.

Ok, I added options KDB and DDB to my kernel configuration and compiled
with SCHED_ULE. However, after hanging the system does not react on
Ctrl-Alt-Esc. Am I missing something?


cu
  Gerrit
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Regression 7.0R - 7-stable?

2008-10-07 Thread Gerrit Kühn
On Wed, 27 Aug 2008 11:16:29 +0200 Gerrit Kühn
[EMAIL PROTECTED] wrote about Re: Regression 7.0R - 7-stable?:

[...]

GK If someone can tell me what to do (except for putting ddb into the
GK kernel configuration) or point me at some documentation about this, I
GK can try getting some useful information from the debugger.

Sorry to disturb all of you again, but the thing is still not fixed (or
better: broken again) for me:

I saw some patches referring to this problem and was able to compile a
working kernel somewhen in September (don't know the exact date
unfortunatley, but the kernel is from 22nd of September, so this is the
latest possible date). After that I thought the issue had settled.

However, yesterday I upgraded the system to a recent 7-stable codebase,
and now it locks again hard after probing the CPU cores. My setup remained
exactly the same, the new code just does not work.
Please let me know what I have do to provide further information.


cu
  Gerrit
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread lhmwzy
Yes,this is a problem.
In my case,du -h displays 1M,but the actual size is about 24M.


2008/10/7 Pete French [EMAIL PROTECTED]:
 Yeah, ZFS offers a lot, which can create confusion, unfortunately. Do we
 limit physical space with quota or only logical (before compression)?
 Should we take space consumed by snapshots into account or not? etc.

 On a related note, is there any way to make du tell me how big files
 are in actual bytes on a compressed ZFS filesystem, aas opposed to space
 on the disc ? I love ZFS, but I suddenly found out last night that I
 have lost the ability tto do a 'du' on a directory to work out if it will
 fit onto a CD or not :-)

 -pete.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Regression 7.0R - 7-stable?

2008-10-07 Thread Gerrit Kühn
On Tue, 7 Oct 2008 13:38:01 +0200 Gerrit Kühn [EMAIL PROTECTED]
wrote about Re: Regression 7.0R - 7-stable?:

[...]

GK However, yesterday I upgraded the system to a recent 7-stable
GK codebase, and now it locks again hard after probing the CPU cores. My
GK setup remained exactly the same, the new code just does not work.
GK Please let me know what I have do to provide further information.

Well, comparing the kernel setups again I found one thing that makes a
difference: The scheduler (somewhen SCHED_ULE has been declared the
default).
SCHED_ULE is crashing the system, SCHED_4BSD works fine...


cu
  Gerrit
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


route flush does not delete routes created with -interface option

2008-10-07 Thread Johann Hugo
Is there a way to get rid of all the routes in a routing table ?

This is more or less what I do:

route add 146.64.80.0/24 192.168.0.100
route add 146.141.0.0 -interface tun1
route add 146.182.0.0 -interface tun1
route add 146.230.0.0 -interface tun1

netstat -rn inet
146.64.80.0/24 192.168.0.100  UGS 00   sis0
146.141.0.0/16 tun1  US   00   tun1
146.182.0.0/16 tun1  US   00   tun1
146.230.0.0/16 tun1  US   00   tun1

If I do route -n flush -inet then it does not delete the routes created with 
a -interface option. see verbose output:

route -vn flush -inet
RTM_GET: Report Metrics: len 204, pid: 0, seq 0, errno 0, 
flags:UP,GATEWAY,STATIC
locks:  inits:
sockaddrs: DST,GATEWAY,NETMASK,IFP,IFA
 146.64.80.0 192.168.0.100 (255)   ff sis0:0.0.24.c7.8b.80 
192.168.0.44
RTM_DELETE: Delete Route: len 204, pid: 0, seq 2, errno 0, 
flags:UP,GATEWAY,STATIC
locks:  inits:
sockaddrs: DST,GATEWAY,NETMASK,IFP,IFA
 146.64.80.0 192.168.0.100 (255)   ff sis0:0.0.24.c7.8b.80 
192.168.0.44
RTM_GET: Report Metrics: len 260, pid: 0, seq 0, errno 0, flags:UP,STATIC
locks:  inits:
sockaddrs: DST,GATEWAY,NETMASK,IFP,IFA,BRD
 146.141.0.0 tun1 (255)   tun1 dsl-146-145-96.telkomadsl.co.za 
dsl-146-144-01.telkomadsl.co.za
RTM_GET: Report Metrics: len 260, pid: 0, seq 0, errno 0, flags:UP,STATIC
locks:  inits:
sockaddrs: DST,GATEWAY,NETMASK,IFP,IFA,BRD
 146.182.0.0 tun1 (255)   tun1 dsl-146-145-96.telkomadsl.co.za 
dsl-146-144-01.telkomadsl.co.za
RTM_GET: Report Metrics: len 260, pid: 0, seq 0, errno 0, flags:UP,STATIC
locks:  inits:
sockaddrs: DST,GATEWAY,NETMASK,IFP,IFA,BRD
 146.230.0.0 tun1 (255)   tun1 dsl-146-145-96.telkomadsl.co.za 
dsl-146-144-01.telkomadsl.co.za

uname -a
FreeBSD groenwifi.cids.org.za 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #19: Tue 
Aug 26 13:40:13 UTC 2008
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread Holger Kipp
On Tue, Oct 07, 2008 at 02:54:37AM -0700, Jeremy Chadwick wrote:
 On Tue, Oct 07, 2008 at 05:32:43PM +0800, lhmwzy wrote:
  I create a zfs volume pool/lhm and give it quota 1M use zfs set
  quota=1m pool/lhm

 I can confirm and reproduce what you're seeing.
 
 Based on all of the ZFS documentation and examples I've read, it appears
 to be a bug in FreeBSD ZFS.
 
 CC'ing pjd@, who maintains ZFS on FreeBSD.

I can't confirm this on a recent 7-STABLE (yesterday):

intserv2# zfs set quota=1m tank/test
intserv2# cp /usr/ports/distfiles/samba-3.0.32.tar.gz /tank/test/
cp: /tank/test/samba-3.0.32.tar.gz: Disc quota exceeded

Regards,
Holger Kipp
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread Jeremy Chadwick
On Tue, Oct 07, 2008 at 12:17:55PM +0200, Pawel Jakub Dawidek wrote:
 On Tue, Oct 07, 2008 at 02:54:37AM -0700, Jeremy Chadwick wrote:
  On Tue, Oct 07, 2008 at 05:32:43PM +0800, lhmwzy wrote:
   I create a zfs volume pool/lhm and give it quota 1M use zfs set
   quota=1m pool/lhm
   
   #zfs get all pool/lhm
   zfs get all pool/lhm
   [ttyp0][5:22:12pm]
   NAME  PROPERTY   VALUE  SOURCE
   pool/lhm  type   filesystem -
   pool/lhm  creation   Tue Oct  7 17:14 2008  -
   pool/lhm  used   1.00M  -
   pool/lhm  available  0  -
   pool/lhm  referenced 1.00M  -
   pool/lhm  compressratio  7.25x  -
 
 Turn compression off and retry.

Yep, that's the key!

# zfs set quota=4g storage/home
# zfs set compression=off storage
# zfs get compression,quota,mountpoint
NAME  PROPERTY VALUE SOURCE
storage   compression  off   local
storage   quotanone  default
storage   mountpoint   /storage  default
storage/home  compression  off   inherited from storage
storage/home  quota4Glocal
storage/home  mountpoint   /home local

# dd if=/dev/zero of=/home/filler bs=1g count=8
dd: /home/filler: Disc quota exceeded
4+0 records in
3+1 records out
3306553344 bytes transferred in 62.566567 secs (52848566 bytes/sec)

# df -h /home
Filesystem  SizeUsed   Avail Capacity  Mounted on
storage/home4.0G4.0G  0B   100%/home

I had no idea compression could cause this.  A useful feature, but
obviously can result in misleading results...  :-)

Thanks as usual, Pawel!

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread Jeremy Chadwick
On Tue, Oct 07, 2008 at 05:32:43PM +0800, lhmwzy wrote:
 I create a zfs volume pool/lhm and give it quota 1M use zfs set
 quota=1m pool/lhm
 
 #zfs get all pool/lhm
 zfs get all pool/lhm
 [ttyp0][5:22:12pm]
 NAME  PROPERTY   VALUE  SOURCE
 pool/lhm  type   filesystem -
 pool/lhm  creation   Tue Oct  7 17:14 2008  -
 pool/lhm  used   1.00M  -
 pool/lhm  available  0  -
 pool/lhm  referenced 1.00M  -
 pool/lhm  compressratio  7.25x  -
 pool/lhm  mountedyes-
 pool/lhm  quota  1M local
 pool/lhm  reservationnone   default
 pool/lhm  recordsize 128K   default
 
 But I cp 10 files,per file size is 2.4M to pool/lhm
 #ll -h /pool/lhm
 total 1013
 -rw---  1 root  wheel   2.4M Oct  7 17:18 d
 -rw---  1 root  wheel   2.4M Oct  7 17:19 dd
 -rw---  1 root  wheel   2.4M Oct  7 17:19 ddd
 -rw---  1 root  wheel   2.4M Oct  7 17:19 
 -rw---  1 root  wheel   2.4M Oct  7 17:19 d
 -rw---  1 root  wheel   2.4M Oct  7 17:19 dd
 -rw---  1 root  wheel   2.4M Oct  7 17:19 dd2
 -rw---  1 root  wheel   2.4M Oct  7 17:19 dd24
 -rw---  1 root  wheel   2.1M Oct  7 17:19 dd247
 -rw---  1 root  wheel   2.4M Oct  7 17:18 kldstat.core
 
 #du -hs /pool/lhm
 1.0M  .
 
 I am puzzled,the what's zfs quota mean?
 I understand is file quota,that can't put files which total size larger than 
 1M.
 But it seems my understanding is wrong.
 Anybody give a idea?

I can confirm and reproduce what you're seeing.

Based on all of the ZFS documentation and examples I've read, it appears
to be a bug in FreeBSD ZFS.

CC'ing pjd@, who maintains ZFS on FreeBSD.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Regression 7.0R - 7-stable?

2008-10-07 Thread John Baldwin
On Tuesday 07 October 2008 11:07:42 am Gerrit Kühn wrote:
 JC John can probably help you with the commands you need to type, but the
 JC FreeBSD Handbook goes over the general commands.
 JC As far as getting into the debugger, it's Control-Alt-Esc from the
 JC console.
 
 Ok, I added options KDB and DDB to my kernel configuration and compiled
 with SCHED_ULE. However, after hanging the system does not react on
 Ctrl-Alt-Esc. Am I missing something?

Can you add VERBOSE_SYSINIT to your kernel config and do a boot -v?  Also, are 
you able to log the output at all (such as via a serial console)?

-- 
John Baldwin
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


stable 7.0 and nslookup help command

2008-10-07 Thread xer xernet
Hello to anyone.

I'm a FreeBSD user, i'm still a new bee but i still keep to learning.
Anyway, here is my question:

I use a FreeBSD STABLE-7 not installed by me, in this installation nslookup 
works very good and the ? or help command working properly, infact the 
every time i recall the command ? or help nslookup show me the file 
nslookup.help in /usr/share/misc.

Now, i did installed (by me) e STABLE-7 and i don't understand why the ? 
command is not implemented on nslookup, also the file nslookup.help doen't 
exist.
How can i implement this feature on my fresh STABLE-7 install ?

TIA
xer


_
Tutto il mondo MSN a portata di clic!
http://toolbar.msn.com/overview.aspx?loc=it-it___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: stable 7.0 and nslookup help command

2008-10-07 Thread Jeremy Chadwick
On Tue, Oct 07, 2008 at 06:30:23PM +0200, xer xernet wrote:
 Hello to anyone.
 
 I'm a FreeBSD user, i'm still a new bee but i still keep to learning.
 Anyway, here is my question:
 
 I use a FreeBSD STABLE-7 not installed by me, in this installation nslookup 
 works very good and the ? or help command working properly, infact the 
 every time i recall the command ? or help nslookup show me the file 
 nslookup.help in /usr/share/misc.
 
 Now, i did installed (by me) e STABLE-7 and i don't understand why the ? 
 command is not implemented on nslookup, also the file nslookup.help doen't 
 exist.
 How can i implement this feature on my fresh STABLE-7 install ?

Not to dissuade you from what you're trying to accomplish, but
nslookup has been deprecated (this has been stated a few times by the
BIND folks), and host is probably on its way out as well (though I
remember somewhere, sometime, nslookup used to state being deprecated,
use 'host' or 'dig' instead -- or something like that).

Please learn to use the dig command.  I realise it has a somewhat high
learning curve at first (syntax-wise it can be somewhat messy), but
ultimately it's an immensely powerful -- or simple! -- DNS tool.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fxp performance with POLLING

2008-10-07 Thread Joe Koberg

Pete French wrote:

1 megabit = 106 = 1,000,000 bits which is equal to 125,000 bytes.



you are assuming eight bits per byte - but this is a serial line so
you should use ten bits per byte instead.

-pete.
  


That was a rule of thumb in the heyday of async serial lines, which used 
a start and stop bit per byte.


However, ethernet at 100Mbit is 4B5B coded at a 125mhz rate. So the raw 
synchronous data rate really is 12.5Mbytes/s.  Minus the sync preamble 
of 8 bytes per packet and the mandatory inter-frame-gap of 12 bytes 
that's a physical layer rate of (12.5M * (1500/(1500+20))) or 12.34Mbyte/s.


Even in the later days of modems this rule applied less and less, 
because the modulation schemes became synchronous.


Joe Koberg
joe_at_osoft_dot_us


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fxp performance with POLLING

2008-10-07 Thread sthaug
 However, ethernet at 100Mbit is 4B5B coded at a 125mhz rate. So the raw 
 synchronous data rate really is 12.5Mbytes/s.  Minus the sync preamble 
 of 8 bytes per packet and the mandatory inter-frame-gap of 12 bytes 
 that's a physical layer rate of (12.5M * (1500/(1500+20))) or 12.34Mbyte/s.

You need add Ethernet header (14 bytes) + CRC (4 bytes). This means you
have a maximum data rate, assuming 1500 byte MTU, of 12.5M * 1500/1538
= 12.19 Mbyte/s. And for those used to powers of two, M here means one
million, not 1048576.

Steinar Haug, Nethelp consulting, [EMAIL PROTECTED]
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: stable 7.0 and nslookup help command

2008-10-07 Thread Robert Watson


On Tue, 7 Oct 2008, Jeremy Chadwick wrote:

Not to dissuade you from what you're trying to accomplish, but nslookup 
has been deprecated (this has been stated a few times by the BIND folks), 
and host is probably on its way out as well (though I remember somewhere, 
sometime, nslookup used to state being deprecated, use 'host' or 'dig' 
instead -- or something like that).


Please learn to use the dig command.  I realise it has a somewhat high 
learning curve at first (syntax-wise it can be somewhat messy), but 
ultimately it's an immensely powerful -- or simple! -- DNS tool.


Ditto here -- dig requires a bit more understanding of DNS, but is actually a 
much more informative tool when it comes to querying DNS and debugging its 
quirks.


Robert N M Watson
Computer Laboratory
University of Cambridge
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fxp performance with POLLING

2008-10-07 Thread Pete French
 That was a rule of thumb in the heyday of async serial lines, which used 
 a start and stop bit per byte.

 However, ethernet at 100Mbit is 4B5B coded at a 125mhz rate. So the raw 

Errr, 4B5B *is* 10 bits per byte surely?

 Even in the later days of modems this rule applied less and less, 
 because the modulation schemes became synchronous.

Gig ether is mainly 8B10, as is Firewire, SATA, FibreChannel and a
load of others I can't remember off the top of my head. I wouldn't
stay it's a hard and fast rule, but it still gives a better estimate
than dividing by eight which is what people naiively do.

Mind you, it assumes that you know the real bit rate, which in the
case of 100baseT is, as you say, actualy 125mbits/sec.

-pete.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fxp performance with POLLING

2008-10-07 Thread Joe Koberg

Pete French wrote:
However, ethernet at 100Mbit is 4B5B coded at a 125mhz rate. So the raw 



Errr, 4B5B *is* 10 bits per byte surely?
...
Gig ether is mainly 8B10, as is Firewire, SATA, FibreChannel and a

Mind you, it assumes that you know the real bit rate, which in the
case of 100baseT is, as you say, actualy 125mbits/sec.
  


You are right. It definitely is 10 bits per byte clocked at a higher 
rate. I guess the 100mbit/s rate is so strongly associated with the 
technology that I glossed right over that.



Joe






___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [FreeBSD] Fix for ServerWorks HT1000 in upcoming 7.1?

2008-10-07 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Did anyone who can trigger the data corruption has tried John's patch
and let us know if it worked?

Cheers,
- --
Xin LI [EMAIL PROTECTED]  http://www.delphij.net/
FreeBSD - The Power to Serve!
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkjr3mkACgkQi+vbBBjt66CW2gCcC6VaWPA7HE3Pd6CLfa3lkNUz
r0MAnAsQI54d28MdeSOYZCQmFguT9EFV
=xM/C
-END PGP SIGNATURE-
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: stable 7.0 and nslookup help command

2008-10-07 Thread Kevin Oberman
More importantly, dig(1) uses the standard resolver routines while
nslookup has its own. This has, in some cases, resulted in different
results from nslookup than for what the stub resolver returns which can
really lead one down the primrose path when troubleshooting.

I consider nslookup to be evil. host(1) and dig(1) work well and I have
not seen any plans to deprecate host(1). It's just that host is a quick
lookup tool while dig(1) is a serious tool for DNS analysis and testing.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751


pgpbGKvMad46l.pgp
Description: PGP signature


Re: Help me to develop a FreeBSD patch for gcc-4.2.1

2008-10-07 Thread Alexander Kabaev
On Mon, 6 Oct 2008 06:19:34 -0700 (PDT)
Unga [EMAIL PROTECTED] wrote:

 Hi all
 
 I need to patch the gcc original sources to suit the FreeBSD,
 specially to support FreeBSD kernel compilation. I have tried it,
 spent lot of time, but it still develops compilation errors.
 
 The FreeBSD stable comes with gcc-4.2.1 but the sources are scattered
 over the /usr/src, therefore, I find it difficult to re-create the
 gcc-4.2.1 to its original directory layout to make a patch.
 
 I appreciate it very much, if you guys could help me to identify the
 pieces.
 
 Or alternatively, if someone could straight away put the FreeBSD gcc
 sources back to a directory and make a patch compared to the original
 gcc-4.2.1 sources from GNU and post here, I could apply the patch on
 my side and verify it was done correctly, whether I can compile the
 FreeBSD kernel or not.
 
 Many thanks in advance.
 
 Kind regards
 Unga

If you still have CVS tree available, you can do 'cvs diff -rFSF' in
contrib/gcc and apply the patches to files gcc-4.2.1/gcc.

 
-- 
Alexander Kabaev


signature.asc
Description: PGP signature


Re: Help me to develop a FreeBSD patch for gcc-4.2.1

2008-10-07 Thread Unga
--- On Wed, 10/8/08, Alexander Kabaev [EMAIL PROTECTED] wrote:

 
 If you still have CVS tree available, you can do 'cvs
 diff -rFSF' in
 contrib/gcc and apply the patches to files gcc-4.2.1/gcc.
 

Hi Alexander, thanks for the reply.

I'm new to 'cvs diff -rFSF'. I need to do more home work before I try your 
method.

Could you kindly confirm it work for you? after applying the patch, does your 
compilation of gcc complete cleanly? I get errors. Therefore, could you try it 
please.

I'm waiting for your reply.

Best regards
Unga 




  
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Would anybody port DragonFlyBSD's HAMMER fs to FreeBSD?

2008-10-07 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Miroslav Lachman wrote:
[...]
 I have no crash of ZFS, but as I read in mailing lists, there are still
 some problems, so let it be fixed and settle down before porting another
 good filesystem.
 
 Just my €0.02

For the record, pjd@'s previous ZFSv11 snapshot against -CURRENT has
been proven to be very stable on our test environment (FreeBSD/amd64 on
2*4 core with 16GB of RAM box, JBOD 12 disks set up with 5+5 RAIID-Z2, 2
spare).  My hope is that we can see the commit by the end of year so we
will have a couple of months before having it in 7.2-RELEASE.  The
current version in RELENG_7 is also reasonably stable, at very least
better than 7.0-RELEASE.

Cheers,
- --
Xin LI [EMAIL PROTECTED]  http://www.delphij.net/
FreeBSD - The Power to Serve!
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkjsLEsACgkQi+vbBBjt66CgqQCfRVlsfp7XUbv7XckjBNXXLLob
+gUAmwebeOqNHMH2yjo/MC31ngcRMGPb
=96eo
-END PGP SIGNATURE-
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is FreeBSD a suitable choice for a MacBook?

2008-10-07 Thread Andrew Reilly
On Sun, Oct 05, 2008 at 02:10:59AM -0700, Kip Macy wrote:
  You sound as if you just got the machine and haven't given MacOS X a chance.
  Give MacOS X a chance. Download (if its not on your MacOS X install DVD) X
  Code, and Apple X11.
 
 X11 is barely usable under Leopard.

I've heard a few people complain about X11 on Mac, and I wonder
what it is that they're doing that I'm not.  Since my other
systems are all FreeBSD, I use quite a few X11 applications
on my two MacOS laptops (Tiger on PPC, Leopard on intel) The
*only* problem I've ever had with X11 was on Tiger, where every
so often the X11 server couldn't be contacted after coming out
of sleep.  Restarting X11 fixes that with no particular grief.
Under Leopard it's rock solid reliable for my use.

 Apps crash regularly and
 full-screen doesn't work.

Apps in general, or X11 ones?  The only X11 full-screen app that
I can think of is openoffice's presentation thing.  I remember
that working OK, but so did the Java GUI on NeoOffice, and
now I'm using the experimental Aqua version, which also works
properly, as far as I can tell.

 He may simply want to be able to boot in to FreeBSD as well.

Sure.  I've thought about it myself on numerous occasions, but
ultimately I can't think of anything that I could do within
FreeBSD that I can't already do under MacOS.  If I really,
really want a FreeBSD environment, I've got VMWare (which is
currently doing some Debian Linux, which IMO is much more
annoying than either FreeBSD or MacOs, but that's probbly just
my inexperience talking.)

Cheers,

Andrew
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread lhmwzy
The fllow is better?
#!/bin/sh
find $1 -type f -exec ls -lh {} \; | awk '{j += $5} END {print jM}'

2008/10/7 Andrew Snow [EMAIL PROTECTED]:
 I love ZFS, but I suddenly found out last night that I
 have lost the ability tto do a 'du' on a directory to work out if it will
 fit onto a CD or not :-)

 I have created a shell script, /usr/local/bin/dirsize :


 #!/bin/sh
 find $1 -type f -ls | awk '{j += $7} END {print j}'



 Usage: dirsize path

 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]