mutt: xterm_title conf var

2009-09-10 Thread Bernd 'Siggy' Brentrup
Hi List,

I'm absolutely new to openbsd so please bear with me if it's not
the right place to ask my question.  The box I installed 4.5 will
be running headless so I'm logged in remotely on a color xterm.

I rsynced mutt configuration from my Ubuntu box because it's also
running mutt 1.5.18,  most things work out as expected except for
lack of colors, missing threading and convenient confvars
xterm_set_titles and xterm_title that I use to display status
information in the xterm title.

I'll investigate the first 2 quirks later, as for ther xterm stuff
my question is did you leave these out on purpose, they are missing
in your muttrc(5) too (if so why) or should I check Ubuntu's resp.
Debian's source code to see if they patched mutt.

Thanks
  Siggy
-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org+
|36 days until|Open Source in Northern Germany: www.free-it.org|
|www.Ubucon.de|tech contact: bsb-at-free-dash-it-dot-de|
+--- ceterum censeo javascriptum esse restrictam +



Unete a Productos Neem -Diabetes-Vitiligo-Cancer

2009-09-10 Thread silvia benavides
Para ser distribuidor  solamente tienes que confirmar este correo y podras 
hacer una compra mmnima de 1000 pesos y enviarnos tus datos completos para 
mensajerma esta compra de 1000 pesos incluye 25 productos a escoger por ti 
ademas de que el envis es gratis y entregas en 24 hrs.
si enviamos un cd rom de la forma de uso para cada enfermedad.
y la literatura para ser un dist exitoso.
 

Pero en su compra de 20,000 pesos le regalamos otros 5000 pesos 
y el tiempo de entrega es de 24hrs y toda la linea en 50 pesos.
le anexaremos 2 lonas y folletos
 
un gusto poder saludarle. le envmo toda la informacisn para que usted pueda ser 
parte de distribuidores arbol del neem en todo el pams, nosotros manejamos un 
distribuidor por estado s zona, le mando costos a distribuidor, forma de 
pedido, mis datos para dirigirse conmigo y tambiin le mando el libro del neem y 
mas informacisn para recomendar a sus clientes que tomar y que tratamiento 
seguir.
 
el primer paso es hacer su pedido, desde el primer momento queda registrado 
como distribuidor como tal el precio que le manejamos es ya de la lista de 
precios de distribucisn. el primer pago es su compra mmnima de 1000 pesos s 
mas. 

manejamos varios kits de inicio segzn posibilidades de expansisn de su negocio 
o empresa.
 

costos a distribuidor autorizado.
 

cantidad  producto costo
 
90 caps. hoja de neem $50m/n
 
90 caps. corteza de neem $50m/n
 
50 ml. aceite de neem $50m/n
 
125 ml aceite de neem $50m/n
 
250 ml. locion de neem $50m/n
 
250 ml. shampoo de neem $50m/n
 
250 ml. shampoo de drago $50m/n
 
125 ml  crema de neem $50m/n
 
250 ml. crema de neem $50m/n
 
200 grs.  jabon de neem $50m/n
 
125 ml. pasta de dientes  $50m/n
 
90 caps corteza roja $50m/n
 
50 ml extracto liquido $50m/n
 
250 ml jabon liquido neem $50m/n
 
150 grs. extracto de neem polvo  $50m/n
 
50 ml  extracto de neem gotas $50m/n
 
250ml extracto de neem liquido $50m/n
 
250 ml  enjuague de neem bucal $50m/n
 

Ahora ya tenemos tambien Gel-antibacterial a 10 pesos pieza de 60ml
para re-venderse a 20 pesos pieza menudeo o 15 peso pieza mayoreo.


--
forma de pedidos
 
envmenos su datos completos:
-  nombre completo
- direccisn de envio
- telifono
- celular
- email
- pedido
- forma de pago
- envio ocurre o a domicilio

---
formato de pago
 
banamex
cuenta: 5577857123
traspasos: 002580055778571237
titular: lic. nora torres sanchez
 
bancomer
cuenta: 2674716701
traspasos: 012580026747167015
titular: lic. nora torres sanchez
 
banorte
cuenta: 0616204173
traspasos: 072580006162041734
titular: lic. nora torres sanchez
 
hsbc
cuenta: 6313024807
titular: lic. nora torres sanchez
-
 
enviar su bauche por fax al 01 825 2380018 
 
mensajerias para enviarle: 
 
aeroflash 
multipack 
estafeta 
dhl 
senda express.
 
 
atte:
ingrid sauceda
ventas.
01-55-59-05-12-11
mty 82206785

Confirm to list: dist2

http://app.icontact.com/icp/confirm.php?r=52937911s=CH3Ygid=84376c=471629l=42737m=338154
 

This message was sent by: silvia benavides, iturbide 189 col centro, monterrey, 
nuevo leon 64500, Mexico

Email Marketing by iContact: http://freetrial.icontact.com



Re: OpenBSD hacking

2009-09-10 Thread Claudio Jeker
On Thu, Sep 10, 2009 at 12:14:29AM -0400, Luis Useche wrote:
 Hi Guys,
 
 I am having some time free soon and I feel like doing some hacking in
 the OpenBSD kernel. I would like to work in the I/O stack. I would
 prefer something easy to do to get introduced to the kernel. I was
 thinking on implementing a simplified version of FS2
 (http://citeseerx.ist.psu.edu/showciting?doi=10.1.1.125.4078). This
 project would increase performance and reduce power consumption. I
 have a couple of question:
 
 1. I would like to know if that project is interesting to the
 community. After all, I would prefer to spend my time in something
 useful. If not, any other suggestion for project?

I think that the assumptions made by the FS2 paper are outdated. Modern
systems have often either SSD or good raid controllers with large buffers
in them. In both cases the seek time is unpredictable. Additionally
modern disk can re-map blocks and so it is not known if two blocks are
close by or not. So in the end I think the amount of code needed to track
these additional copies of blocks and figuring out if they're still valid
or not will bloat the code without big benefit.

If you like filesystem hacking there are a few projects in other BSD
projects worth looking at. e.g. NetBSD has a journaling mechanism for FFS.
Another thing is a good mfs replacement or a FS suitable for flashes.
In the end it is your hacking time so you need to choose something that
realy bugs you and is not a huge monster project.

 2. Any suggestion to get introduced to the kernel easily? Any advice?
 I already have the 4.4BSD design and implementation book.
 

Reading source code and find a problem you like to get solved because it
bugs you very much. Additionally there are some kernel API man pages and
google can help as well in some cases.

-- 
:wq Claudio



Re: OpenBSD hacking

2009-09-10 Thread Edd Barrett
Hi,

On Thu, Sep 10, 2009 at 8:23 AM, Claudio Jeker cje...@diehard.n-r-g.com wrote:
 I think that the assumptions made by the FS2 paper are outdated.

FFS snapshots could be implemented (if not already done).

-- 
Best Regards

Edd Barrett
(Freelance software developer / technical writer / open-source developer)

http://students.dec.bournemouth.ac.uk/ebarrett



Re: OpenBSD hacking

2009-09-10 Thread Jonathan Armani

Hi,

Claudio Jeker a icrit :

On Thu, Sep 10, 2009 at 12:14:29AM -0400, Luis Useche wrote:
  

Hi Guys,

I am having some time free soon and I feel like doing some hacking in
the OpenBSD kernel. I would like to work in the I/O stack. I would
prefer something easy to do to get introduced to the kernel. I was
thinking on implementing a simplified version of FS2
(http://citeseerx.ist.psu.edu/showciting?doi=10.1.1.125.4078). This
project would increase performance and reduce power consumption. I
have a couple of question:

1. I would like to know if that project is interesting to the
community. After all, I would prefer to spend my time in something
useful. If not, any other suggestion for project?



I think that the assumptions made by the FS2 paper are outdated. Modern
systems have often either SSD or good raid controllers with large buffers
in them. In both cases the seek time is unpredictable. Additionally
modern disk can re-map blocks and so it is not known if two blocks are
close by or not. So in the end I think the amount of code needed to track
these additional copies of blocks and figuring out if they're still valid
or not will bloat the code without big benefit.

If you like filesystem hacking there are a few projects in other BSD
projects worth looking at. e.g. NetBSD has a journaling mechanism for FFS.
  

Netbsd WAPBL for fast boot after crash could be really nice.

Another thing is a good mfs replacement or a FS suitable for flashes.
In the end it is your hacking time so you need to choose something that
realy bugs you and is not a huge monster project.

  

2. Any suggestion to get introduced to the kernel easily? Any advice?
I already have the 4.4BSD design and implementation book.




Reading source code and find a problem you like to get solved because it
bugs you very much. Additionally there are some kernel API man pages and
google can help as well in some cases.




Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Jan Stary
On Sep 10 10:36:41, Milan Prihoda wrote:
 Hi,
 i have few IBM scsi drives from old (risc-based) IBM as/400.

 These drives have 520KByte sector size instead of 512KByte.
 Is there any way how to dump raw data from these drives without
 reformat drive to different sector size ?

 $ dmesg
 ...
 sd2 at scsibus0 targ 3 lun 0: IBMAS400, DFHSS4W, 4I4I SCSI 2 0/direct  
 fixed
 sd2: drive offline
 ...

What is raw data?
Just dd if=/dev/rsd2c of=somewhere.

Or is there a filesystem you can read/dump?
Then dump | restore as usual.

What are you _really_ trying to do?



IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda

Hi,
i have few IBM scsi drives from old (risc-based) IBM as/400.

These drives have 520KByte sector size instead of 512KByte.
Is there any way how to dump raw data from these drives without
reformat drive to different sector size ?

$ dmesg
...
sd2 at scsibus0 targ 3 lun 0: IBMAS400, DFHSS4W, 4I4I SCSI 2 0/direct 
fixed

sd2: drive offline
...

Thank You for any ideas.

Milan Prihoda



Gov't Fiscal Year End Discounts on SigmaPlot Version 11!

2009-09-10 Thread Systat Software Inc
Gov't
Fiscal Year End 
Discounts on SigmaPlot 11!


Give
  our sales team a call and place your order before
  this offer expires
on Sept 30, 2009!

Systat
  Software Government Sales: (800) 797-7401

Or
  FAX your purchase order to: (800)797-7406

SigmaPlot
11 - The Technical Graphing Standard now
with Complete
Advisory Statistics!

SigmaPlot
  11 now offers a full
range of easy-to-use
  statistical functions
in addition to graphing
  templates and
utilities
  with improved features
for accurate and
  fast data analysis.
Unlike other analysis
  and graphing packages,
spreadsheets or business
  graphing products,
SigmaPlot 11 offers
  complete advisory
statistical analysis
  features along with
a full range of graphing
  templates and
utilities
  for unmatched data
accuracy, speed,
  data analysis and
presentation. SigmaPlot
  is known for its
flexibility to customize
  any object on a
graph
  to meet the exacting
requirements of the
  scientific and
engineering
  community. 
  More information
on SigmaPlot Version 11...


Ask About Our NEW PRODUCTS!


 SigmaCERF,
  The Collaborative Electronic Research Frameworktrade; is
a unique ELN solution designed specifically for
  scientists and RD
organizations. more
  info...

 LISA.lims
  is the PREMIER Laboratory
Information Management
  System. LISA.lims helps you to automate, organize
and standardize complex workflows. more
  info...

 Genomatix
  tools
let you understand the molecular mechanisms
  of gene regulation as a
central part of systems
  biology. Genomatix provides comprehensive,
reliable results. more
  info...

 

TOOLS FOR SCIENCE

Systat Software,
  Inc. 1735 Technology
Drive Suite 430 San
  Jose, CA 95110 USA
Phone: 800-797-7401
  Fax: 800-797-7406

  Email: info-...@systat.com


 
Unsubscribe - 
Our
Web  Email policy
- 
Copyright copy; 2009
Systat
Software, Inc. - All Rights Reserved - 
Please
visit our Website.



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda

Jan Stary wrote:

On Sep 10 10:36:41, Milan Prihoda wrote:
  

Hi,
i have few IBM scsi drives from old (risc-based) IBM as/400.

These drives have 520KByte sector size instead of 512KByte.
Is there any way how to dump raw data from these drives without
reformat drive to different sector size ?

$ dmesg
...
sd2 at scsibus0 targ 3 lun 0: IBMAS400, DFHSS4W, 4I4I SCSI 2 0/direct  
fixed

sd2: drive offline
...



What is raw data?
Just dd if=/dev/rsd2c of=somewhere.

Or is there a filesystem you can read/dump?
Then dump | restore as usual.

What are you _really_ trying to do?

  

Yes, just dd if=/dev/rsd2c 

_really_ ? :-) I am just curious :-)

Milan Prihoda



ugly switch problem

2009-09-10 Thread Holger Glaess
hi

i have an running 4.4 firewall cluster on sun x2200 m2 boxes with
additional PCIe quad card with intel chipset.


as switch i use hp 2824 or 3500 procurve witch the latest or close to the
latest firmware.

so, if i do a reboot of the master box i get trouble at the boot time,
the box can't set routing on some interfaces and the firewall rules are
loaded but don't work properly and the whole system is not remote
accessable.

if i do now an pfctl -Fall -f pf.conf anything works fine, just i have to
set the missing static routing entrys.

same time on the switch , he says the link is there , than aways like an
uncontroled flap with an stable link if the box have finished the boot.

now , i do on the box the reload of the rules , everthing ist ok.

what kind of problem is that ?
do the kernel switch off and on the interfaces due the boot time ?

how can i fix this ?

holger

note: i hope it is ok that i attach the long boot output.

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of 7]



Re: mutt: xterm_title conf var

2009-09-10 Thread Luis Useche
I don't know if this solve your problem or you already did this, but
you need to set the xterm in order to have colors for manuals or vim.
Read from FAQ How do I get color man pages on XTerm?.

Luis



On Thu, Sep 10, 2009 at 3:43 AM, Bernd 'Siggy' Brentrup b...@xlab.net wrote:
 Hi List,

 I'm absolutely new to openbsd so please bear with me if it's not
 the right place to ask my question.  The box I installed 4.5 will
 be running headless so I'm logged in remotely on a color xterm.

 I rsynced mutt configuration from my Ubuntu box because it's also
 running mutt 1.5.18,  most things work out as expected except for
 lack of colors, missing threading and convenient confvars
 xterm_set_titles and xterm_title that I use to display status
 information in the xterm title.

 I'll investigate the first 2 quirks later, as for ther xterm stuff
 my question is did you leave these out on purpose, they are missing
 in your muttrc(5) too (if so why) or should I check Ubuntu's resp.
 Debian's source code to see if they patched mutt.

 Thanks
  Siggy
 --
 O ascii ribbon campaign - stop html mail - www.asciiribbon.org+
 |36 days until|Open Source in Northern Germany: www.free-it.org|
 |www.Ubucon.de|tech contact: bsb-at-free-dash-it-dot-de|
 +--- ceterum censeo javascriptum esse restrictam +



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Joachim Schipper
On Thu, Sep 10, 2009 at 12:16:27PM +0200, Milan Prihoda wrote:
 Jan Stary wrote:
 On Sep 10 10:36:41, Milan Prihoda wrote:
 Hi,
 i have few IBM scsi drives from old (risc-based) IBM as/400.
 
 These drives have 520KByte sector size instead of 512KByte.
 Is there any way how to dump raw data from these drives without
 reformat drive to different sector size ?
 
 $ dmesg
 ...
 sd2 at scsibus0 targ 3 lun 0: IBMAS400, DFHSS4W, 4I4I SCSI 2
 0/direct  fixed
 sd2: drive offline
 ...
 
 What is raw data?
 Just dd if=/dev/rsd2c of=somewhere.
 
 Or is there a filesystem you can read/dump?
 Then dump | restore as usual.
 
 What are you _really_ trying to do?
 
 Yes, just dd if=/dev/rsd2c 
 
 _really_ ? :-) I am just curious :-)

dd(1) has an option to set the block size (bs=...). Setting this to a
(multiple of) the block size of the underlying hardware may (or may not)
increase performance.

However, the drivers will take care of any hardware issues and present a
stream of bytes to userland, no matter the block size. So plain dd will
work.

Joachim



Re: mutt: xterm_title conf var

2009-09-10 Thread Joachim Schipper
On Thu, Sep 10, 2009 at 09:43:24AM +0200, Bernd 'Siggy' Brentrup wrote:
 Hi List,
 
 I'm absolutely new to openbsd so please bear with me if it's not
 the right place to ask my question.  The box I installed 4.5 will
 be running headless so I'm logged in remotely on a color xterm.
 
 I rsynced mutt configuration from my Ubuntu box because it's also
 running mutt 1.5.18,  most things work out as expected except for
 lack of colors, missing threading and convenient confvars
 xterm_set_titles and xterm_title that I use to display status
 information in the xterm title.
 
 I'll investigate the first 2 quirks later, as for ther xterm stuff
 my question is did you leave these out on purpose, they are missing
 in your muttrc(5) too (if so why) or should I check Ubuntu's resp.
 Debian's source code to see if they patched mutt.

I'm fairly certain xterm_* is a Debian/Ubuntu improvement: at least,
http://www.mutt.org/doc/devel/manual.html doesn't know about either
option. If it's important to you, you may be able to get the patches
from the Debian package to apply against OpenBSD's port.

Colors do work, with a proper TERM setting (e.g. xterm-xfree86 or
xterm-color; plain xterm doesn't work, since there are things that
identify as xterm but don't handle color.) Try setting TERM properly
and/or running env TERM=xterm-color mutt.

Threading definitely works for me, although you can get some display
issues if the characters sets used don't match. Feel free to ask for the
details; your original post was sufficiently unclear that I cannot guess
your problem.

Joachim



Re: mutt: xterm_title conf var

2009-09-10 Thread Bernd Siggy Brentrup
On Thu, Sep 10, 2009 at 07:21 -0400, Luis Useche wrote:
 I don't know if this solve your problem or you already did this, but
 you need to set the xterm in order to have colors for manuals or vim.
 Read from FAQ How do I get color man pages on XTerm?.

Not reading the FAQ but trying after your hint:

^Z
$ echo $TERM
xterm
$ TERM=xterm-color
$ %
^L

colors appear. I'll fix my .bashrc (resp. .zshrc asa zsh is
installed).

Thanks for your hint
  Siggy
-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org+
|36 days until|bsb-at-psycho-dot-informationsanarchistik-dot-de|
|www.Ubucon.de|or:bsb-at-psycho-dot-i21k-dot-de|
+--- ceterum censeo javascriptum esse restrictam +



Brazilian shop gives 404

2009-09-10 Thread Christiano Farina Haesbaert
Brazilian shop gives 404 for www.temporeal.com.br/openbsd

While searching the cds in their system, the last one is 4.4.
I was trying to pre order 4.6 from them, but it seems they won't
have it ?



Re: Supporting OpenBSD

2009-09-10 Thread Daniel Bolgheroni
On Tue, 8 Sep 2009, Nick Holland wrote:

 Thanks to those that contribute money and buy CDs.

I would like to buy CDs, but in Brazil these kind of products have a 
high tax fee applied when they hit the harbour. For a $50 CD, I'll 
probably pay almost $almost $70 to someone I don't want to contribute. 
This doesn't include the shipment cost (~$30 I suspect).

I don't have a Paypal account (yet). If it's worth to trust him, I don't 
know, but I much prefer to donate $50 (although they will deduct 3.9% in 
my case, but at least OpenBSD doesn't have the CD cost) than to pay 
almost the triple to government, shipment, etc. Don't care if I don't 
get the CDs.

Is it possible to OpenBSD to make profit for the project selling books 
or manuals? I don't know the costs or if it's worth (like CDs are better 
for the project than T-shirts, mugs, etc.). It's tax free here, and I 
think: if it's free here, maybe it's somewhere else.

Teers,

--
Daniel Bolgheroni
FEI - Faculdade de Engenharia Industrial
http://www.dbolgheroni.eng.br/mykey

ASCII ribbon campaign ( )
 against HTML e-mail   X
  / \



SOLVED: mutt: xterm_title conf var

2009-09-10 Thread Bernd Siggy Brentrup
On Thu, Sep 10, 2009 at 14:40 +0200, Joachim Schipper wrote:
 On Thu, Sep 10, 2009 at 09:43:24AM +0200, Bernd 'Siggy' Brentrup wrote:

 I'm fairly certain xterm_* is a Debian/Ubuntu improvement: at least,
 http://www.mutt.org/doc/devel/manual.html doesn't know about either
 option. If it's important to you, you may be able to get the patches
 from the Debian package to apply against OpenBSD's port.

If find it quite convenient to see selected status in the xterm title
while reading e.g. a crossposted mail.

 Colors do work, with a proper TERM setting (e.g. xterm-xfree86 or
 xterm-color; plain xterm doesn't work, since there are things that
 identify as xterm but don't handle color.) Try setting TERM properly
 and/or running env TERM=xterm-color mutt.

Sorry you're too late to earn credit on this, Luis pointed me in
the right direction before I saw your post :)

 Threading definitely works for me, although you can get some display
 issues if the characters sets used don't match. Feel free to ask for the
 details; your original post was sufficiently unclear that I cannot guess
 your problem.

I was unclear on purpose because I wanted to investigate these problems
myself.  Solution is: on Debian systems default is 'sort=threads' while
openbsd has 'sort=date'.  After adding 'set sort=threads' to .muttrc
this file now works on all my systems as I want it to.

Thanks to all who responded on list or privately.  Because one of the
private ones stands out by being written in german I'll answer that
one in a separate private mail.

Impressed by the way this thread worked
  Siggy
  
FYI: please visit https://launchpad.net/~bsb
-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org+
|36 days until|bsb-at-psycho-dot-informationsanarchistik-dot-de|
|www.Ubucon.de|or:bsb-at-psycho-dot-i21k-dot-de|
+--- ceterum censeo javascriptum esse restrictam +



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread David Vasek

On Thu, 10 Sep 2009, Joachim Schipper wrote:


On Thu, Sep 10, 2009 at 12:16:27PM +0200, Milan Prihoda wrote:

Jan Stary wrote:

On Sep 10 10:36:41, Milan Prihoda wrote:

Hi,
i have few IBM scsi drives from old (risc-based) IBM as/400.

These drives have 520KByte sector size instead of 512KByte.
Is there any way how to dump raw data from these drives without
reformat drive to different sector size ?

$ dmesg
...
sd2 at scsibus0 targ 3 lun 0: IBMAS400, DFHSS4W, 4I4I SCSI 2
0/direct  fixed
sd2: drive offline
...


What is raw data?
Just dd if=/dev/rsd2c of=somewhere.

Or is there a filesystem you can read/dump?
Then dump | restore as usual.

What are you _really_ trying to do?


Yes, just dd if=/dev/rsd2c 

_really_ ? :-) I am just curious :-)


dd(1) has an option to set the block size (bs=...). Setting this to a
(multiple of) the block size of the underlying hardware may (or may not)
increase performance.

However, the drivers will take care of any hardware issues and present a
stream of bytes to userland, no matter the block size. So plain dd will
work.


The drive is reported as offline.

As I understand it from sys/scsi/sd.c, drive offline means an error was 
reported by scsi_test_unit_ready() function call. Possibly the 520 
bytes/sector is not compatible with the controller the OP used or with the 
OpenBSD driver/scsi subsystem? Don't know. I doubt that media (i.e. 
blocks) is accessible in this condition.


Regards,
David



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Brynet
David Vasek wrote:
 The drive is reported as offline.

 As I understand it from sys/scsi/sd.c, drive offline means an error was
 reported by scsi_test_unit_ready() function call. Possibly the 520
 bytes/sector is not compatible with the controller the OP used or with the
 OpenBSD driver/scsi subsystem? Don't know. I doubt that media (i.e.
 blocks) is accessible in this condition.

 Regards,
 David

Hi,

I have an ATAPI LS-120 drive that always reports itself as being
offline, but it functions properly.. it would however be nice if the
device reported such online/offline events, but that could be a
limitation of the hardware.

sd0 at scsibus0 targ 0 lun 0: MATSHITA, LS-120 VER5 00, F527 ATAPI
0/direct removable
sd0: drive offline

-Brynet



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Brynet
Milan Prihoda wrote:
 These drives have 520KByte sector size instead of 512KByte.
 Is there any way how to dump raw data from these drives without
 reformat drive to different sector size ?

Most disks have a sector size of 512 bytes, not kilobytes.

-Brynet



Re: OpenBSD hacking

2009-09-10 Thread Luis Useche
Thank you all for your suggestions. I will respond by names.

Jesus: I sent this email to this list because is the only contact I
know to the OBSD developers. Are there other list more appropriate for
my question?

Claudio: I don't think FS2 assumptions are completely out-dated. If
this were true, many of the file systems and I/O schedulers
optimizations based on locality would not work (I guess this is a
discussion for another thread). I thought about the Journaling for FFS
before but I felt it was too complicated for an initial kernel
project; maybe I'm wrong. In any case, I will find out more about
this. Thanks.

David: Sure, it does not matter if it is not FS2 related. We can talk
by email or through the misc list, whichever you prefer.

Edd: I haven't seen anything like a snapshot in FFS. I think snapshots
come really unnatural to FFS-like file systems. This is usually
implemented in COW file systems. For this reason, I was also thinking
on porting LFS from NetBSD and include the snapshoting functionality.
But again, I thought this could probably be somewhat complicated. It
could be a future project though.

Jonathan: Again, this is journaling for FFS. I guess same comments for
Claudio apply to you.

Thanks,

Luis



Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Michael Burk
Hi All,

We have been working for a couple weeks with the Amanda developers to get
their latest release working on OpenBSD 4.5. Amanda stopped working with
OpenBSD somewhere around version 2.5.1 (3 years ago). We've been focusing on
a failure in the dump process on the client.

On the client side, dump(8) is started with its output to a blocking pipe.
However, dump fails with EAGAIN, which we understand should be impossible.
One of the developers outlined the basic process as follows:

In amandad process:
 pipe(pipefd)
 dup2(pipefd[1],b)
 fork
 in the child:
exec sendbackup process
dup2(b,c)
write c #fail with EAGAIN

We added some debug messages to verify that the pipe was blocking. In so
doing, we discovered that the debug messages fixed the problem, and the
dump succeeded. Narrowing this down, we found the absolute minimal patch was
simply inserting the following line before the dup2 above:
 fcntl(datafd, F_GETFL, 0);

This adds to the mystery; why would doing a call that simply returns a flag
change the behavior of the program? Is there some side effect of this call?

We have tried this on several machines (at least the sparc64, amd64
platforms), all running 4.5. dump is invoked as follows:
/sbin/dump dump 0usf 1048576 - /dev/rsd0a

I don't know what other details might be helpful; let me know and I'll send
them.

Thank you for any insight.

-- Michael



Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Stuart Henderson
On 2009-09-10, Michael Burk bur...@gmail.com wrote:
 We have been working for a couple weeks with the Amanda developers to get
 their latest release working on OpenBSD 4.5. Amanda stopped working with
 OpenBSD somewhere around version 2.5.1 (3 years ago). We've been focusing on
 a failure in the dump process on the client.

Does newer Amanda use threads? With pthread, stdio will be silently changed
to _non_ blocking.



 On the client side, dump(8) is started with its output to a blocking pipe.
 However, dump fails with EAGAIN, which we understand should be impossible.
 One of the developers outlined the basic process as follows:

 In amandad process:
  pipe(pipefd)
  dup2(pipefd[1],b)
  fork
  in the child:
 exec sendbackup process
 dup2(b,c)
 write c #fail with EAGAIN

 We added some debug messages to verify that the pipe was blocking. In so
 doing, we discovered that the debug messages fixed the problem, and the
 dump succeeded. Narrowing this down, we found the absolute minimal patch was
 simply inserting the following line before the dup2 above:
  fcntl(datafd, F_GETFL, 0);

 This adds to the mystery; why would doing a call that simply returns a flag
 change the behavior of the program? Is there some side effect of this call?

 We have tried this on several machines (at least the sparc64, amd64
 platforms), all running 4.5. dump is invoked as follows:
 /sbin/dump dump 0usf 1048576 - /dev/rsd0a

 I don't know what other details might be helpful; let me know and I'll send
 them.

 Thank you for any insight.

 -- Michael



Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Michael Burk
It links with libpthread. I am told that on the client side it uses a single
thread. Would that make a difference?

Also, I forgot to include a link to the *very* long thread on the Amanda
list discussing this problem:

http://archives.zmanda.com/amanda-archives/viewtopic.php?t=4763sid=f86451987866cfccc9fe363fe7546a7b

Thanks,
Michael

On Thu, Sep 10, 2009 at 10:09 AM, Stuart Henderson s...@spacehopper.orgwrote:

 On 2009-09-10, Michael Burk bur...@gmail.com wrote:
  We have been working for a couple weeks with the Amanda developers to get
  their latest release working on OpenBSD 4.5. Amanda stopped working with
  OpenBSD somewhere around version 2.5.1 (3 years ago). We've been focusing
 on
  a failure in the dump process on the client.

 Does newer Amanda use threads? With pthread, stdio will be silently changed
 to _non_ blocking.


 
  On the client side, dump(8) is started with its output to a blocking
 pipe.
  However, dump fails with EAGAIN, which we understand should be
 impossible.
  One of the developers outlined the basic process as follows:
 
  In amandad process:
   pipe(pipefd)
   dup2(pipefd[1],b)
   fork
   in the child:
  exec sendbackup process
  dup2(b,c)
  write c #fail with EAGAIN
 
  We added some debug messages to verify that the pipe was blocking. In so
  doing, we discovered that the debug messages fixed the problem, and the
  dump succeeded. Narrowing this down, we found the absolute minimal patch
 was
  simply inserting the following line before the dup2 above:
   fcntl(datafd, F_GETFL, 0);
 
  This adds to the mystery; why would doing a call that simply returns a
 flag
  change the behavior of the program? Is there some side effect of this
 call?
 
  We have tried this on several machines (at least the sparc64, amd64
  platforms), all running 4.5. dump is invoked as follows:
  /sbin/dump dump 0usf 1048576 - /dev/rsd0a
 
  I don't know what other details might be helpful; let me know and I'll
 send
  them.
 
  Thank you for any insight.
 
  -- Michael



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda

Brynet wrote:

Milan Prihoda wrote:
  

These drives have 520KByte sector size instead of 512KByte.
Is there any way how to dump raw data from these drives without
reformat drive to different sector size ?



Most disks have a sector size of 512 bytes, not kilobytes.

-Brynet

  

Hi,
i should apologize for incompletely question (with mistakes)
so again (and better :-)

Yes, of course drives have sector size of 520bytes not kilobytes,
it was my typo fail.


# dmesg | grep sd2
sd2 at scsibus0 targ 2 lun 0: IBMAS400, DFHSS4W, 4I4I SCSI2 0/direct fixed
sd2: drive offline

# fdisk sd2
fdisk: sd2: Device not configured

# disklabel sd2
disklabel: /dev/rsd2c: Device not configured

# dd=/dev/rsd2c of=disk1.img
dd: /dev/rsd2c: Device not configured



I tried this drive in a linux box and dmesg told me:
# dmesg | grep sdb
sd 0:0:3:0: [sdb] Unsupported sector size 520.
sd 0:0:3:0: [sdb] 0 512-byte hardware sectors: (0 B/0 B)
sd 0:0:3:0: [sdb] Write Protect is off
sd 0:0:3:0: [sdb] Mode Sense: a7 00 10 08
sd 0:0:3:0: [sdb] Write cache: disabled, read cache: enabled, supports 
DPO and FUA

sd 0:0:3:0: [sdb] Attached SCSI disk

and there i get knowledge about 520byte sector size.

I would like to get raw data from this drive.
Ok - if it's impossible, i want to say it. :-)

Thank. Milan



Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Michael Burk
If pthreads is the issue, then I have two questions:
1) is the behavior of changing stdio to non_blocking when using pthreads
unique to OpenBSD?
2) why would this call fix the problem:
fcntl(datafd, F_GETFL, 0);
does that have other side effects?

Thanks,
Michael

On Thu, Sep 10, 2009 at 10:44 AM, Bob Beck b...@ualberta.ca wrote:

 That is almost certainly the problem.  Ditch the pthread dependancy and it
 will probably work fine.



 On Thu, Sep 10, 2009 at 10:34 AM, Michael Burk bur...@gmail.com wrote:

 It links with libpthread. I am told that on the client side it uses a
 single
 thread. Would that make a difference?

 Also, I forgot to include a link to the *very* long thread on the Amanda
 list discussing this problem:


 http://archives.zmanda.com/amanda-archives/viewtopic.php?t=4763sid=f86451987866cfccc9fe363fe7546a7b

 Thanks,
 Michael

 On Thu, Sep 10, 2009 at 10:09 AM, Stuart Henderson s...@spacehopper.org
 wrote:

  On 2009-09-10, Michael Burk bur...@gmail.com wrote:
   We have been working for a couple weeks with the Amanda developers to
 get
   their latest release working on OpenBSD 4.5. Amanda stopped working
 with
   OpenBSD somewhere around version 2.5.1 (3 years ago). We've been
 focusing
  on
   a failure in the dump process on the client.
 
  Does newer Amanda use threads? With pthread, stdio will be silently
 changed
  to _non_ blocking.
 
 
  
   On the client side, dump(8) is started with its output to a blocking
  pipe.
   However, dump fails with EAGAIN, which we understand should be
  impossible.
   One of the developers outlined the basic process as follows:
  
   In amandad process:
pipe(pipefd)
dup2(pipefd[1],b)
fork
in the child:
   exec sendbackup process
   dup2(b,c)
   write c #fail with EAGAIN
  
   We added some debug messages to verify that the pipe was blocking. In
 so
   doing, we discovered that the debug messages fixed the problem, and
 the
   dump succeeded. Narrowing this down, we found the absolute minimal
 patch
  was
   simply inserting the following line before the dup2 above:
fcntl(datafd, F_GETFL, 0);
  
   This adds to the mystery; why would doing a call that simply returns a
  flag
   change the behavior of the program? Is there some side effect of this
  call?
  
   We have tried this on several machines (at least the sparc64, amd64
   platforms), all running 4.5. dump is invoked as follows:
   /sbin/dump dump 0usf 1048576 - /dev/rsd0a
  
   I don't know what other details might be helpful; let me know and I'll
  send
   them.
  
   Thank you for any insight.
  
   -- Michael



Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Stuart Henderson
On 2009-09-10, Michael Burk bur...@gmail.com wrote:
 It links with libpthread.

 I am told that on the client side it uses a single thread.
 Would that make a difference?

That is exactly the problem then. Just linking with libpthread is enough,
for userland threading to work it has to use non-blocking FDs and wraps
libc functions to do this.

 Also, I forgot to include a link to the *very* long thread on the Amanda
 list discussing this problem:

 http://archives.zmanda.com/amanda-archives/viewtopic.php?t=4763sid=f86451987866cfccc9fe363fe7546a7b

ouch. yes, *very* long.



Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread HÃ¥kan Kvist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Burk wrote the following lines on 09/10/2009 06:58 PM:
 If pthreads is the issue, then I have two questions:
 1) is the behavior of changing stdio to non_blocking when using pthreads
 unique to OpenBSD?
 2) why would this call fix the problem:
 fcntl(datafd, F_GETFL, 0);
 does that have other side effects?
 
 Thanks,
 Michael

Is guess it is the same as for older versions of FreeBSD, I googled link:
http://lists.freebsd.org/pipermail/freebsd-bugs/2003-May/000615.html

I assume the same thing applies to OpenBSD:
The threading takes place in userspace in OpenBSD and the kernel does
not know anything about threads.

When doing a blocking read in a threaded application, all threads would
be blocked since the only thing the kernel knows about is the process.

...
 list discussing this problem:

http://archives.zmanda.com/amanda-archives/viewtopic.php?t=4763sid=f86451987866cfccc9fe363fe7546a7b

If I got it correctly the clients only have one thread, so then I guess
you could do:
 fcntl(datafd, F_GETFL, 0);
without getting any side effects.

But on the other hand that is an ugly work around, and ugly work arounds
 tends to cause other problems in the future. So I say get rid of the
pthreads dependency since the clients are single threaded anyway.

br
Hekan
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKqTVLfu+aNIkyxzsRAuzuAJ4wP4qsamRwxoNGqW4EhJyz8AAuFACeLE7Y
l4Q1AvYMn3Uh/nMELi/gRTs=
=88yz
-END PGP SIGNATURE-



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Brynet
Hi Milan,

David Vasek was on the right track with his message, it seems likely
that the driver is bailing out on line 1439 in /usr/src/sys/scsi/sd.c.

1423:   /*
1424:* Restrict blksize values to powers of two between 512 and 64k.
1425:*/
1426:   switch (dp-blksize) {
1427:   case 0x200: /* == 512, == DEV_BSIZE on all architectures. */
1428:   case 0x400:
1429:   case 0x800:
1430:   case 0x1000:
1431:   case 0x2000:
1432:   case 0x4000:
1433:   case 0x8000:
1434:   case 0x1:
1435:   break;
1436:   default:
1437:   SC_DEBUG(sd-sc_link, SDEV_DB1,
1438:   (sd_get_parms: bad blksize: %#x\n, dp-blksize));
1439:   return (SDGP_RESULT_OFFLINE);
1440:   }

Adding a special case for 0x208 after 0x200 may let the driver
attach.. this way you can dump the raw data off of the disk.

All bets are off after dumping the data, what file system were you using on it?

-Brynet



Informacion importante nuevos horarios de atencion

2009-09-10 Thread Computerland
 http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cCEUGA0hXVAoKUQAF

 Ofertas
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 Noticias
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cCkUGA0hXVAoKUQAF

 Novedades
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cDUUGA0hXVAoKUQAF

 

 http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cDEUGA0hXVAoKUQAF

 http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 mas informacion
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cDEUGA0hXVAoKUQAF

 mas informacion
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 mas informacion
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 mas informacion
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 mas informacion
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 mas informacion
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cC0UGA0hXVAoKUQAF

 http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cD0UGA0hXVAoKUQAF

 **GUAYMAS

 Calle 10 No. 145 A

 Col. Centro

 Guaymas, Sonora

 Tel: 01(622) 224-6277**

 **COMPUTERLAND MATRIZ

 Gabriel CastaC1os No. 9

 Col. Arcos Vallarta

 Guadalajara Jalisco

 Tel: 01(33) 3915-**

 **CIUDAD DE MEXICO

 Av. IPN No. 2051 Piso 1

 Col. Linda Vista

 MC)xico, D.F.

 Tel: 01(55) 4334-0344**



center
Para darse de baja de esta lista visite
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ5VC0UGA0hXVAoKUQAF

Para actualizar sus preferencias visite
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cAUUGA0hXVAoKUQAF

Para reenviar esto a un amigo visite
http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ9cAEUGA0hXVAoKUQAF

a
href='http://www.computerlandnews.info/lt.php?id=ZR4HBwYNCQ5VCkUGA0hXVAoKUQAFPolmtica
De Privacidad/a



/center


--
Powered by Wadil Works, www.wadilworks.com --



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Marco Peereboom
I would love to get my hands on such a drive :-)

EMC uses the same magic; they cram stuff in the additional 8 bytes.

On Thu, Sep 10, 2009 at 06:41:08PM +0200, Milan Prihoda wrote:
 Brynet wrote:
 Milan Prihoda wrote:
   
 These drives have 520KByte sector size instead of 512KByte.
 Is there any way how to dump raw data from these drives without
 reformat drive to different sector size ?
 

 Most disks have a sector size of 512 bytes, not kilobytes.

 -Brynet

   
 Hi,
 i should apologize for incompletely question (with mistakes)
 so again (and better :-)

 Yes, of course drives have sector size of 520bytes not kilobytes,
 it was my typo fail.


 # dmesg | grep sd2
 sd2 at scsibus0 targ 2 lun 0: IBMAS400, DFHSS4W, 4I4I SCSI2 0/direct fixed
 sd2: drive offline

 # fdisk sd2
 fdisk: sd2: Device not configured

 # disklabel sd2
 disklabel: /dev/rsd2c: Device not configured

 # dd=/dev/rsd2c of=disk1.img
 dd: /dev/rsd2c: Device not configured



 I tried this drive in a linux box and dmesg told me:
 # dmesg | grep sdb
 sd 0:0:3:0: [sdb] Unsupported sector size 520.
 sd 0:0:3:0: [sdb] 0 512-byte hardware sectors: (0 B/0 B)
 sd 0:0:3:0: [sdb] Write Protect is off
 sd 0:0:3:0: [sdb] Mode Sense: a7 00 10 08
 sd 0:0:3:0: [sdb] Write cache: disabled, read cache: enabled, supports  
 DPO and FUA
 sd 0:0:3:0: [sdb] Attached SCSI disk

 and there i get knowledge about 520byte sector size.

 I would like to get raw data from this drive.
 Ok - if it's impossible, i want to say it. :-)

 Thank. Milan



Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Dustin J. Mitchell
On Thu, Sep 10, 2009 at 12:34 PM, Michael Burkbur...@gmail.com wrote:
 Does newer Amanda use threads? With pthread, stdio will be silently
 changed to _non_ blocking.

Wait, what?!

When does this happen?  At exec? And does it just apply to fd's 0-2?
Can you point me to a manpage?

Dustin

(michael and stuart - if this doesn't make it to misc@, please forward it along)

-- 
Open Source Storage Engineer
http://www.zmanda.com



Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Philip Guenther
On Thu, Sep 10, 2009 at 11:13 AM, Dustin J. Mitchell dus...@zmanda.com
wrote:
 On Thu, Sep 10, 2009 at 12:34 PM, Michael Burkbur...@gmail.com wrote:
 Does newer Amanda use threads? With pthread, stdio will be silently
 changed to _non_ blocking.

 Wait, what?!

This is all behind the applications back, between the thread library
and the kernel.  Ideally it would be completely invisible to the
application, but while the library can hide it from and single
process, it can't hide it from other processes and there are problems
with the threaded process forks and exits or execs.


 When does this happen?  At exec? And does it just apply to fd's 0-2?
 Can you point me to a manpage?

It happens at initialization time of libpthread and is undone at exit
and exec.  It applies to all fds.  There is no manpage, as it's not
(supposed to be) application visible.


Philip Guenther



OnlineHotel, 5 years working with you for your success!

2009-09-10 Thread OnlineHotel
Online Hotel

 

OnlineHotel, 5 years working with you for your success!

 

Hello

 

Meet one of the best websites of Latin America on online hotel reservations.
Having 5 years of experience on the market, OnlineHotel brings out its
newest reservation system.

 

OnlineHotel system helps you sell daily reservations online to the whole
world with instant confirmation and much more safety. Besides, our control
and transaction systems are entirely developed with the most modern
techniques on the digital market.

 

See our advantages:

 

- Free registration and publicity, there is no service taxes;

 

- By registering OnlineHotel your hotel gets access to an exclusive Control
Panel. You can manage price, vacancy and more;

 

- Guests pay OnlineHotel just 10% of the daily reservation. The other 90% is
paid directly to your hotel according to your payment policy;

 

- OnlineHotel gives you access to an exclusive Control Panel to monitor your
reservation requests and necessary configurations (price, vacancy, pictures,
etc);

 

- When a reservation request is confirmed through OnlineHotel, you receive a
message in your registered e-mail. You can also follow these information on
your Control Panel;

 

- You will receive reservation requests from all over the world!

 

Meet right now these news tools at
http://onlinehotel.com.br/secure/hotel_register
http://onlinehotel.com.br/secure/hotel_register and be a part of this world.

 

Thank you for you attention. We look forward to see you with us!

 

Sincerely,

 

 

OnlineHotel

 http://www.onlinehotel.com.br/ http://www.onlinehotel.com.br

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
image001.jpg]



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda

Hi Brynet,
thank You very much for Your idea.
It works :-)

Brynet wrote:

Hi Milan,

David Vasek was on the right track with his message, it seems likely
that the driver is bailing out on line 1439 in /usr/src/sys/scsi/sd.c.

1423:   /*
1424:* Restrict blksize values to powers of two between 512 and 64k.
1425:*/
1426:   switch (dp-blksize) {
1427:   case 0x200: /* == 512, == DEV_BSIZE on all architectures. */
1428:   case 0x400:
1429:   case 0x800:
1430:   case 0x1000:
1431:   case 0x2000:
1432:   case 0x4000:
1433:   case 0x8000:
1434:   case 0x1:
1435:   break;
1436:   default:
1437:   SC_DEBUG(sd-sc_link, SDEV_DB1,
1438:   (sd_get_parms: bad blksize: %#x\n, dp-blksize));
1439:   return (SDGP_RESULT_OFFLINE);
1440:   }

Adding a special case for 0x208 after 0x200 may let the driver
attach.. this way you can dump the raw data off of the disk.

All bets are off after dumping the data, what file system were you using on it?

-Brynet




Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda

Milan Prihoda wrote:

Hi Brynet,
thank You very much for Your idea.
It works :-)

Brynet wrote:

Hi Milan,

David Vasek was on the right track with his message, it seems likely
that the driver is bailing out on line 1439 in /usr/src/sys/scsi/sd.c.

1423:/*
1424: * Restrict blksize values to powers of two between 512 and 
64k.

1425: */
1426:switch (dp-blksize) {
1427:case 0x200: /* == 512, == DEV_BSIZE on all 
architectures. */

1428:case 0x400:
1429:case 0x800:
1430:case 0x1000:
1431:case 0x2000:
1432:case 0x4000:
1433:case 0x8000:
1434:case 0x1:
1435:break;
1436:default:
1437:SC_DEBUG(sd-sc_link, SDEV_DB1,
1438:(sd_get_parms: bad blksize: %#x\n, dp-blksize));
1439:return (SDGP_RESULT_OFFLINE);
1440:}

Adding a special case for 0x208 after 0x200 may let the driver
attach.. this way you can dump the raw data off of the disk.

All bets are off after dumping the data, what file system were you 
using on it?

I have no idea about filesystem, because these drives are from old
(but risc) as/400 machine. There are four root drives, i dont know, 
in which configuration of raid (if there is smth like raid) they are.

I am just curious.
So again, thank you all.


-Brynet




Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda

Brynet wrote:

Hi Milan,

I'm glad that it works.. can you post the new attachment message? :)

-Brynet

  

Do you mean this :?

# dmesg | grep sd2
sd2 at scsibus0 targ 2 lun 0: IBMAS400, DFHSS4W, 4I4I SCSI2 0/direct fixed
sd2: 4173MB, 520 bytes/sec, 8414494 sec total



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Brynet
Hi Milan,

I'm glad that it works.. can you post the new attachment message? :)

-Brynet



Re: Amanda backup problem on OpenBSD 4.5

2009-09-10 Thread Dustin J. Mitchell
On Thu, Sep 10, 2009 at 2:29 PM, Philip Guentherguent...@gmail.com wrote:
 It happens at initialization time of libpthread and is undone at exit
 and exec. B It applies to all fds. B There is no manpage, as it's not
 (supposed to be) application visible.

OK, so basically this is an OpenBSD/pthread bug.  I'm still sort of
shell-shocked here.  The idea is that *all* file descriptors are made
non-blocking, and then the file-descriptor syscalls are wrapped to
pretend they are blocking.  As long as all of the code operating on
those pseudo-blocking files is using the wrapped syscalls, all is
well.  However, when one of those files is accessed by a binary not
linked to libpthread, the illusion breaks down.

Do I have that right?

Why does the fcntl(fd, F_GETFL) fix it?  Does it really fix it, or are
we just lucky?

This sounds like more of a design bug than a code bug, so I don't
expect a fix in a 4.5 patch release.  So we'll need to do something to
work around it in Amanda.  Presumably this is a fairly common problem,
so what is the usual solution?

Dustin

--
Open Source Storage Engineer
http://www.zmanda.com



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda

Line 1423 and following of /usr/src/sys/scsi/sd.c show that we will
only accept devices with sector sizes that are multiples of 512
(DEV_BSIZE). Others will be impossible to open.

Now, if you delete that code you may be able to open the raw device.
No idea, but I'd be interested in what happens. :-).

DEV_BSIZE of 512 is deeply imbedded in the kernel.

 Ken

  


Hi Ken,
I not deleted any line

# diff -u sd.c-origin sd.c 
--- sd.c-origin Thu Sep 10 21:53:44 2009

+++ sd.cThu Sep 10 20:17:41 2009
@@ -1425,6 +1425,7 @@
*/
   switch (dp-blksize) {
   case 0x200: /* == 512, == DEV_BSIZE on all architectures. */
+   case 0x208:
   case 0x400:
   case 0x800:
   case 0x1000:


and now,
# dd if=/dev/rsd2c of=disk1.img bs=520

works for me :-)



Relevant article

2009-09-10 Thread Daniel Bolgheroni
Hi,

since Nick Holland touched on the DESIGN aspect in his e-mail regarding 
supporting OpenBSD, I think this article pretty much reflects the 
reality here.

http://www.osnews.com/story/22135/The_Problem_with_Design_and_Implementation

Just think it's worth reading.

Teers,

--
Daniel Bolgheroni
FEI - Faculdade de Engenharia Industrial
http://www.dbolgheroni.eng.br/mykey

ASCII ribbon campaign ( )
 against HTML e-mail   X
  / \



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Kenneth R Westerback
On Thu, Sep 10, 2009 at 06:41:08PM +0200, Milan Prihoda wrote:
 Brynet wrote:
 Milan Prihoda wrote:
 These drives have 520KByte sector size instead of 512KByte.
 Is there any way how to dump raw data from these drives without
 reformat drive to different sector size ?
 
 Most disks have a sector size of 512 bytes, not kilobytes.
 
 -Brynet
 
 Hi,
 i should apologize for incompletely question (with mistakes)
 so again (and better :-)
 
 Yes, of course drives have sector size of 520bytes not kilobytes,
 it was my typo fail.
 
 
 # dmesg | grep sd2
 sd2 at scsibus0 targ 2 lun 0: IBMAS400, DFHSS4W, 4I4I SCSI2 0/direct fixed
 sd2: drive offline

Line 1423 and following of /usr/src/sys/scsi/sd.c show that we will
only accept devices with sector sizes that are multiples of 512
(DEV_BSIZE). Others will be impossible to open.

Now, if you delete that code you may be able to open the raw device.
No idea, but I'd be interested in what happens. :-).

DEV_BSIZE of 512 is deeply imbedded in the kernel.

 Ken

 
 # fdisk sd2
 fdisk: sd2: Device not configured
 
 # disklabel sd2
 disklabel: /dev/rsd2c: Device not configured
 
 # dd=/dev/rsd2c of=disk1.img
 dd: /dev/rsd2c: Device not configured
 
 
 
 I tried this drive in a linux box and dmesg told me:
 # dmesg | grep sdb
 sd 0:0:3:0: [sdb] Unsupported sector size 520.
 sd 0:0:3:0: [sdb] 0 512-byte hardware sectors: (0 B/0 B)
 sd 0:0:3:0: [sdb] Write Protect is off
 sd 0:0:3:0: [sdb] Mode Sense: a7 00 10 08
 sd 0:0:3:0: [sdb] Write cache: disabled, read cache: enabled,
 supports DPO and FUA
 sd 0:0:3:0: [sdb] Attached SCSI disk
 
 and there i get knowledge about 520byte sector size.
 
 I would like to get raw data from this drive.
 Ok - if it's impossible, i want to say it. :-)
 
 Thank. Milan



Re: Relevant article

2009-09-10 Thread Bernd Siggy Brentrup
On Thu, Sep 10, 2009 at 17:09 +, Daniel Bolgheroni wrote:
 Hi,

 since Nick Holland touched on the DESIGN aspect in his e-mail regarding
 supporting OpenBSD, I think this article pretty much reflects the
 reality here.


http://www.osnews.com/story/22135/The_Problem_with_Design_and_Implementation

 Just think it's worth reading.

What came to my mind while reading this article is an almost 30yo
tale from the times of my first encounter with Unix release 6 on
PDP11.  I was studying CS at TU Berlin then and we had a OS Prof
Siggi Schindler (he's the reason why I use the 'y') who also
led a course on the ISO 7 layer model with practical applications.
AFAIR everything essentially boiled down to having a *precise
specification language*.  If you have such a language the only
thing left to do is building a machine that accepts this language
as it's programming language.  In this sense implementing a
specification in any existing programming language is equivalent
to implementing a subset of said machine on top of an existing
one.

Siggy
--
O ascii ribbon campaign - stop html mail - www.asciiribbon.org+
|36 days until|bsb-at-psycho-dot-informationsanarchistik-dot-de|
|www.Ubucon.de|or:bsb-at-psycho-dot-i21k-dot-de|
+--- ceterum censeo javascriptum esse restrictam +

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Marco Peereboom
There are a million spots where 512 is hard coded...

On Thu, Sep 10, 2009 at 10:03:07PM +0200, Milan Prihoda wrote:
 Line 1423 and following of /usr/src/sys/scsi/sd.c show that we will
 only accept devices with sector sizes that are multiples of 512
 (DEV_BSIZE). Others will be impossible to open.

 Now, if you delete that code you may be able to open the raw device.
 No idea, but I'd be interested in what happens. :-).

 DEV_BSIZE of 512 is deeply imbedded in the kernel.

  Ken

   

 Hi Ken,
 I not deleted any line

 # diff -u sd.c-origin sd.c --- sd.c-origin Thu Sep 10 21:53:44 2009
 +++ sd.cThu Sep 10 20:17:41 2009
 @@ -1425,6 +1425,7 @@
 */
switch (dp-blksize) {
case 0x200: /* == 512, == DEV_BSIZE on all architectures. */
 +   case 0x208:
case 0x400:
case 0x800:
case 0x1000:


 and now,
 # dd if=/dev/rsd2c of=disk1.img bs=520

 works for me :-)



Re: Relevant article

2009-09-10 Thread Bernd Siggy Brentrup
On Thu, Sep 10, 2009 at 23:15 +0200, Bernd Siggy Brentrup wrote:

 [demime 1.01d removed an attachment of type
  application/pgp-signature which had a name of signature.asc]

Oops, in general I gpg-sign my mails with a detached signature but if
it's this list's policy not to do so I'll refrain from it.

Siggy
-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org+
|36 days until|bsb-at-psycho-dot-informationsanarchistik-dot-de|
|www.Ubucon.de|or:bsb-at-psycho-dot-i21k-dot-de|
+--- ceterum censeo javascriptum esse restrictam +



Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Jon Simola
On Thu, Sep 10, 2009 at 10:46 AM, Marco Peereboom sl...@peereboom.us wrote:
 I would love to get my hands on such a drive :-)

 EMC uses the same magic; they cram stuff in the additional 8 bytes.

I inherited a couple of shelves from an old EMC setup, and ended up
using Seagate's SeaTools Enterprise Edition to reformat them from 520
to 512 byte sectors. It looks like it can do 512, 520, 1024, or user
defined bytes per block.

If you actually want one, I've got some old 9GB 80pin Seagate Cheetahs
I could convert, or I might even have one of the 36GB FibreChannel
drives from the EMC shelf that wasn't converted.

As an aside, I used a shelf with ten of the 36GB drives to see if they
would be reasonably useful as a softraid set. Worked great, but the
operating cost would have been about $200/year

-- 
Jon



route-to/reply-to broken on amd64?

2009-09-10 Thread Vadim Zhukov
Hello all.

Can anyone ack that route-to/reply-to rules do not work on amd64?
I have the following rule in pf.conf:

pass in quick on $limit_if inet proto icmp icmp-type echoreq \
reply-to ($limit_if $limit_gw)

It does not work (IPs replaced via corresponding macros by me),
see tcpdump(8) output:

02:00:58.171084 77.108.65.40  ($limit_if): icmp: echo request
02:00:58.171113 77.108.65.40  $limit_gw: icmp: echo request

Yep, such weird. And when I remove reply-to clause, it works as
intended:

01:53:11.174644 77.108.65.40  ($limit_if): icmp: echo request

No ICMP replies seen - they try to go via default route that is on
another interface.

There are similar problems with route-to: it looks like acting as
rdr-to, replacing destination IP address.

I have no problems on i386 firewall with same sort of setup.

System was updated via snapshot two days ago, and then kernel and
pfctl(8) were rebuilt then from source while debugging this case. Full
dmesg is at the end of letter.

Thank you for any responses.

-- 
  Best wishes,
Vadim Zhukov

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

P.S.: Sorry for my bad English.


OpenBSD 4.6-current (GENERIC.MP) #11: Wed Sep  9 16:17:29 MSD 2009
p...@proxy.corp.arbat21.ru:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1071251456 (1021MB)
avail mem = 1036410880 (988MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xdc010 (43 entries)
bios0: vendor HP version O22 date 04/09/2008
bios0: HP ProLiant DL120 G5
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SPMI EINJ HEST BERT SSDT ERST MCFG HPET APIC BOOT SPCR 
SSDT SSDT SSDT
acpi0: wakeup devices USB4(S3) USB5(S3) USB7(S3) ESB2(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) EXP4(S4) EXP5(S4) EXP6
(S4) USB1(S3) USB2(S3) USB3(S3) USB6(S3) ESB1(S3) PCIB(S3) PWRB(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) Xeon(R) CPU 3065 @ 2.33GHz, 2333.68 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: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 333MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Xeon(R) CPU 3065 @ 2.33GHz, 2333.34 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: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEG1)
acpiprt2 at acpi0: bus -1 (PEG2)
acpiprt3 at acpi0: bus 5 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus 13 (EXP5)
acpiprt8 at acpi0: bus 14 (EXP6)
acpiprt9 at acpi0: bus 17 (PCIB)
acpicpu0 at acpi0: C3, PSS
acpicpu1 at acpi0: C3, PSS
acpibtn0 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2333 MHz: speeds: 2333, 2000 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel 3200/3210 Host rev 0x01
ppb0 at pci0 dev 1 function 0 Intel 3200/3210 PCIE rev 0x01: apic 2 int 16 
(irq 5)
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 Intel PRO/1000 PT (82571EB) rev 0x06: apic 2 int 
16 (irq 5), address 
00:15:17:93:a1:04
em1 at pci1 dev 0 function 1 Intel PRO/1000 PT (82571EB) rev 0x06: apic 2 int 
17 (irq 10), address 
00:15:17:93:a1:05
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x02: apic 2 int 16 (irq 
5)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x02: apic 2 int 17 (irq 
10)
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x02: apic 2 int 18 (irq 
3)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x02: apic 2 int 18 (irq 
3)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x02: apic 2 int 16 (irq 
5)
pci2 at ppb1 bus 5
em2 at pci2 dev 0 function 0 Intel PRO/1000 PT (82571EB) rev 0x06: apic 2 int 
16 (irq 5), address 
00:1f:29:54:2f:78
em3 at pci2 dev 0 function 1 Intel PRO/1000 PT (82571EB) rev 0x06: apic 2 int 
17 (irq 10), address 
00:1f:29:54:2f:79
ppb2 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x02: apic 2 int 16 (irq 
5)
pci3 at ppb2 bus 13
vga1 at pci3 dev 0 function 0 Matrox MGA G200e (ServerEngines) rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb3 at pci0 dev 28 function 5 Intel 82801I PCIE rev 0x02: apic 2 int 17 (irq 
10)
pci4 at ppb3 bus 14
bge0 at pci4 dev 0 function 0 Broadcom BCM5722 rev 0x00, BCM5755 C0 (0xa200): 
apic 2 int 17 (irq 10), 
address 00:1f:29:0e:7b:57
brgphy0 at bge0 phy 1: BCM5722 

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread David Vasek

On Thu, 10 Sep 2009, Milan Prihoda wrote:


and now,
# dd if=/dev/rsd2c of=disk1.img bs=520

works for me :-)


Are you sure you are getting all 520 bytes from each sector and not only 
first 512 bytes? Can you verify it?


Regards,
David



Re: route-to/reply-to broken on amd64?

2009-09-10 Thread Laurent Ghigonis
On Fri, 11 Sep 2009 02:23:54 +0400
Vadim Zhukov persg...@gmail.com wrote:
 Hello all.
 
 Can anyone ack that route-to/reply-to rules do not work on amd64?
 I have the following rule in pf.conf:
 
 pass in quick on $limit_if inet proto icmp icmp-type echoreq \
 reply-to ($limit_if $limit_gw)
 
 It does not work (IPs replaced via corresponding macros by me),
 see tcpdump(8) output:
 
 02:00:58.171084 77.108.65.40  ($limit_if): icmp: echo request
 02:00:58.171113 77.108.65.40  $limit_gw: icmp: echo request
 
 Yep, such weird. And when I remove reply-to clause, it works as
 intended:
 
 01:53:11.174644 77.108.65.40  ($limit_if): icmp: echo request
 
 No ICMP replies seen - they try to go via default route that is on
 another interface.
 
 There are similar problems with route-to: it looks like acting as
 rdr-to, replacing destination IP address.
 
 I have no problems on i386 firewall with same sort of setup.
 
 System was updated via snapshot two days ago, and then kernel and
 pfctl(8) were rebuilt then from source while debugging this case. Full
 dmesg is at the end of letter.
 
 Thank you for any responses.
 

i think i have the same problem on amd64 (current) with reply-to

the reply-to ($if $gw) makes reply go to $gw instead of the sender
it was working before the pf nat change

laurent



Re: New spammers' behaviour pattern

2009-09-10 Thread David Richardson
So would it make sense to use the whois system to get the aproval/created 
dates for the domain as well,  and treat them the same way as if the were 
not MX servers for their tasting time, and greylist them for that period. 
Real domains you want to talk to can be whitelisted.


- Original Message - 
From: Lars Nooden lars.cura...@gmail.com
To: Steve Fairhead st...@fivetrees.com
Cc: misc@openbsd.org
Sent: Tuesday, September 08, 2009 2:20 AM
Subject: Re: New spammers' behaviour pattern


 Steve Fairhead wrote:
   - Mail originates from a correctly-configured mailserver, typically 
 called
 ssl.somedomain.com, so spamd doesn't catch it.
   - The domain is entirely sacrificial, and may only exist for a few days
 before being blocked by the registrar (or blacklisted by me).

 Domain tasting has been, from the beginning, set up with the goal of
 spamming:
 http://public.icann.org/issues/domain-name-tasting
 mail spamming is just a variation on the theme.

 Some registrars might be considering ending the practice.  The problem
 won't go away by ignoring it.

 regards,
 -Lars



Re: route-to not working*resolved*

2009-09-10 Thread Lawrence-Sporkton

Lawrence-Sporkton wrote:

I have 2 openbsd 4.5 firewalls running, one in colo, one behind
residential cable(firewall has a public on it). I am trying to nat on the
colo firewall, a box that is behind the cable connection through a tunnel
to allow public IPs from the colo to be used on servers which reside
behind a residential cable connection. I am trying to source route on the
residential side to get the reply traffic back up to the colo and out.

Normal traffic through the tunnel works fine outside of the servers which
are getting natted. The traffic for the servers which are 10.0.0.20, .21
and .22 comes in the colo, gets natted fine(per tcpdump), sent to server,
server responds, however in the cable firewall instead of sending the
traffic back out the tunnel to the colo, it sends it out the local cable
interface. per tcpdump everything looks fine until the reply traffic hits
the residential firewall, then doesnt route back up to the colo properly.
any suggestions?

Thank you,
Lawrence

I have set up an ipsec tunnel between loopback interfaces, then set up a
gre tunnel between the 2 loopbacks.
as seen here on the colo side: the other side is the reverse

***from the colo box***
# ipsecctl -s flow
flow esp in from 10.254.254.2 to 10.254.254.1 peer $public_ip srcid
fire02 dstid fire01 type use
flow esp out from 10.254.254.1 to 10.254.254.2 peer $public_ip srcid
fire02 dstid fire01 type require

# ifconfig lo1
lo1: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33204
priority: 0
groups: lo
inet 10.254.254.1 netmask 0x
# ifconfig gre0
gre0: flags=9011UP,POINTOPOINT,LINK0,MULTICAST mtu 1476
priority: 0
groups: gre
physical address inet 10.254.254.1 -- 10.254.254.2
inet 10.254.254.5 -- 10.254.254.6 netmask 0xfffc
inet6 fe80::20c:29ff:fe9e:d536%gre0 -  prefixlen 64 scopeid 0x7
#
# route show | grep 10.0.0/24
10.0.0/24  10.254.254.6   UGS0 1318 - 8
gre0

***from the residential box***
# pfctl -s rules
scrub in on xl0 all fragment reassemble
block drop in all
block drop in quick from ssh-attack to any
pass out all flags S/SA keep state
pass on gre0 all flags S/SA keep state
pass in on xl1 all flags S/SA keep state
pass in on xl0 inet proto tcp from any to (xl0) port = ssh flags S/SA
synproxy state (source-track rule, max-src-conn-rate 4/30, overload
ssh-attack flush global, src.track 30)
pass in on xl0 inet proto udp from any to (xl0) port = isakmp keep state
pass in on xl0 inet proto udp from any to (xl0) port = ipsec-nat-t keep
state
pass in on xl0 inet proto icmp from any to (xl0) keep state
pass in on xl0 inet proto esp from any to (xl0) keep state
pass out on xl0 route-to (gre0 10.254.254.5) inet from 10.0.0.20 to any
flags S/SA keep state
pass out on xl0 route-to (gre0 10.254.254.5) inet from 10.0.0.21 to any
flags S/SA keep state
pass out on xl0 route-to (gre0 10.254.254.5) inet from 10.0.0.22 to any
flags S/SA keep state

  




Resolved this, switched out my route-to with:
The route/reply-to must be on the state creating rule it seems

pass in  on gre0reply-to (gre0 10.254.254.5) from any to {10.0.0.20, 
10.0.0.21, 10.0.0.22}
pass in  on $int_if route-to (gre0 10.254.254.5) from {10.0.0.20, 
10.0.0.21, 10.0.0.22} to any