gjournal error

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Apr 2 23:19:29 UTC 2007


On Tue, Apr 03, 2007 at 08:37:58AM +1000, Antony Mawer wrote:
> On 3/04/2007 2:12 AM, Pawel Jakub Dawidek wrote:
> >On Mon, Apr 02, 2007 at 12:35:10PM +0300, Dan Cojocar wrote:
> ...
> >>Here it is:
> >>bsdlabel /dev/ad1s1
> >>                                                       12:32:40
> >># /dev/ad1s1:
> >>8 partitions:
> >>#        size   offset    fstype   [fsize bsize bps/cpg]
> >> c: 234440625        0    unused        0     0         # "raw" part,
> >>don't edit
> >> d: 20971520        0    4.2BSD     2048 16384 28552
> >> e: 213469105 20971520    4.2BSD     2048 16384 28552
> >'d' partition is wrong, it should start at offset 16. You get EPERM
> >(error=1) when someone tries to write to first 16 sectors where metadata
> >is stored.
> 
> This point relates to a recent thread on -questions, where we were discussing the offset of 16 and whether it was still relevant. The issue arose because disklabel cannot 
> compute the "hog partition" when using an offset of 16 -- it (incorrectly) assumes the starting offset is is 0, and as a result the last partition goes past the end of the 
> disk.
> 
> http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1660728+0+archive/2007/freebsd-questions/20070401.freebsd-questions
> 
> What sort of meta-data is typically stored in these first 16 sectors? [...]

Partition table stored by bsdlabel(8).

> It sounds to me like disklabel needs to be modified in how it treats a "*" in the size field: on the 'c' partition, continue to use the full size of the device; if used on 
> any others, it needs to take into account the offset of the first non-'c' partition...
> 
> Does this sound right? If so, I may have a go at writing a patch at some point.

'bsdlabel -w' works correctly. The biggest issue is that sysinstall(8)
creates bogus partitions that start at offset 0.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20070402/92cd9a0d/attachment.pgp


More information about the freebsd-fs mailing list