Re: ZFS V28

2011-04-15 Thread Xin LI

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Leon Meßner wrote:
| On Fri, Apr 15, 2011 at 06:28:07PM +0300, George Kontostanos wrote:
|> I was wondering if ZFS v28 is going to be MFC to 8-Stable or not.
|
| On Fri, Apr 15, 2011 at 06:28:07PM +0300, George Kontostanos wrote:
|> I was wondering if ZFS v28 is going to be MFC to 8-Stable or not.
|
| Is there a recent patch against stable sources ? I tried the following:
|
|
http://people.freebsd.org/~mm/patches/zfs/v28/stable-8-zfsv28-20110317.patch.xz
|
| This patch failes at sys/cddl/compat/opensolaris/sys/sysmacros.h which i
| think should just be deleted. I tried deleting this file and then
| building produces some errors then walls of text and then aborts.
| The first errors look like this:

This file should be removed.  The rejection might be caused by SCM tag
from checkout, which depends on your configuration, and can be safely
ignored.

Cheers,
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAk2o4r0ACgkQOfuToMruuMCQkwCfZZtClSQmciKJt81t79NyyH1k
WgIAn0gJj075PeieFsg6gzpTmG7EDb9O
=CTU7
-END PGP SIGNATURE-
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ZFS V28

2011-04-15 Thread George Kontostanos
I think that at this point it takes more than a patch. That is way I am
asking if there is a plan to MFC to 8-Stable.

On Fri, Apr 15, 2011 at 9:48 PM, Leon Meßner
wrote:

> On Fri, Apr 15, 2011 at 06:28:07PM +0300, George Kontostanos wrote:
> > I was wondering if ZFS v28 is going to be MFC to 8-Stable or not.
>
> On Fri, Apr 15, 2011 at 06:28:07PM +0300, George Kontostanos wrote:
> > I was wondering if ZFS v28 is going to be MFC to 8-Stable or not.
>
> Is there a recent patch against stable sources ? I tried the following:
>
>
> http://people.freebsd.org/~mm/patches/zfs/v28/stable-8-zfsv28-20110317.patch.xz
>
> This patch failes at sys/cddl/compat/opensolaris/sys/sysmacros.h which i
> think should just be deleted. I tried deleting this file and then
> building produces some errors then walls of text and then aborts.
> The first errors look like this:
>
> Script started on Fri Apr 15 18:32:36 2011
> make -j 6 buildworld
> "/usr/share/mk/bsd.prog.mk", line 128: warning: duplicate script for
> target "_EXTRADEPEND" ignored
> "Makefile", line 222: warning: duplicate script for target "clean"
> ignored
> "Makefile", line 222: warning: duplicate script for target "cleandepend"
> ignored
> "Makefile", line 222: warning: duplicate script for target "distribute"
> ignored
> "Makefile", line 222: warning: duplicate script for target "lint"
> ignored
> "Makefile", line 222: warning: duplicate script for target "obj" ignored
> "Makefile", line 222: warning: duplicate script for target "objlink"
> ignored
> "Makefile", line 222: warning: duplicate script for target "tags"
> ignored
> "Makefile", line 222: warning: duplicate script for target "files"
> ignored
> "Makefile", line 222: warning: duplicate script for target "includes"
> ignored
> --
> >>> World build started on Fri Apr 15 18:32:36 UTC 2011
> --
>
> cherio,
> Leon
>
> > Regards,
>



-- 
George Kontostanos
aisecure.net 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Missing serial port after enabling serial console in loader.conf

2011-04-15 Thread John Baldwin
On Friday, April 15, 2011 3:04:49 pm Przemyslaw Frasunek wrote:
> > Hmm, that unknown device is your COM1.  Do you have a copy of your current 
> > dmesg available?  I'm curious if sio0 failed to probe the UAR1 device and 
> > then 
> > later attached to UAR2.
> 
> Sure, this is my non-verbose dmesg: http://www.frasunek.com/tmp/dmesg.txt
> 
> It's from 7.3-RELEASE, but on 7.4 I get the same behaviour.

Hmm, I don't see it even trying to probe the COM1 device.  I'll have to wait
until you get a verbose dmesg to investigate further I'm afraid. :(

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


Re: Missing serial port after enabling serial console in loader.conf

2011-04-15 Thread Przemyslaw Frasunek
> Hmm, that unknown device is your COM1.  Do you have a copy of your current 
> dmesg available?  I'm curious if sio0 failed to probe the UAR1 device and 
> then 
> later attached to UAR2.

Sure, this is my non-verbose dmesg: http://www.frasunek.com/tmp/dmesg.txt

It's from 7.3-RELEASE, but on 7.4 I get the same behaviour.

-- 
* Fido: 2:480/124 ** WWW: http://www.frasunek.com ** NICHDL: PMF9-RIPE *
* Jabber ID: veng...@nette.pl ** PGP ID: 2578FCAD ** HAM-RADIO: SQ5JIV *
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: ZFS V28

2011-04-15 Thread Leon Meßner
On Fri, Apr 15, 2011 at 06:28:07PM +0300, George Kontostanos wrote:
> I was wondering if ZFS v28 is going to be MFC to 8-Stable or not.

On Fri, Apr 15, 2011 at 06:28:07PM +0300, George Kontostanos wrote:
> I was wondering if ZFS v28 is going to be MFC to 8-Stable or not.
 
Is there a recent patch against stable sources ? I tried the following:
 
http://people.freebsd.org/~mm/patches/zfs/v28/stable-8-zfsv28-20110317.patch.xz
 
This patch failes at sys/cddl/compat/opensolaris/sys/sysmacros.h which i
think should just be deleted. I tried deleting this file and then 
building produces some errors then walls of text and then aborts.
The first errors look like this:
 
Script started on Fri Apr 15 18:32:36 2011
make -j 6 buildworld
"/usr/share/mk/bsd.prog.mk", line 128: warning: duplicate script for
target "_EXTRADEPEND" ignored
"Makefile", line 222: warning: duplicate script for target "clean"
ignored
"Makefile", line 222: warning: duplicate script for target "cleandepend"
ignored
"Makefile", line 222: warning: duplicate script for target "distribute"
ignored
"Makefile", line 222: warning: duplicate script for target "lint"
ignored
"Makefile", line 222: warning: duplicate script for target "obj" ignored
"Makefile", line 222: warning: duplicate script for target "objlink"
ignored
"Makefile", line 222: warning: duplicate script for target "tags"
ignored
"Makefile", line 222: warning: duplicate script for target "files"
ignored
"Makefile", line 222: warning: duplicate script for target "includes"
ignored
--
>>> World build started on Fri Apr 15 18:32:36 UTC 2011
--
 
cherio,
Leon

> Regards,
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Missing serial port after enabling serial console in loader.conf

2011-04-15 Thread John Baldwin
On Friday, April 15, 2011 2:31:20 pm Przemyslaw Frasunek wrote:
> > Hmm, can you post the output of 'devinfo -vr' and a verbose dmesg at a 
URL?
> 
> Devinfo output is here: http://www.frasunek.com/tmp/devinfo.txt
> 
> I'll post verbose dmesg after next reboot, which is already scheduled on 
sunday
> morning.

unknown pnpinfo _HID=PNP0501 _UID=1 at handle=\_SB_.PCI0.LPC0.UAR1
sio0 pnpinfo _HID=PNP0501 _UID=2 at handle=\_SB_.PCI0.LPC0.UAR2
Interrupt request lines:
3
I/O ports:
0x2f8-0x2ff

Hmm, that unknown device is your COM1.  Do you have a copy of your current 
dmesg available?  I'm curious if sio0 failed to probe the UAR1 device and then 
later attached to UAR2.

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


Re: Missing serial port after enabling serial console in loader.conf

2011-04-15 Thread Przemyslaw Frasunek
> Hmm, can you post the output of 'devinfo -vr' and a verbose dmesg at a URL?

Devinfo output is here: http://www.frasunek.com/tmp/devinfo.txt

I'll post verbose dmesg after next reboot, which is already scheduled on sunday
morning.

-- 
* Fido: 2:480/124 ** WWW: http://www.frasunek.com ** NICHDL: PMF9-RIPE *
* Jabber ID: veng...@nette.pl ** PGP ID: 2578FCAD ** HAM-RADIO: SQ5JIV *
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Missing serial port after enabling serial console in loader.conf

2011-04-15 Thread John Baldwin
On Friday, April 15, 2011 1:03:03 pm Przemyslaw Frasunek wrote:
> >> sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on
> >> acpi0
> >> sio0: type 16550A, console
> >> sio0: [FILTER]
> > Do you have any hints for sio* in /boot/device.hints?
> 
> My /boot/device.hints are unmodified:
> 
> [root@kalina-gw ~]# grep sio /boot/device.hints
> hint.sio.0.at="isa"
> hint.sio.0.port="0x3F8"
> hint.sio.0.flags="0x10"
> hint.sio.0.irq="4"
> hint.sio.1.at="isa"
> hint.sio.1.port="0x2F8"
> hint.sio.1.irq="3"
> hint.sio.2.at="isa"
> hint.sio.2.disabled="1"
> hint.sio.2.port="0x3E8"
> hint.sio.2.irq="5"
> hint.sio.3.at="isa"
> hint.sio.3.disabled="1"
> hint.sio.3.port="0x2E8"
> hint.sio.3.irq="9"

Hmm, can you post the output of 'devinfo -vr' and a verbose dmesg at a URL?

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


Re: conf/156396: Make 220.backup-pkgdb cd(1) and backup only the package database.

2011-04-15 Thread Doug Barton

On 04/15/2011 02:30, J. Hellenthal wrote:

PS: The PR says this was committed... It was not AFAIK.


I committed the script itself, which is why I picked up the PR.

This is an excellent example of a bikeshed issue since it's something 
simple enough that everyone feels qualified to offer an opinion on. And 
yet, there is no actual problem here. As I said when I closed the PR, 
using the full path is the safest, most conservative option, and there 
is no reason to do otherwise. Let's move on.



Doug

--

Nothin' ever doesn't change, but nothin' changes much.
-- OK Go

Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price.  :)  http://SupersetSolutions.com/

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Missing serial port after enabling serial console in loader.conf

2011-04-15 Thread Przemyslaw Frasunek
>> sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on
>> acpi0
>> sio0: type 16550A, console
>> sio0: [FILTER]
> Do you have any hints for sio* in /boot/device.hints?

My /boot/device.hints are unmodified:

[root@kalina-gw ~]# grep sio /boot/device.hints
hint.sio.0.at="isa"
hint.sio.0.port="0x3F8"
hint.sio.0.flags="0x10"
hint.sio.0.irq="4"
hint.sio.1.at="isa"
hint.sio.1.port="0x2F8"
hint.sio.1.irq="3"
hint.sio.2.at="isa"
hint.sio.2.disabled="1"
hint.sio.2.port="0x3E8"
hint.sio.2.irq="5"
hint.sio.3.at="isa"
hint.sio.3.disabled="1"
hint.sio.3.port="0x2E8"
hint.sio.3.irq="9"

-- 
* Fido: 2:480/124 ** WWW: http://www.frasunek.com ** NICHDL: PMF9-RIPE *
* Jabber ID: veng...@nette.pl ** PGP ID: 2578FCAD ** HAM-RADIO: SQ5JIV *
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Missing serial port after enabling serial console in loader.conf

2011-04-15 Thread John Baldwin
On Tuesday, April 12, 2011 7:08:22 pm Jeremy Chadwick wrote:
> On Tue, Apr 12, 2011 at 11:13:06PM +0200, Pawel Tyll wrote:
> > >> P.S. -- What's "BMC" stand for?
> > > Baseband Management Controller.  It's the separate NIC (sometimes it's
> > > piggy-backed on a NIC) used for remote management of motherboards.
> > > Usually includes IPMI support.  Depending on the motherboard, it may
> > > even include support for keyboard/video/mouse redirection and
> > > serial-over-lan and all that other remote management stuff.
> >
> > Actually, the board in reference has built-in BMC; it's IPMI managed
> > and when properly configured it allows user to ssh to its IP and
> > access things like SOL, chassis power control and other IPMI things
> > without any IPMI clients. As to video redirection, there's addon for
> > that, built-in BMC doesn't have anything that fancy. And on point, I
> > was having similar problems with these boards some time ago, but it
> > seems it has been fixed somewhere between 8.1 and 8.2.
> 
> If I remember correctly from following commits, there were changes to
> the boot loader pertaining to serial port initialisation.  I think I
> remember something about certain control bits being set/reset when they
> should have been masked out (left alone).
> 
> As I understand it, the serial console capabilities on FreeBSD are
> tested predominantly with motherboards that have on-board serial ports.
> That is to say, systems with classic/legacy DB9 ports on the board
> itself and not via IPMI or out-of-band management modules (re: BMC).
> So, one should not be too surprised that there may be "oddities" seen
> with those.
> 
> I imagine that UART enumeration/initialisation might differ on such
> modules, so this sort of problem doesn't surprise me much.  Marcel
> Moolenaar (author of uart(4)) probably has better insights.

It may be the issue with ACPI enumerating the ports backwards which 8 handles 
by matching hinted devices based on resources.  That has nothing to do with 
either sio(4) or uart(4) if so.

The BMC port usually uses the resources from COM2 by default which our default 
hints assign to sio1/uart1.

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


Re: Missing serial port after enabling serial console in loader.conf

2011-04-15 Thread John Baldwin
On Tuesday, April 12, 2011 3:35:11 pm Przemyslaw Frasunek wrote:
> Hello,
> 
> I'm struggling with enabling serial console on Intel SR1630GP server
> platform and FreeBSD 7.4.
> 
> In default configuration, my serial ports are detected correctly:
> 
> sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
> acpi0
> sio0: type 16550A
> sio0: [FILTER]
> sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
> sio1: type 16550A
> sio1: [FILTER]
> 
> Both serial ports are usable - sio0 is redirected to BMC and sio1 is a
> physical port. I can use getty on both ports.
> 
> If I put following statements in /boot/loader.conf:
> 
> boot_multicons="YES"
> boot_serial="YES"
> console="comconsole,vidconsole"

You should just need the one 'console=' line.  I tend to put '-Dh' in 
/boot.config myself to get the boot2 prompt as well.

> I have correct output on serial console from loader and booting kernel,
> however after kernel is booted, the port is missing. Dmesg shows, that
> only one port is being detected, which formerly was sio1:
> 
> sio0: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on
> acpi0
> sio0: type 16550A, console
> sio0: [FILTER]
> 
> Thus, I'm unable to run getty.
> 
> I belive that this issue might be related to ACPI, as similar problem
> was already reported in http://markmail.org/message/chu6ilwhsxtarkfm
> 
> Is there any solution to this problem?

Do you have any hints for sio* in /boot/device.hints?

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


ZFS V28

2011-04-15 Thread George Kontostanos
I was wondering if ZFS v28 is going to be MFC to 8-Stable or not.

Regards,

-- 
George Kontostanos
aisecure.net 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: conf/156396: Make 220.backup-pkgdb cd(1) and backup only the package database.

2011-04-15 Thread J. Hellenthal
On Fri, Apr 15, 2011 at 12:57:15PM +0400, Pan Tsu wrote:
>"J. Hellenthal"  writes:
>
>[...]
>> @@ -33,7 +33,8 @@
>>  
>>  new_bak_file=`mktemp ${bak_file}-X`
>>  
>> -if tar -cjf "${new_bak_file}" "$pkg_dbdir"; then
>> +cd $pkg_dbdir/..
>> +if tar -cjf "${new_bak_file}" "$(basename $pkg_dbdir)"; then
>
>Why not use `-s' (substitution) option of bsdtar(1)?
>
>  if tar -cjf "${new_bak_file}" -s "|$pkg_dbdir||" "$pkg_dbdir"; then
>
>$(basename $pkg_dbdir) is technically wrong as PKG_DBDIR points not to
>/var/db but to /var/db/pkg by default and is not guaranteed to contain
>`pkg' at the tail, e.g.

I think you misunderstood how this works. You should test it...

With a pkg_dbdir pointing to /var/db/pkg basename strips off "/var/db/".
The cd(1) you notice before that line makes sure your in the directory
just before the actual pkg_dbdir so therefore calling tar on $(basename
$pkg_dbdir) tar's up only the actual name of the 'pkg' directory and not
the path before it.

I suppose this could also be achieved simply by:

tar -C $pkg_dbdir/.. -cjf "${new_bak_file}" "$(basename $pkg_dbdir)"

which is equivalent to:

tar -C /var/db/pkg/.. -cvjf /tmp/foo.tbz `basename /var/db/pkg`

'-v' added for show.

But I don't think the author is willing to take any improvements and has
the wrong impression of why the '/..' is where it is and how that
suffices for the same motive behind archiving a direct path.


PS: The PR says this was committed... It was not AFAIK.


-- 

 Regards,

 J. Hellenthal



pgpe6VAW3ejRr.pgp
Description: PGP signature


Re: conf/156396: Make 220.backup-pkgdb cd(1) and backup only the package database.

2011-04-15 Thread Pan Tsu
"J. Hellenthal"  writes:

[...]
> @@ -33,7 +33,8 @@
>  
>   new_bak_file=`mktemp ${bak_file}-X`
>  
> - if tar -cjf "${new_bak_file}" "$pkg_dbdir"; then
> + cd $pkg_dbdir/..
> + if tar -cjf "${new_bak_file}" "$(basename $pkg_dbdir)"; then

Why not use `-s' (substitution) option of bsdtar(1)?

  if tar -cjf "${new_bak_file}" -s "|$pkg_dbdir||" "$pkg_dbdir"; then

$(basename $pkg_dbdir) is technically wrong as PKG_DBDIR points not to
/var/db but to /var/db/pkg by default and is not guaranteed to contain
`pkg' at the tail, e.g.

  PKG_DBDIR is /foo, so /var/backups/pkgdb.bak.tbz-XXX has foo/ prefix
  PKG_DBDIR is /blah/bar, so /var/backups/pkgdb.bak.tbz-YYY has bar/ prefix

It only adds one more hoop to jump through when restoring from backup, e.g.

  tar xf /var/backups/pkgdb.bak.tbz-XXX --strip-components 1 -C $PKG_DBDIR ...
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"