bin/142526: [patch] Cleanups and updates to newfs_msdos(8)

Pedro F. Giffuni giffunip at tutopia.com
Sat Mar 27 17:50:03 UTC 2010


The following reply was made to PR bin/142526; it has been noted by GNATS.

From: "Pedro F. Giffuni" <giffunip at tutopia.com>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: bin/142526: [patch] Cleanups and updates to newfs_msdos(8)
Date: Sat, 27 Mar 2010 10:43:01 -0700 (PDT)

 --0-1575203411-1269711781=:89501
 Content-Type: text/plain; charset=utf-8
 Content-Transfer-Encoding: quoted-printable
 
 As a reminder before any MFC ...=0A=0AAfter some private discussion with bd=
 e@ and kib@ here=0Ais a patch with cleanups for newfs_msdos.=0A=0A=0A      
 --0-1575203411-1269711781=:89501
 Content-Type: application/octet-stream; name=patch-newfs
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename=patch-newfs
 
 ZGlmZiAtcnUgbmV3ZnNfbXNkb3Mub3JpZy9uZXdmc19tc2Rvcy44IG5ld2Zz
 X21zZG9zL25ld2ZzX21zZG9zLjgKLS0tIG5ld2ZzX21zZG9zLm9yaWcvbmV3
 ZnNfbXNkb3MuOAkyMDEwLTAyLTE0IDE0OjQ3OjM5LjAwMDAwMDAwMCArMDAw
 MAorKysgbmV3ZnNfbXNkb3MvbmV3ZnNfbXNkb3MuOAkyMDEwLTAyLTE1IDEy
 OjIzOjAxLjAwMDAwMDAwMCArMDAwMApAQCAtMTgwLDI3ICsxODAsMjcgQEAK
 IGJlbG93LgogLkJkIC1saXRlcmFsCiBzdHJ1Y3QgYnNicGIgewotICAgIHVf
 aW50MTZfdAlicHM7CQkvKiBbLVNdIGJ5dGVzIHBlciBzZWN0b3IgKi8KLSAg
 ICB1X2ludDhfdAlzcGM7CQkvKiBbLWNdIHNlY3RvcnMgcGVyIGNsdXN0ZXIg
 Ki8KLSAgICB1X2ludDE2X3QJcmVzOwkJLyogWy1yXSByZXNlcnZlZCBzZWN0
 b3JzICovCi0gICAgdV9pbnQ4X3QJbmZ0Ow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