Bug 176746

Summary: Document a bug (unusual 2K block media) with src/sbin/fsck_msdosfs/
Product: Base System Reporter: jhs
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: jhs
Priority: Normal    
Version: 9.1-RELEASE   
Hardware: Any   
OS: Any   

Description jhs 2013-03-08 12:10:00 UTC
Document a 2K block media bug to src/sbin/fsck_msdosfs/fsck_msdosfs.8

Fix: Apply patch (appended) 
-----------
http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sbin/fsck_msdosfs/



The real fix will be to write some C.
This bug affects at least both FreeBSD & NetBSD.
Both were informed to mail lists, links to both archives here
http://www.berklix.com/~jhs/txt/sigmatel/#bsd2k

If I write (unikely) or hear of patches to fix it, they will first appear here:
http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sbin/fsck_msdosfs/--CSEHvh3WE2bl90SfrnfRT1UllinuuQLdtxAp4sXeNAxxWnMW
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** 9.1-RELEASE/src/gen/sbin/fsck_msdosfs/fsck_msdosfs.8	Sat Nov 17 09:47:20 2012
--- new/src/gen/sbin/fsck_msdosfs/fsck_msdosfs.8	Thu Mar  7 23:28:43 2013
***************
*** 121,123 ****
--- 121,126 ----
  .Nm
  utility is
  .Ud
+ .br
+ Devices with 2K media blocks fail, for analysis & work around see
+ http://www.berklix.com/~jhs/txt/sigmatel/#bsd2k
-----------
How-To-Repeat: Analysis here
http://www.berklix.com/~jhs/txt/sigmatel/#bsd2k
Comment 1 Bruce Evans freebsd_committer freebsd_triage 2013-03-08 13:26:18 UTC
On Fri, 8 Mar 2013, Julian H. Stacey wrote:

>> Description:
> Document a 2K block media bug to src/sbin/fsck_msdosfs/fsck_msdosfs.8
>
>> How-To-Repeat:
> Analysis here
> http://www.berklix.com/~jhs/txt/sigmatel/#bsd2k
>
>> Fix:
> Apply patch (appended)
> -----------
> http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sbin/fsck_msdosfs/
>
> *** 9.1-RELEASE/src/gen/sbin/fsck_msdosfs/fsck_msdosfs.8	Sat Nov 17 09:47:20 2012
> --- new/src/gen/sbin/fsck_msdosfs/fsck_msdosfs.8	Thu Mar  7 23:28:43 2013
> ***************
> *** 121,123 ****
> --- 121,126 ----
>  .Nm
>  utility is
>  .Ud
> + .br
> + Devices with 2K media blocks fail, for analysis & work around see
> + http://www.berklix.com/~jhs/txt/sigmatel/#bsd2k
> -----------
>
> The real fix will be to write some C.
> This bug affects at least both FreeBSD & NetBSD.
> Both were informed to mail lists, links to both archives here
> http://www.berklix.com/~jhs/txt/sigmatel/#bsd2k
>
> If I write (unikely) or hear of patches to fix it, they will first appear here:
> http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sbin/fsck_msdosfs/

This is reported and fixed in PR 153426.

Bruce
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2013-03-08 19:35:27 UTC
State Changed
From-To: open->closed

per bde, please see 153426 - thank you for your report!