Re: [PATCH] Fix sbin/fsdb/fsdbutil.c for r247212

看板FB_current作者時間12年前 (2013/04/27 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/4 (看更多)
--sgneBHv3152wZ8jf Content-Type: multipart/mixed; boundary="Md/poaVZ8hnGTzuv" Content-Disposition: inline --Md/poaVZ8hnGTzuv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 24, 2013 at 07:05:34AM -0800, David Wolfskill wrote: > ...hine was: > Simple patch attached; world is still building, but at least it got > through the "make dependencies" phase this time. > ... That was incomplete, as it didn't (also) address the change to getdatablk(). The attached patch actually made it through buildworld. Note that it is entirely possible that I erred in specifying "BT_UNKNOWN" for the additional "type" argument. Peace, david --=20 David H. Wolfskill david@catwhisker.org Taliban: Evil men with guns afraid of truth from a 14-year old girl. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --Md/poaVZ8hnGTzuv Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fsdbutil.c.patch" Content-Transfer-Encoding: quoted-printable Index: sbin/fsdb/fsdbutil.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sbin/fsdb/fsdbutil.c (revision 247218) +++ sbin/fsdb/fsdbutil.c (working copy) @@ -239,11 +239,11 @@ /* for the final indirect level, don't use the cache */ bp =3D &buf; bp->b_un.b_buf =3D bufp; - initbarea(bp); + initbarea(bp, BT_UNKNOWN); =20 getblk(bp, blk, sblock.fs_bsize); } else - bp =3D getdatablk(blk, sblock.fs_bsize); + bp =3D getdatablk(blk, sblock.fs_bsize, BT_UNKNOWN); =20 cpl =3D charsperline(); for (i =3D charssofar =3D 0; i < NINDIR(&sblock); i++) { --Md/poaVZ8hnGTzuv-- --sgneBHv3152wZ8jf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEqMP8ACgkQmprOCmdXAD3LDACeLZ4syFP5HGQISbqz9RuUm9Vz DpIAnRmYNQU7GxV25ARO/glHJDTmvMyu =HT8v -----END PGP SIGNATURE----- --sgneBHv3152wZ8jf--
文章代碼(AID): #1HUsBVEV (FB_current)
文章代碼(AID): #1HUsBVEV (FB_current)