Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dom0 kernel immediate reboot?



On Fri, 14 Sep 2007 20:15:38 +1000
Sarton O'Brien <bsd-xen%roguewrt.org@localhost> wrote:

> On Mon, 10 Sep 2007 09:24:19 pm Juan RP wrote:
> > On Mon, 10 Sep 2007 10:30:11 +0300
> >
> > Mikolaj Golub <to.my.trociny%gmail.com@localhost> wrote:
> > > On Mon, 10 Sep 2007 17:13:40 +1000 Sarton O'Brien wrote:
> > >
> > >  SO> I just realised I don't know how to tell what version of ffs I am
> > >  SO> using.
> > >
> > > You can use dumpfs(8) for this.
> >
> > And scan_ffs(8).
> 
> Umm ... which one is right??
> 
> $ df /dev/wd0a
> Filesystem   1K-blocks        Used      Avail %Cap Mounted on
> /dev/wd0a       198831      45824     143066  24% /
> 
> $ dumpfs /dev/wd0a|grep -i ffs
> cylgrp  dynamic inodes  4.4BSD  sblock  FFSv2   fslevel 4
> 
> $ scan_ffs /dev/wd0
> Disk: WDC WD800JD-75M
> Total sectors on disk: 156250000
> FFSv1 at 63 size 410256, last mounted on /
> 
> Now I'm just lost :P
> 
> Seriously though is there something else I can use to point the finger at 
> which one is wrong?

Clearly dumpfs(8) is wrong, take a look at my test:

$ sudo vnconfig vnd0 foo.img
$ sudo disklabel -iI vnd0
partition> P
4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
a:   1048576         0     4.2BSD      0     0     0  # (Cyl.      0 - 511)
d:   1048576         0     unused      0     0        # (Cyl.      0 - 511)
partition> W
Label disk [n]? y
Label written
partition> Q
$ sudo newfs /dev/rvnd0a

/dev/rvnd0a: 512.0MB (1048576 sectors) block size 8192, fragment size 1024
using 12 cylinder groups of 42.67MB, 5462 blks, 10624 inodes. super-block
backups (for fsck_ffs -b #) at: 32, 87424, 174816, 262208, 349600, 436992,
524384, 611776, 699168, 786560, 873952, 961344,

$ scan_ffs -l vnd0
Disk: vnd
Total sectors on disk: 1048576

#        size    offset fstype [fsize bsize cpg/sgs]
X:    1048576         0 4.2BSD   1024  8192       1 #  [FFSv1]
^C
$ dumpfs -s vnd0a|grep -i
ffs cylgrp  dynamic inodes  4.4BSD  sblock  FFSv2   fslevel 4
$

dumpfs(8) should say "4.4BSD and sblock FFS".

-- 
Juan Romero Pardines    - The NetBSD Project
http://plog.xtrarom.org - NetBSD/pkgsrc news in Spanish



Home | Main Index | Thread Index | Old Index