﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	field_blocks	field_dependson	field_seealso
368	Free cluster summary wrong on FAT32	Jakub Jermář	Jakub Jermář	"As of [changeset:mainline,1186], the following will leave a FAT32 file system in and unhealthy state as detected by the dosfsck utility.

  1. create and empty FAT32 file system using the Linux mkfs.msdos utility
  1. mount it from HelenOS
  1. in the mounted root, do this:
{{{
# mkdir červený
# cd červený
# mkdir trpaslík
}}}
  1. unmount the file system in HelenOS
  1. run dosfsck -v on the image

In my case, dosfsck reports:

{{{
dosfsck 3.0.9 (31 Jan 2010)
dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID ""mkdosfs""
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
      4096 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
   2617344 bytes per FAT (= 5112 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 5251072 (sector 10256)
    654078 data clusters (2679103488 bytes)
32 sectors/track, 64 heads
         0 hidden sectors
   5242880 sectors total
Checking for unused clusters.
Checking free cluster summary.
Free cluster summary wrong (654077 vs. really 654075)
1) Correct
2) Don't correct
?
}}}"	defect	closed	major	0.5.0	helenos/fs/fat	mainline	fixed					
