Date: Wed, 29 Jan 2003 15:55:14 -0800 From: Peter Wemm <peter@wemm.org> To: Juli Mallett <jmallett@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/newfs Makefile mkfs.c newfs.c newfs.h Message-ID: <20030129235514.B66CE2A8A0@canning.wemm.org> In-Reply-To: <20030129153533.A96402@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Juli Mallett wrote:
> * De: Peter Wemm <peter@wemm.org> [ Data: 2003-01-29 ]
> [ Subjecte: Re: cvs commit: src/sbin/newfs Makefile mkfs.c newfs.c newf
s.h ]
> > Juli Mallett wrote:
> > > jmallett 2003/01/29 14:52:27 PST
> > >
> > > Modified files:
> > > sbin/newfs Makefile mkfs.c newfs.c newfs.h
> > > Log:
> > > Back out conversion to libufs, for now. It seems to cause problems.
> >
> > BTW; have you done something to dumpfs recently? It doesn't seem work
> > anymore on ufs2 systems.. at least not on sparc64 anyway..
> >
> > peter@panther[3:28pm]~-10# dumpfs /dev/da0e
> > peter@panther[3:28pm]~-11#
>
>
> (jmallett@luna:~/dumpfs)38% sudo ./dumpfs /dev/ad0s1e
> magic 19540119 (UFS2) time Wed Jan 29 17:23:06 2003
> superblock location 65536 id [ 3d9241aa 6094c8dd ]
> ncg 4 size 65536 blocks 63351
> bsize 16384 shift 14 mask 0xffffc000
> fsize 2048 shift 11 mask 0xfffff800
> frag 8 shift 3 fsbtodb 2
> minfree 8% optim time symlinklen 120
> maxbsize 16384 maxbpg 2048 maxcontig 8 contigsumsize 8
> nbfree 896 ndir 391 nifree 13638 nffree 684
> bpg 2049 fpg 16392 ipg 4160
> nindir 2048 inopb 64 maxfilesize 140806241583103
> sbsize 2048 cgsize 4096 csaddr 576 cssize 2048
> sblkno 40 cblkno 48 iblkno 56 dblkno 576
> cgrotor 0 fmod 0 ronly 0 clean 0
> flags unclean soft-updates
>
> Fresh from CVS. I don't have a sparc64 system to play on right now,
> but lots of ufs2 systems... If it is quietly failing... Could you
> ktrace it and show me kdump?
Sure, its tiny:
peter@panther[3:36pm]/s/src-19# ls -l /sbin/dumpfs
-r-xr-xr-x 1 root wheel 127984 Jan 29 11:02 /sbin/dumpfs*
peter@panther[3:48pm]/tmp-25# ktrace dumpfs /dev/da0e
peter@panther[3:48pm]/tmp-25# kdump
...
96214 ktrace CALL execve(0x7fdfffff030,0x7fdfffff710,0x7fdfffff728)
96214 ktrace NAMI "/sbin/dumpfs"
96214 dumpfs RET execve -2288/0x7fdfffff710
96214 dumpfs CALL sysarch(0x1,0x117ca8)
96214 dumpfs RET sysarch 0
96214 dumpfs CALL open(0x117d18,0,0x1b6)
96214 dumpfs NAMI "/etc/fstab"
96214 dumpfs RET open 3
96214 dumpfs CALL fstat(0x3,0x7fdffffe660)
96214 dumpfs RET fstat 0
96214 dumpfs CALL readlink(0x118340,0x7fdffffe5c0,0x3f)
96214 dumpfs NAMI "/etc/malloc.conf"
96214 dumpfs RET readlink -1 errno 2 No such file or directory
96214 dumpfs CALL issetugid
96214 dumpfs RET issetugid 0
96214 dumpfs CALL getuid
96214 dumpfs RET getuid 0
96214 dumpfs CALL mmap(0,0x2000,0x3,0x1002,0xffffffffffffffff,0,0)
96214 dumpfs RET mmap 1075945472/0x4021a000
96214 dumpfs CALL break(0x2418b8)
96214 dumpfs RET break 0
96214 dumpfs CALL break(0x2418b8)
96214 dumpfs RET break 0
96214 dumpfs CALL break(0x244000)
96214 dumpfs RET break 0
96214 dumpfs CALL break(0x244000)
96214 dumpfs RET break 0
96214 dumpfs CALL break(0x246000)
96214 dumpfs RET break 0
96214 dumpfs CALL read(0x3,0x244000,0x2000)
96214 dumpfs GIO fd 3 read 493 bytes
"#Device Mountpoint FStype Options D\
ump Pass#
/dev/da0a / ufs rw 1\
1
/dev/da0b none swap sw 0\
0
/dev/da0e /usr ufs rw 2\
2
/dev/da0f /var ufs rw 2\
2
/dev/da0g /tmp ufs rw 2\
2
/dev/da0h /s ufs rw,nosuid,nodev 2\
2
/dev/da1e /t ufs rw,nosuid,nodev 2\
2
/dev/cd0a /cdrom cd9660 ro,noauto 0\
0
freefall:/c /freefall/c nfs ro,bg,intr,soft,n\
odev,nosuid 0 0
freefall:/d /freefall/d nfs rw,bg,intr,soft,n\
odev,nosuid 0 0
repoman:/r /repoman/r nfs rw,bg,intr,soft,n\
odev,nosuid 0 0
"
96214 dumpfs RET read 493/0x1ed
96214 dumpfs CALL statfs(0x117cb8,0x7fdffffe780)
96214 dumpfs NAMI "/"
96214 dumpfs RET statfs 0
96214 dumpfs CALL stat(0x21b9e8,0x7fdffffe8b0)
96214 dumpfs NAMI "/dev/da0a"
96214 dumpfs RET stat 0
96214 dumpfs CALL read(0x3,0x244000,0x2000)
96214 dumpfs GIO fd 3 read 0 bytes
""
96214 dumpfs RET read 0
96214 dumpfs CALL stat(0x7fdfffff91f,0x7fdfffff380)
96214 dumpfs NAMI "/dev/da0e"
96214 dumpfs RET stat 0
96214 dumpfs CALL open(0x7fdfffff91f,0,0)
96214 dumpfs NAMI "/dev/da0e"
96214 dumpfs RET open 4
96214 dumpfs CALL pread(0x4,0x221860,0x2000,0,0x10000)
96214 dumpfs GIO fd 4 read 8192 bytes
"\0\0\0\0\0\0\0\0\0\0\0H\0\0\0P\0\0\0X\0\0\v\M-(\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^W\0\0 \0\0\0\^D\0\0\0\0\b\0\0\0\b\0\
\0\0\0\0\0\0\0\M^?\M^?\M-`\0\M^?\M^?\M-|\0\0\0\0\r\0\0\0
\0\0\0\^P\0\0\^D\0\0\0\0\^C\0\0\0\^A\0\0\b\0\0\0\0\0\0\0\0\0\0\0\
\^D\0\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\^V\M^FV\
\M-8\M-t\M-,\0\0\0\0\0\0\^D\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0-@\0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0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\0\0\0\0@\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\^B\0\0\0\^P\0\0\0x\0\0\0\0\0\0\b\^B\0\M^A\^?\M^?\0\0\0\0\0\0\
\^_\M^?\0\0\0\0\0\0\^C\M^?\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\^YT\^A\^Y\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
[.. rest of block of all zeros trimmed out ..]
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0"
96214 dumpfs RET pread 8192/0x2000
96214 dumpfs CALL exit(0x1)
ie: it reads the superblock (see the /usr) and then exits silently.
You can test this for yourself on /dev/da1e on panther.freebsd.org.
Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030129235514.B66CE2A8A0>
