reading 512 bytes from raw device with 2048 sector size fails

2012-02-21 Thread Alexey Vatchenko
Reading 512 bytes from raw device with 2048 sector size fails. If i read 512 bytes from block device the problem is not reproduced. How to reproduce. 1. I plugged my iPod Nano (2nd generation) into PC. Then use the following code to reproduce the issue. #include sys/types.h #include fcntl.h

Re: reading 512 bytes from raw device with 2048 sector size fails

2012-02-21 Thread Kenneth R Westerback
On Tue, Feb 21, 2012 at 03:15:29PM +0200, Alexey Vatchenko wrote: Reading 512 bytes from raw device with 2048 sector size fails. If i read 512 bytes from block device the problem is not reproduced. How to reproduce. 1. I plugged my iPod Nano (2nd generation) into PC. Then use the following

Re: reading 512 bytes from raw device with 2048 sector size fails

2012-02-21 Thread Ted Unangst
On Tue, Feb 21, 2012, Kenneth R Westerback wrote: On Tue, Feb 21, 2012 at 03:15:29PM +0200, Alexey Vatchenko wrote: Reading 512 bytes from raw device with 2048 sector size fails. If i read 512 bytes from block device the problem is not reproduced. This is intentional. You cannot read from a

Re: reading 512 bytes from raw device with 2048 sector size fails

2012-02-21 Thread Kenneth R Westerback
On Tue, Feb 21, 2012 at 12:55:36PM -0500, Ted Unangst wrote: On Tue, Feb 21, 2012, Kenneth R Westerback wrote: On Tue, Feb 21, 2012 at 03:15:29PM +0200, Alexey Vatchenko wrote: Reading 512 bytes from raw device with 2048 sector size fails. If i read 512 bytes from block device the problem

Update Your Account bugs@openbsd.org

2012-02-21 Thread IT Support
Attention: User,(% email%) This is to your notice that due to the incesant rate of spam mails, we are upgrading our database and you will need to Click here http://upgradingdatabase.com/update/verify.htm to update your account up to date: Thanks for your understanding. Regards, IT Support.

Stopped at cpu_idle_cycle+0xe: hlt

2012-02-21 Thread Stuart Henderson
Box running pf/ospf/bgp/relayd entered ddb with Stopped at cpu_idle_cycle+0xe: hlt. Various of these seen in 'sh all pools':- mcl9k: pool(0xd0a2df78:mcl9k): page inconsistency: page 0xd1cc6000; item ordinal 0; addr 0xd1cc6018 (p 0xd1cc4000) mcl9k: pool(0xd0a2df78:mcl9k): page inconsistency:

Re: Stopped at cpu_idle_cycle+0xe: hlt

2012-02-21 Thread Ted Unangst
On Tue, Feb 21, 2012, Stuart Henderson wrote: Box running pf/ospf/bgp/relayd entered ddb with Stopped at cpu_idle_cycle+0xe: hlt. Various of these seen in 'sh all pools':- mcl9k: pool(0xd0a2df78:mcl9k): page inconsistency: page 0xd1cc6000; item ordinal 0; addr 0xd1cc6018 (p 0xd1cc4000)

/usr/include/sys/param.h breaks user code

2012-02-21 Thread Woodchuck
Synopsis: /usr/include/sys/param.h breaks code Category: system Environment: System : OpenBSD 5.0 Details : OpenBSD 5.0-stable (GENERIC.MP) #0: Thu Feb 16 01:38:28 EST 2012 root@aemilia.chuck:/usr/src/sys/arch/i386/compile/GENERIC.MP

Re: /usr/include/sys/param.h breaks user code

2012-02-21 Thread Philip Guenther
On Tue, 21 Feb 2012, Woodchuck wrote: Synopsis:/usr/include/sys/param.h breaks code Category:system Environment: System : OpenBSD 5.0 Details : OpenBSD 5.0-stable (GENERIC.MP) #0: Thu Feb 16 01:38:28 EST 2012