Re: setting up crypto softraid

2010-07-30 Thread Daniele Pilenga
Hi,

On Fri, Jul 30, 2010 at 7:28 AM, Jan Stary h...@stare.cz wrote:
 On Jul 29 23:03:18, Tomas Vavrys wrote:
 Or you can try this, also in /etc/rc.

 That's not what I meant. I don't want to tweak /etc/rc itse;f.
 What I was asking is whether there are variables I could set
 in rc.conf.local, as with other features.

 Probably not, so I will continue using my tiny scripts.

Without touching rc, I use this tiny bits in rc.securelevel:

for TRY in 1 2 3; do
bioctl -c C -l /dev/sd0m softraid0
if [ $? -eq 0 ]; then
DRIVE=$( expr $(sysctl -n
hw.sensors.softraid0.drive0) : 'online (\(sd[0-9]\)), OK' )
fsck -p /dev/${DRIVE}d \
 mount -o softdep /dev/${DRIVE}d /home
break
fi
done

Ciao,
D.



Re: Buying ThinkPad for OpenBSD

2010-03-20 Thread Daniele Pilenga
On Sat, Mar 20, 2010 at 1:52 AM, James Hozier guitars...@yahoo.com wrote:
 I'm buying a new laptop specifically for OpenBSD but I want to make sure
 everything is compatible first. Has anyone ever purchased the
 ThinkPad T410?

 CPU: Intel Core i7-620M Processor (2.66GHz, 4MB L3, 1066MHz FSB)

I have a Dell Studio 1558 with Core i5:

[...]
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 2394.46 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 132MHz
[...]
cpu0: unknown i686 model 0x25, can't get bus clock
cpu0: EST: PSS not yet available for this processor

It works just fine, but the speedstep is not supported (yet) and after
few minutes of use the fan starts spinning.


 Screen: 14.1 WXGA+ TFT, w/ LED Backlight (WWAN antenna)
 Graphics (avoiding nVidia): Intel Graphics Media Accelerator HD - AMT

Don't be so sure about Intel graphics, I have been said not all of the
GMA types are supported (I think intel(4) is your friend, here).

 RAM: 4 GB PC3-8500 DDR3 SDRAM 1067MHz SODIMM Memory (2 DIMM)
 HDD: 128 GB Solid State Drive, Serial ATA
 DVD Recordable 8x Max Dual Layer, Ultrabay Slim (Serial ATA)
 Wireless: Intel Centrino Ultimate-N 6300 (3x3 AGN)

Mine is a

iwn0 at pci3 dev 0 function 0 Intel Centrino Advanced-N 6200 rev
0x35: apic 2 int 17 (irq 7), MIMO 2T2R, MoW, address 00:23:14:13:b8:00

and works fine. No N speed for now.

 My main concerns are compatibility issues with wireless (I'll probably
 just use G, not N). I'm pretty sure Intel as the graphics is fine and I
 think I've heard OpenBSD has SSD support. Everything else should basically
 be good, right?

As someone suggested, if you can try out a simple usb boot, before
purchase, by all means do.

HTH.

Ciao,
D.



Re: current on HP EliteBook 8530w

2010-02-11 Thread Daniele Pilenga
Hi,

On Thu, Feb 11, 2010 at 11:34 AM, Jan Stary h...@stare.cz wrote:

[...]
 It worked for a while, but recently, having acpiec enabled
 (with the patch above) results in

 acpitz0 at acpi0: critical temperature 115 degC
 acpitz1 at acpi0: critical temperature 105 degC
 acpitz2 at acpi0: critical temperature 112 degC
 acpitz3 at acpi0: critical temperature 112 degC
 acpitz4 at acpi0: critical temperature 90 degC
 acpitz5 at acpi0: critical temperature 112 degC

 Sorry. These messages are always there and probably describe
 the temperatures _considered_ to be critical. Right?

I had the same doubt some time ago, but you are right, these are the
temperature limits.

 What it actually says on boot is

acpitz2: Critical temperature, shutting down.

 I don't think there's anything hotter than 112C while the machine boots.

 With acpiec disabled, the above does not happen and sysctl hw.sensors
 reports reasonable temperatures; the systme runs fine (except acpibat
 and others are confused).

I had, with my previous HP nw9440 notebook, the same problem with
those sensors, but not always.
And more often when the machine was first started, almost never on
reboots. I think there is something inside that needs to settle down
before the readings make sense. I saw -2000 degrees on one of them,
one time. :-)

If I waited a few minutes (sometime even a few seconds), pausing in
rc.securelevel at the softraid password prompt I scripted, the problem
solved itself.

You could try putting some sleep xxx inside rc.securelevel and see if
the messages continue to pop up on the console or stop. The system
does not shut itself down until the boot is over.

HTH.

Ciao,
D.



Re: way to help: laptops and weekly

2010-02-02 Thread Daniele Pilenga
Hi,

On Tue, Feb 2, 2010 at 1:08 AM, Ingo Schwarze schwa...@usta.de wrote:
[...]
 Some time ago, we discussed a potential maintenance(8) utility
 and decided to postpone the idea until we find more uses.
 Right here, maintenance(8) might help:

  1. At 1:30 AM daily,
run maintenance without any arguments, which will
 - run daily(8) unless it ran today
 - run security(8)  in any case
 - run weekly(8)unless it ran this week
 - run monthly(8)   unless it ran this month

I very like the idea of your maintenance, just wanted to add a
thought: for all the people that don't use their pcs so many hours
every day, how about counting the uptime (and saving its value at
shutdown) so that daily is run every 24 hours _of_use_, and so on
for the others?

One doesn't need a locate rebuild every week if he didn't use the system,
right?

My 2 eurocents. :-)

Ciao,
D.



Re: Dell Studio 1558

2010-02-02 Thread Daniele Pilenga
On Tue, Feb 2, 2010 at 1:20 PM,  damien.bergam...@free.fr wrote:
 Hi,

 ...
 | - Network wired and wireless both work.
 ...
 | iwn0 at pci3 dev 0 function 0 Intel WiFi Link 6000 rev 0x35: apic 2
 | int 17 (irq 7), MIMO 2T2R, MoW, address 00:23:14:13:b8:00

 It is the first time I see a dmesg with a Centrino Advanced-N 6200 :-)

I chose _specifically_ this type of wireless network, as the default
Dell 13xx was too nebulous to bet on.

 Have you tried to associate with an access point and transfer data
 over it, or are you saying that it works just because it is detected?

No, no, it works! I use it every time at home; so far no problem, but
I couldn't say I have done so many transfers.

 If it really works, then that's great news!

Thanks to you and to the other developers. Making these things work
based on simple (!) documentation is amazing!

Ciao,
D.



Re: Dell Studio 1558

2010-02-01 Thread Daniele Pilenga
On Mon, Feb 1, 2010 at 4:32 PM, Robert rob...@openbsd.pap.st wrote:
 On Mon, 1 Feb 2010 15:43:30 +0100
 Daniele Pilenga dpile...@gmail.com wrote:

 Is there something I could do to help improve support for this
 machine?

 disclaimer: i am not a dev!

 Looks like your system needs some love in the acpi department.
 It would help if you made the output from acpidump available.
 (Host a tgz of it somewhere, as i am not sure who would want/need it
 mailed, and post the link in a reply to your mail.)

I left that out because I thought it could be asked for, if needed. Here it is:
http://213.254.212.197/upload/acpidump_studio1558.tar.gz

I think the output is partial because acpidump exists with acpidump:
strange opcode 0xe.

 cpu0: unknown i686 model 0x25, can't get bus clock
 cpu0: EST: PSS not yet available for this processor

 i5 has a new identifier that is not yet matched by est.
 below is a patch to add that code, but no gurantee that it will be
 enough to make it work, as i didn't check the intel specs.

I tried this but it dumps. I could hand-copy the message if it could
be of any help.

Thank you, Robert.

Ciao,
D.



Re: Azalia problem: no sound

2010-01-31 Thread Daniele Pilenga
On Sat, Jan 30, 2010 at 12:51 AM, Jacob Meuser jake...@sdf.lonestar.orgwrote:

 On Fri, Jan 29, 2010 at 09:01:01PM +0100, Daniele Pilenga wrote:
  Hi,
  I've got this new Dell Studio 1558 that is not entirely supported right
 now.
 
  One of the problems I have is the audio. It seems to be handled right,
 but I
  can't hear a thing, I tried some combination with mixerctl to no avail.
 
  Any ideas?

 does this fix it?


Thank you Jacob,  this patch indeed fixes it. That was quick! :-)

Ciao,
D.



Re: /etc/localtime, date and other programs

2010-01-29 Thread Daniele Pilenga
On Fri, Jan 29, 2010 at 3:06 PM, Stuart Henderson s...@spacehopper.orgwrote:

 On 2010-01-28, Otto Moerbeek o...@drijf.net wrote:
  On Thu, Jan 28, 2010 at 04:58:41PM +0100, Daniele Pilenga wrote:
 
  On Thu, Jan 28, 2010 at 4:39 PM, frantisek holop min...@obiit.org
 wrote:
 
   hi there,
  
   $ ls -l /etc/localtime
   lrwxr-xr-x  1 root  wheel  36 Jan 28 16:34 /etc/localtime@ -
   /usr/share/zoneinfo/Europe/Amsterdam
  
 
  Have you tried *copying* the file over? That's how the installer does
 it.
 
  Ciao,
  D.
 
  You are mistaken. The installer symlinks.

 ...and indeed, copying is the wrong way to do it, because the
 timezone file that's actually used won't be updated when DST dates
 change.


Thank you Stuart, I have corrected my configuration. One never stops
learning... :-)

Ciao,
D.



Azalia problem: no sound

2010-01-29 Thread Daniele Pilenga
Hi,
I've got this new Dell Studio 1558 that is not entirely supported right now.

One of the problems I have is the audio. It seems to be handled right, but I
can't hear a thing, I tried some combination with mixerctl to no avail.

Any ideas?

Thank you.

# dmesg # -current of today
OpenBSD 4.7-beta (GENERIC.MP) #0: Fri Jan 29 09:15:03 CET 2010
r...@stag.home:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3207479296 (3058MB)
avail mem = 3114713088 (2970MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf09e0 (53 entries)
bios0: vendor Dell Inc. version A02 date 12/23/2009
bios0: Dell Inc. Studio 1558
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET MCFG APIC BOOT SLIC OSFR SSDT
acpi0: wakeup devices P0P2(S4) P0P1(S4) EHC1(S3) PXSX(S4) RP01(S4) PXSX(S4)
RP02(S4) PXSX(S4) RP04(S3) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) LID0(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 2394.37 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 4 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 2394.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 2394.00 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 2394.00 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (P0P2)
acpiprt2 at acpi0: bus 10 (P0P1)
acpiprt3 at acpi0: bus 3 (RP01)
acpiprt4 at acpi0: bus 4 (RP02)
acpiprt5 at acpi0: bus 5 (RP04)
acpiprt6 at acpi0: bus 7 (RP05)
acpiprt7 at acpi0: bus 9 (RP06)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: FN00
acpipwrres1 at acpi0: FN01
acpitz0 at acpi0: critical temperature 100 degC
acpitz1 at acpi0acpitz1: TZ01: failed to read _TMP
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model Dell serial 40905 type LION oem SDI
acpivideo0 at acpi0: M86_
acpivout0 at acpivideo0: CRT_
acpivout1 at acpivideo0: LCD_
acpivout2 at acpivideo0: HDTV
acpivideo1 at acpi0: GFX0
cpu0: unknown i686 model 0x25, can't get bus clock
cpu0: EST: PSS not yet available for this processor
pci0 at mainbus0 bus 0
mem address conflict 0xf0b04000/0x1000
pchb0 at pci0 dev 0 function 0 vendor Intel, unknown product 0x0044 rev
0x12
ppb0 at pci0 dev 1 function 0 vendor Intel, unknown product 0x0045 rev
0x12: apic 2 int 16 (irq 5)
pci1 at ppb0 bus 2
vga1 at pci1 dev 0 function 0 ATI Mobility Radeon HD 4500 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci1 dev 0 function 1 ATI Radeon HD 4000 HD Audio rev 0x00:
apic 2 int 17 (irq 7)
azalia0: no supported codecs
azalia0: initialization failure, detaching
vendor Intel, unknown product 0x3b64 (class communications subclass
miscellaneous, rev 0x06) at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 Intel 3400 USB rev 0x06: apic 2 int 16
(irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia1 at pci0 dev 27 function 0 Intel 3400 HD Audio rev 0x06: apic 2 int
22 (irq 11)
azalia1: codecs: IDT 92HD73C1
audio0 at azalia1
ppb1 at pci0 dev 28 function 0 Intel 3400 PCIE rev 0x06: apic 2 int 16
(irq 7)
pci2 at ppb1 bus 3
ppb2 at pci0 dev 28 function 1 Intel 3400 PCIE rev 0x06: apic 2 int 17
(irq 5)
pci3 at ppb2 bus 4
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 6000 rev 0x35: apic 2 int 17
(irq 7), MIMO 2T2R, MoW, address 00:23:14:13:b8:00
ppb3 at pci0 dev 28 function 3 Intel 3400 PCIE rev 0x06: apic 2 int 19
(irq 10)
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 Intel 3400 PCIE rev 0x06: apic 2 int 16
(irq 7)
pci5 at ppb4 bus 7
sdhc0 at pci5 dev 0 function 0 Ricoh 5U822 SD/MMC rev 0x01: apic 2 int 16
(irq 5)
sdmmc0 at sdhc0
Ricoh 5U230 

Re: [4.6-stable] /etc/daily: Null message body; hope that's ok

2010-01-26 Thread Daniele Pilenga
On Tue, Jan 26, 2010 at 3:46 PM, L. V. Lammert l...@omnitec.net wrote:

 At 02:37 PM 1/26/2010 +, Helmut Schneider wrote:

  I thought I had fat-fingered something with sysmerge, but I
  re-extracted /etc/daily and compared, and there were no differences.

 Same here, I upgraded from 4.5-stable and sysmerged a few times.


 I get one on a clean install, .. have not had time to troubleshoot. Does
 this qualify as a bug g?

Lee



I think you need to redo your root's cron:

 # do daily/weekly/monthly maintenance
30  1   *   *   *   /bin/sh /etc/daily
30  3   *   *   6   /bin/sh /etc/weekly
30  5   1   *   *   /bin/sh /etc/monthly

This changed a while back in -current.

Ciao,
D.



Re: how do I do a rename(1) ?

2010-01-16 Thread Daniele Pilenga
On Sat, Jan 16, 2010 at 2:17 PM, Han Boetes h...@mijncomputer.nl wrote:
 Christopher Zimmermann wrote:
 I'm missing the http://linux.die.net/man/1/rename command in
 OpenBSD.

I found this some time ago, very handy:

http://snipplr.com/view/2677/rename--larry-walls-filename-fixer/

HTH.

Ciao,
D.



USB mass storage performance problems with -current

2010-01-13 Thread Daniele Pilenga
Hello misc,

it's about some time now that I use an external USB drive as my
primary boot drive with OpenBSD, but I'm not satisfied with the
performances as I couldn't get over 10-12MB/s.

I don't think this to be a problem with the hardware as I have the
same issue with different pc/drives as well as better performance with
different OS.

I searched through the man pages as well as the mail archives and the
internet, but couldn't find any clues explaining me if I'm doing
something wrong.

Any ideas?

Thank you.
Ciao,
D.

ps. Here are the two systems' dmesgs, updated a few hours before build time.

# First system: HP Compaq nw9440 #

OpenBSD 4.6-current (GENERIC.MP) #13: Tue Jan 12 21:32:50 CET 2010
r...@stag.home:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2600 @ 2.16GHz (GenuineIntel 686-class) 2.17 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR
real mem  = 3623251968 (3455MB)
avail mem = 3525091328 (3361MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/05/08, BIOS32 rev. 0 @
0xf, SMBIOS rev. 2.4 @ 0xf3b77 (23 entries)
bios0: vendor Hewlett-Packard version 68YAF Ver. F.1C date 03/05/2008
bios0: Hewlett-Packard HP Compaq nw9440 (EY314EA#ABZ)
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SLIC HPET APIC MCFG TCPA SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices C09A(S5) C0F9(S3) C0FA(S3) C0FB(S3) C0FC(S3)
C103(S0) C22D(S0) C113(S5) C238(S5) C119(S5) C239(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2600 @ 2.16GHz (GenuineIntel 686-class) 2.17 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpiprt0 at acpi0: bus 1 (C085)
acpiprt1 at acpi0: bus 2 (C09A)
acpiprt2 at acpi0: bus 8 (C103)
acpiprt3 at acpi0: bus 16 (C113)
acpiprt4 at acpi0: bus 32 (C119)
acpiprt5 at acpi0: bus 0 (C003)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
acpipwrres0 at acpi0: C1F8
acpipwrres1 at acpi0: C207
acpipwrres2 at acpi0: C224
acpipwrres3 at acpi0: C22C
acpipwrres4 at acpi0: C334
acpipwrres5 at acpi0: C335
acpipwrres6 at acpi0: C336
acpipwrres7 at acpi0: C337
acpipwrres8 at acpi0: C338
acpipwrres9 at acpi0: C339
acpipwrres10 at acpi0: C33A
acpipwrres11 at acpi0: C33B
acpipwrres12 at acpi0: C33C
acpipwrres13 at acpi0: C33D
acpipwrres14 at acpi0: C33E
acpitz0 at acpi0: critical temperature 256 degC
acpitz1 at acpi0: critical temperature 102 degC
acpitz2 at acpi0: critical temperature 110 degC
acpitz3 at acpi0: critical temperature 105 degC
acpitz4 at acpi0: critical temperature 102 degC
acpitz5 at acpi0: critical temperature 110 degC
acpibat0 at acpi0: C1C5 model Primary serial 06762 2006/04/24 type
LIon oem Hewlett-Packard
acpibat1 at acpi0: C1C4 not present
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: C24D
acpibtn1 at acpi0: C245
acpivideo0 at acpi0: C130
acpivout0 at acpivideo0: C14B
acpivout1 at acpivideo0: C14C
acpivout2 at acpivideo0: C14F
acpivout3 at acpivideo0: C150
bios0: ROM list: 0xc/0xdc00 0xd/0x1000 0xd1000/0x1800
cpu0: Enhanced SpeedStep 2162 MHz: speeds: 2167, 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor NVIDIA, unknown product 0x029b rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01:
apic 1 int 16 (irq 10)
azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using
Analog Devices AD1981HD
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 1
int 16 (irq 10)
pci2 at ppb1 bus 8
bge0 at pci2 dev 0 function 0 Broadcom BCM5753M rev 0x21, BCM5750 C1
(0x4201): apic 1 int 16 (irq 10), address 00:16:d4:0c:fc:f0
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 1
int 17 (irq 10)
pci3 at ppb2 bus 16
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02:
apic 1 int 17 (irq 10), MoW2, address 00:13:02:51:af:9d
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 1
int 19 (irq 5)
pci4 at ppb3 bus 32
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 1
int 20 (irq 10)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 1
int 22 (irq 11)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: 

Asus 1201HA anyone?

2009-12-28 Thread Daniele Pilenga
Hi,
I was looking at the specs of the new Asus and it seams very
appealing, but I didn't have any occasion to try it out.

Does anyone have it? How does it work with OpenBSD (-current, of course)?

I was looking at the HA model, as the N one, though more powerful, is
NVidia ION...

Thank you,
D.



Re: Asus 1201HA anyone?

2009-12-28 Thread Daniele Pilenga
On Mon, Dec 28, 2009 at 5:58 PM, Ted Unangst ted.unan...@gmail.com wrote:
 On Mon, Dec 28, 2009 at 11:26 AM, Daniele Pilenga dpile...@gmail.com wrote:
 I was looking at the specs of the new Asus and it seams very
 appealing, but I didn't have any occasion to try it out.

 Does anyone have it? How does it work with OpenBSD (-current, of course)?

 It uses GMA 500 graphics, which is apparently unsupported.

Thank you, Ted. I was most worried by the wifi, bt, etc and didn't
think of the video chipset...

So sad.. :-\

Ciao,
D.



Re: changing network configuration at different places

2009-11-30 Thread Daniele Pilenga
On Mon, Nov 30, 2009 at 9:16 PM, Moritz Herrmann
herrmann.mor...@gmail.com wrote:
 Hello misc,
 I am using OBSD on my Laptop and as I use internet
 connections at different places (home, work, university),
 I always have to change my ip-adress and default route after startup.

I had the same problem and as I'm not in charge of the dhcp server anymore
(for a static assignment), I used a feature of dhclient(8): static leases.

In my dhclient.conf(5) I have this:

lease {
  fixed-address 172.16.123.222;
  option subnet-mask 255.255.255.0;
  option routers 172.16.123.1;
  option domain-name-servers 172.16.1.1;
  option domain-name example.com;
  renew 0 2012/12/31 23:59:59;
  rebind 0 2012/12/31 23:59:59;
  expire 0 2012/12/31 23:59:59;
}

This way, when I am in the 172.16.123/24 subnet, without a dhcp server
(or with a
reject clause in dhclient.conf), dhclient tries this lease and, if
it works, it is used.

You can have one for every network you connect to. Of course it is
simpler if those
network do not share the same characteristics... :-)

HTH.

Ciao,
D.



Re: Odd CARP issue with 4.6

2009-11-26 Thread Daniele Pilenga
On Thu, Nov 26, 2009 at 7:52 AM, Michiel van Baak mich...@vanbaak.info
wrote:
 On 17:21, Wed 25 Nov 09, Derek Buttineau wrote:
 I'm having a really odd issue, and not sure quite how best to explain it.

 As far as I know my setup was working fine with 4.5, and the failover
itself
 still works without a hitch, it just  doesn't seem to want to fail back
 anymore.

May that have anything to do with this?

   # ifconfig -g carp
   carp: carp demote count 0

Ciao,
D.



Re: 4.6 arriving

2009-10-15 Thread Daniele Pilenga
On Thu, Oct 15, 2009 at 11:05 AM, Mauro Rezzonico l...@ch23.org wrote:
 The CD set showed up today
 Thu Oct 15 11:04:39 CEST 2009
 near Como, Italy, Europe.

And in Milan, Italy.

Thank you guys!
D.



Re: Delete packages with dependencies

2009-08-05 Thread Daniele Pilenga
On Tue, Aug 04, 2009 at 11:11:17AM -0400, Luis Useche wrote:
 Hello Guys,

 I was wondering if there is some tool that delete the packages
 specified along with their deletable dependencies. Deletable means
 packages that pkg_add added automatically (as dependencies of the
 installed one) and are not dependency of another package. This will
 ensure (in most of the cases) that you don't end up with a system with
 unnecessary packages.

 I couldn't find in pkg_delete(1) any option that implements the
 previous semantic.

I have this script:

--8
#!/bin/sh

pkg_info -t \
| gawk '! /^(bzip2|gawk|net-snmp|rsync|screen|tree|vim)/ {print
pkg_delete $1}'
--8

If I run it, I have a series of pkg_delete commands to remove all the
leaf packages
not excluded by the regular expression. If I see something I know I
want to keep I
modify the RE and re-run it. When I am satisfied a simple | sh at
the end cleans
the system up. Repeat until you see no more output.

HTH,
D.



Re: Booting from softraid

2009-05-12 Thread Daniele Pilenga
On Tue, May 12, 2009 at 12:47 PM, Stefan Unterweger
stefan+open...@rg-me.it wrote:
 I've recently started playing around with the softraid(4) driver, as I
 recently noticed that bsd.rd already comes with support for it. What I
 want to accomplish is to place as much as possible into the RAID set
 (RAID 1, of course), ideally (almost) booting from it.

[...]

 Now, what I want to ask: Is there a way to somehow force the root
 device of my choice into the kernel, e.g. ` la config(8)? Or is there
 maybe a way of specifying it into a boot.conf-stub placed into my
 boot-slice? Or am I simply wasting my time and should stick to a root
 *outside* the RAID-set which daily mirroring into /altroot?

You can force the root device in your kernel config file, see
config(8) and search for /config bsd/.
I don't think you could do that without recompiling, though.

HTH,
D.



Re: automaticaly mount/umount encrypted $HOME or ...

2009-04-29 Thread Daniele Pilenga
On Tue, Apr 28, 2009 at 9:18 PM, Timo Myyrd timo.my...@gmail.com wrote:
 I encrypted my $HOME with bioctl and just put the 'bioctl -c C -l /dev/sd0g
 softraid0' line to my /etc/rc. Simple and working solution although it
needs
 a little bit tweaking as currently I get dropped to single user mode if I
 misstype my passphrase.  This happens quite easily as I use dvorak layout
 that isn't loaded once the passphrase is prompted.

Maybe this one of mine can be of help:

##
echo Configuring /home
TRY=3
while [ $TRY -gt 0 ]; do
bioctl -c C -l /dev/sd0f softraid0
if [ $? -eq 0 ]; then
fsck -p /dev/sd1c \
 mount -o softdep /dev/sd1c /home
break
fi
let TRY=TRY-1
done
##

I've put this in rc.securelevel.

Ciao,
D.



Re: Easiest Way to Encrypt /home

2009-04-15 Thread Daniele Pilenga
On Wed, Apr 15, 2009 at 9:06 AM, Raimo Niskanen
raimo+open...@erix.ericsson.se wrote:
 On Tue, Apr 14, 2009 at 01:51:59PM -0700, new_guy wrote:
 I've begun using OpenBSD on portable computers/laptops. I want to guard
 against theft. I can't stand the thought of some crook pawing my laptop and
 someone looking over my personal files... pictures of my family, my taxes,
 etc... it keeps me awake at night.

 I set the option to configure swap in sysctl.conf and I'd like to now
 encrypt /home (where I keep all of my personal files). I've googled, but
 nothing clear comes up. I'm using 4.5 current on an Asus eeepc 701 (the
 original one). I can reinstall and re-partition if necessary, but I'd rather
 not compile a custom kernel... any tips?

 Besides mount_vnd(8), have a look at softraid(4) and bioctl(8) hint: -c C.

This is what I have in rc.securelevel:

###
echo Configuring /home
TRY=3
while [ $TRY -gt 0 ]; do
bioctl -c C -l /dev/sd0f softraid0
if [ $? -eq 0 ]; then
fsck -p /dev/sd1c \
 mount -o softdep /dev/sd1c /home
break
fi
let TRY=TRY-1
done
###

sd0f is my RAID slice, sd1 is the disk connected to softraid0 and sd1c
is my /home partition.
I've put all this in rc.securelevel and not rc.local because I use my
default user as recipient for
root mail and if /home is not mounted sendmail, which is started after
rc.securelevel but before
rc.local, cannot deliver correctly as there is no /home/user directory.

I think the man page for softraid is clean enough to understand how to
create the encrypted partition.

HTH,
D.



HP nw9440 does not boot ACPI snapshot

2008-04-03 Thread Daniele Pilenga
Hi guys,
I have this notebook on which I'd like to install (and use!) OpenBSD,
but I have a little problem.

If I leave ACPI anabled, as per default on this Apr 1st snapshot, the
/bsd kernel reboots after cpu probing
(more or less, I don't have any serial so I cannot see very clearly,
it's too fast) and the /bsd.mp kernel hangs at some
acpi probing.

Enabling verbose mode is not very helpful since it scrolls down too
fast and in both cases rebooting the machine does not
leave the dmesg in memory.

I already tried disabling some random driver, but since I cannot see
where the problem is I don't even know what to
look for.

It would not be that bad living without acpi, but the MP kernel cannot
see both cpu cores, so I hope there is something
I could try.

It seems there is a problem with the audio, but I'll leave that for later. :-)

Dmesg follows, please let me know if there is something else you need
or if you have any suggestion.
BTW, acpidump core dumps, but may be related to the non-acpi kernel.

Thank you,
D.

OpenBSD 4.3-current (GENERIC) #732: Tue Apr  1 00:54:18 MDT 2008

[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC

cpu0: Genuine Intel(R) CPU T2600 @ 2.16GHz (GenuineIntel 686-class) 2.17 GHz

cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR

real mem  = 2146856960 (2047MB)

avail mem = 2067857408 (1972MB)

User Kernel Config

UKC disable acpi

422 acpi0 disabled

UKC quit

Continuing...

mainbus0 at root

bios0 at mainbus0: AT/286+ BIOS, date 03/05/08, BIOS32 rev. 0 @
0xf, SMBIOS rev. 2.4 @ 0xf3b77 (23 entries)

bios0: vendor Hewlett-Packard version 68YAF Ver. F.1C date 03/05/2008

bios0: Hewlett-Packard HP Compaq nw9440 (EY314EA#ABZ)

acpi at bios0 function 0x0 not configured

pcibios0 at bios0: rev 2.1 @ 0xf/0x2000

pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf07c0/208 (11 entries)

pcibios0: bad IRQ table checksum

pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf9990/208 (11 entries)

pcibios0: PCI Exclusive IRQs: 5 10 11

pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801FBM LPC rev 0x00)

pcibios0: PCI bus #32 is the last bus

bios0: ROM list: 0xc/0xdc00 0xd/0x1000 0xd1000/0x1800

cpu0 at mainbus0

cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130d2c06000d2c

cpu0: using only highest and lowest power states

cpu0: Enhanced SpeedStep 2167 MHz (1404 mV): speeds: 2167, 1000 MHz

pci0 at mainbus0 bus 0: configuration mode 1 (no bios)

pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03

ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03

pci1 at ppb0 bus 1

vga1 at pci1 dev 0 function 0 vendor NVIDIA, unknown product 0x029b rev 0xa1

wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)

wsdisplay0: screen 1-5 added (80x25, vt100 emulation)

agp0 at vga1: no integrated graphics

azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01: irq 10

azalia0: codec[s]: Analog Devices/0x1981, Conexant/0x2bfa, using
Analog Devices/0x1981

audio0 at azalia0

ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: irq 10

pci2 at ppb1 bus 8

bge0 at pci2 dev 0 function 0 Broadcom BCM5753M rev 0x21, BCM5750 C1
(0x4201): irq 10, address 00:16:d4:0c:fc:f0

brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0

ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: irq 10

pci3 at ppb2 bus 16

wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02:
irq 10, MoW2, address 00:13:02:51:af:9d

ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: irq 5

pci4 at ppb3 bus 32

uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: irq 10

uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: irq 11

uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: irq 11

uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: irq 5

ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: irq 10

usb0 at ehci0: USB revision 2.0

uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1

ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe1

pci5 at ppb4 bus 2

cbb0 at pci5 dev 6 function 0 TI PCIXX12 CardBus rev 0x00: irq 11

TI PCIXX12 FireWire rev 0x00 at pci5 dev 6 function 1 not configured

TI PCIXX12 Multimedia Card Reader rev 0x00 at pci5 dev 6 function 2
not configured

sdhc0 at pci5 dev 6 function 3 TI PCIXX12 Secure Data rev 0x00: irq 11

sdmmc0 at sdhc0

TI PCIXX12 Smart Card rev 0x00 at pci5 dev 6 function 4 not configured

cardslot0 at cbb0 slot 0 flags 0

cardbus0 at cardslot0: bus 3 device 0 cacheline 0x10, lattimer 0x20

pcmcia0 at cardslot0

ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x01: PM disabled

pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility

atapiscsi0 at pciide0 channel 0 drive 0

scsibus0 at atapiscsi0: 2 targets

cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVDRAM GMA-4082N, 

snmpd hangs on 4.1 looking up hrSWRunTable

2007-04-12 Thread daniele . pilenga
Hi misc@,
while testing the to be released 4.1 I found a problem with the 
snmpd daemon (package is net-snmp-5.1.3p5).

Trying, from another machine a command like this:

snmptable -c public -v 1 1.2.3.4 HOST-RESOURCES-MIB::hrSWRunTable

where 1.2.3.4 is the ip address of the OpenBSD server, the snmpd daemon 
hangs eating all the cpu it can find.

I tried running the daemon as:

snmpd -d -D -f -q -u nobody -g nobody

to see the debug output. The last lines are

snmp_agent: tp-start HOST-RESOURCES-MIB::hrSWRunType, tp-end 
HOST-RESOURCES-MIB::hrSWRunStatus, 
trace: netsnmp_add_varbind_to_cache(): snmp_agent.c, 1806:
snmp_agent: add_vb_to_cache(0x87eab780, 7, 
HOST-RESOURCES-MIB::hrSWRunStatus, 0x872d2180)
trace: snmp_call_callbacks(): callback.c, 176:
callback: START calling callbacks for maj=1 min=12
trace: snmp_call_callbacks(): callback.c, 184:
callback: calling a callback for maj=1 min=12
trace: vacm_in_view(): mibII/vacm_vars.c, 747:
mibII/vacm_vars: vacm_in_view: ver=0, community=public
trace: netsnmp_udp_getSecName(): snmpUDPDomain.c, 744:
netsnmp_udp_getSecName: resolve public, 0x2d06bc0a
trace: netsnmp_udp_getSecName(): snmpUDPDomain.c, 749:
netsnmp_udp_getSecName: compare public, 0x4a0110ac/0x... nope
trace: netsnmp_udp_getSecName(): snmpUDPDomain.c, 749:
netsnmp_udp_getSecName: compare public, 0x2c05bc0a/0x... nope
trace: netsnmp_udp_getSecName(): snmpUDPDomain.c, 749:
netsnmp_udp_getSecName: compare public, 0x2d06bc0a/0x... 
SUCCESS
trace: netsnmp_subtree_find_first(): agent_registry.c, 156:
subtree: looking for subtree for context: 
trace: netsnmp_subtree_find_first(): agent_registry.c, 160:
subtree: found one for: 
trace: vacm_in_view(): mibII/vacm_vars.c, 854:
mibII/vacm_vars: vacm_in_view: sn=anonymousSecName002, 
gn=anonymousGroupName002, vn=anonymousView002
trace: vacm_checkSubtree(): vacm.c, 526:
vacm:checkSubtree: , included
trace: snmp_call_callbacks(): callback.c, 196:
callback: END calling callbacks for maj=1 min=12 (1 called)
trace: netsnmp_add_varbind_to_cache(): snmp_agent.c, 1871:
snmp_agent: tp-start HOST-RESOURCES-MIB::hrSWRunStatus, tp-end 
HOST-RESOURCES-MIB::hrSWRunEntry.8, 
trace: netsnmp_call_handlers(): agent_handler.c, 443:
handler:calling: main handler bulk_to_next
trace: netsnmp_call_handler(): agent_handler.c, 381:
handler:calling: calling handler bulk_to_next for mode GETNEXT
trace: netsnmp_call_handler(): agent_handler.c, 381:
handler:calling: calling handler old_api for mode GETNEXT
trace: header_hrswrunEntry(): host/hr_swrun.c, 378:
host/hr_swrun: var_hrswrunEntry: HOST-RESOURCES-MIB::hrSWRunIndex 0
(index 20 (entry #1) HOST-RESOURCES-MIB::hrSWRunIndex
 saved

at this time there is no other output and the daemon is running at full 
speed.

The same happens on another 4.1 so I don't think it's hw related.

# dmesg | head -2
OpenBSD 4.1-current (GENERIC) #1466: Fri Apr  6 01:36:13 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC

# snmpd -v

NET-SNMP version:  5.1.3
Web:   http://www.net-snmp.org/
Email: [EMAIL PROTECTED]

Any ideas?

D.



Re: SCSI, LUNs, and volume sizes

2007-03-19 Thread daniele . pilenga
[EMAIL PROTECTED] wrote on 03/18/2007 02:22:39 PM:

 I'm running an OpenBSD 4.0 system (generic kernel), fitted with an 
Adaptec
 29160 SCSI card (so using the ahc driver), with the intention of running 
an
 external 3Tb RAID5 array (a Nexsan ATAboy). The intention is to setup a
 variety of partitions, the largest of which is 900Gb. So far, so good.
[...]
 However, at boot my system only sees the first lun (lun0, as sd0). How 
do I
 get my system to recognise the other LUNs? Is it a limitation of the 
Adaptec
 card, or the ahc driver, or something else? I've tried adding the
 SCSIFORCELUN_BUSES and SCSIFORCELUN_TARGETS options to the kernel, so 
far
 without success. I've also tried explicit sd0-3 targets and luns, also
 without success.

I had the same problem with one of my servers when I tried the upgrade 
from 3.9. I'm using a Qlogic ISP 23xx connected to a NetAPP filer, but the 
symptoms were the same.

First, those SCSIFORCELUN* options are no longer used in 4.0... this cost 
me a few days to figure out! :-\

Second, it seems that krw@ removed some code not needed in revision 1.108 
of sys/scsi/scsiconf.c. Not needed by anyone but us... grin! :-)

All I was able to do was make my server see the first lun, but not the 
other two, until I realized I could remap the luns to be 1, 2 and 3, 
without 0. With that trick the kernel sees all the three.

I wasn't able to boot from my first lun, though, until I upgraded my 
Qlogic firmware, but that's another story... :-)

HTH,
D.



Re: Dump(8) not honoring nodump flag

2007-03-16 Thread daniele . pilenga
[EMAIL PROTECTED] wrote on 15/03/2007 19:26:48:

 * [EMAIL PROTECTED] [EMAIL PROTECTED] 

  Trying to dump a filesystem with nodump flags on some folders results 
in 
  these folders been dumped anyway, even on higher level dump and even 
if I 
  specify -h flag to dump.

 Your correct, the nodump flag on directories has no affect on the files
 within that directory.  Both Free and Net have patched their respective
 versions to change that behaviour.

I didn't know the history of dump, thank you for the explanation.

 I'm working on a patch.  The hold up is digging through restore to make
 sure I do this correctly.  No point in frogging up dumpinomap,
 dumpdirmap, and usedinomap if restore doesn't do what you expect.

Why should this interfere with restore? I was thinking of re-reading the 
source and find a way to do that, but in a way similar to what chflags -R 
nodump ... would achive, skipping the entire directory.

Maybe I know too little of the process, though.

D.



Re: Dump(8) not honoring nodump flag

2007-03-16 Thread daniele . pilenga
[EMAIL PROTECTED] wrote on 03/16/2007 10:43:44 AM:

 [EMAIL PROTECTED] wrote:
  This also means that every time I want to dump a fs I have to reset 
the 
  nodump flags for all the files in those directories I don't want to 
  include as newer files won't keep that.
 
 Since dump does not traverse filesystyems, an alternative solution is 
 to store the files on another filsystem (which, of course, is not 
 dumped) and either mount it in place or create a symlink to it (e.g. 
 cache@ - /nodump/cache).

I have the need for an already installed server, next time I'll think into 
it.

Thanx,
D.



Re: Dump(8) not honoring nodump flag

2007-03-16 Thread daniele . pilenga
[EMAIL PROTECTED] wrote on 03/16/2007 02:40:38 PM:

[...]
   I'm working on a patch.  The hold up is digging through restore to 
make
   sure I do this correctly.  No point in frogging up dumpinomap,
   dumpdirmap, and usedinomap if restore doesn't do what you expect.
  
  Why should this interfere with restore? I was thinking of re-reading 
the 
 
 What do you think is written to the dump device (file, tape, or
 otherwise)?  The maps make an appearance with the dumped data.  Restore
 reads those maps back in for it's use.  If I screw up the dump, your
 screwed on restore.  Kind of defeats the purpose of doing the dump in
 the first place.  ;)

I can understand that, of course, I was just thinking that the only 
modification required was to tell dump(8) not to descend the tree, but 
someone on the list made me note that dump(8) in fact does not descend 
anything but reads the inode table directly.

I think I'll leave the patch to whom who's capable of reading the dump 
source... :-)

Bye.
D.



Dump(8) not honoring nodump flag

2007-03-15 Thread daniele . pilenga
Hi,
I have a problem with dump(8).

Trying to dump a filesystem with nodump flags on some folders results in 
these folders been dumped anyway, even on higher level dump and even if I 
specify -h flag to dump.

I'm relatevely new to OpenBSD, but have plenty of experience with FreeBSD 
and Linux so I'm not so sure it's _my_ error.

I've tried both 4.0-release and 4.0-stable, same problem. Unfortunately 
reading the sources didn't help.

Any advice?

Thanx,
D.



Re: Dump(8) not honoring nodump flag

2007-03-15 Thread daniele . pilenga
[EMAIL PROTECTED] wrote on 15/03/2007 17:16:34:

 * [EMAIL PROTECTED] [EMAIL PROTECTED] 
 [2007-03-15 17:03]:
  Hi,
  I have a problem with dump(8).
  
  Trying to dump a filesystem with nodump flags on some folders results 
in 
  these folders been dumped anyway, even on higher level dump and even 
if I 
  specify -h flag to dump.
 
 well, how? if you do a full dump you need to use -h 0 for nodump to have 

 any effect.

I tried both, dump -0a -h 0 ... and dump -1a ... with and without -h. 
Same effect, the files under the nodump dir got into the archive.

D.



Re: Dump(8) not honoring nodump flag

2007-03-15 Thread daniele . pilenga
Antoine Jacoutot [EMAIL PROTECTED] wrote on 15/03/2007 17:16:31:

 On Thu, 15 Mar 2007, [EMAIL PROTECTED] wrote:
  Trying to dump a filesystem with nodump flags on some folders results 
in
  these folders been dumped anyway, even on higher level dump and even 
if I
 
 Yes, you have to set the nodump flags recursively for all files under 
 those directories.
 ie. chflags -R nodump /path/to/dir

I set this and in fact it works. But that's strange compared to the other 
BSDs and Linux in which the nodump flags on a directory exclude the entire 
sub-tree.

This also means that every time I want to dump a fs I have to reset the 
nodump flags for all the files in those directories I don't want to 
include as newer files won't keep that.

 Also don't forget the '-h 0' flag fo dump(8) if you don't want any 
 backup at all on those dirs.

I'm using this flag, but I didn't expect this non-recursive behaviour of 
dump.

Thank you.
D.



Re: Dump(8) not honoring nodump flag

2007-03-15 Thread daniele . pilenga
Antoine Jacoutot [EMAIL PROTECTED] wrote on 15/03/2007 17:52:58:

 On Thu, 15 Mar 2007, [EMAIL PROTECTED] wrote:
  Yes, you have to set the nodump flags recursively for all files under
  those directories.
  ie. chflags -R nodump /path/to/dir
 
  I set this and in fact it works. But that's strange compared to the 
other
  BSDs and Linux in which the nodump flags on a directory exclude the 
entire
  sub-tree.
 
 Yup, well this is not strange, this is just different behaviour ;-)

Ok, I can agree with that, but what good the nodump flag is on a 
directory, than? It serves no purpuse.

  This also means that every time I want to dump a fs I have to reset 
the
  nodump flags for all the files in those directories I don't want to
  include as newer files won't keep that.
 
 Yes.

Unconfortable...

Thx,
D.