forked from dosfstools/dosfstools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChangeLog
1784 lines (1171 loc) · 56.2 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
commit e2c8f06 (HEAD, origin/master, master)
Author: Andreas Bombe <[email protected]>
Date: Wed Nov 12 00:22:17 2014 +0100
fsck.fat: Don't print version string every time -v is encountered
Remove the printing of the version string every time -v is seen during
command line parsing in fsck.fat. The version string is printed anyway
before opening the filesystem device/image.
Signed-off-by: Andreas Bombe <[email protected]>
commit 82076b6
Author: Andreas Bombe <[email protected]>
Date: Tue Nov 11 23:25:30 2014 +0100
Fix attempt to rename root dir in fsck due to uninitialized fields
When add_file() is called with offset 0, it will construct a DIR_ENT for
the root directory instead of reading the contents from the filesystem.
It did not initialize the whole DIR_ENT on the stack, just select
values.
In particular, the lcase field was left with an undefined value. If
that value happened to include the FAT_NO_83NAME bit, the "neither long
nor short file name" check in bad_name() added in 3.0.26 would trigger
and cause an attempt to rename the entry (which is not possible).
Example run:
$ /sbin/fsck.fat -y bad.img
fsck.fat 3.0.26 (2014-03-07)
/
Bad short file name ().
Auto-renaming it.
Renamed to
bad.img: 14 files, 19388/403266 clusters
This commit changes the initialization zeroize the whole struct before
setting individual fields. Thanks to AlexisM, who found the cause and
posted a patch on the Debian bug http://bugs.debian.org/764992 .
Signed-off-by: Andreas Bombe <[email protected]>
commit c24ecb6
Author: Andreas Bombe <[email protected]>
Date: Tue Nov 11 22:49:50 2014 +0100
Support long file names in volume labeling code
The code to find the volume label directory entry in find_volume_de()
did not consider long file names so far. Directory entries that make up
long file names have four attribute bits set, including the "volume"
bit.
This caused the code to mistake a directory entry that is part of a
long file name as the volume name entry. If such an entry is found
first, fatlabel would print garbage when asked to display the label and
mangle the long file name when asked to set it. The latter would lead
to the loss of the long file name and require a fsck to clean up.
Change so that the set of attributes equal that of LFN entries will no
langer match as a volume label.
Signed-off-by: Andreas Bombe <[email protected]>
commit 1646f6e (tag: v3.0.26)
Author: Daniel Baumann <[email protected]>
Date: Fri Mar 7 18:40:13 2014 +0100
Releasing version 3.0.26.
Signed-off-by: Daniel Baumann <[email protected]>
commit 6893c45
Author: Dir Lotter <[email protected]>
Date: Fri Mar 7 18:25:39 2014 +0100
Fix "odd" files created by frequent power-loss.
After running many power losses the filesystem can degrate, containing "odd"
files making the filesystem corrupt that could not be solved by fsck:
* file was not visible in a ls -l
* ls -i reported a "invalid file name" on the console
* a test program with diropen/dirread showed the file, a stat on this file
failed
* file was not accessible and could not be deleted
After digging into the code we found why fsck didn't repair the file system:
One thing was we don't have short filenames. Another issue was that the LFN
pointer was set to NULL and so it looked like we didn't have short and long
filenames.
Our patch of check.c includes:
* returns 1 from function bad_name() in case no short and no long filename
exist
* auto_rename() and rename_file() got a special handling for the case no short
file name exist:
- it enables the short file name (we think here was a weakness of the old
code: it changed the short filename but didn't enabled it in the
file->dir_ent.lcase entry)
- it reset all attributes except ATTR_DIR and ATTR_VOLUME
This solved our problem pretty well.
Signed-off-by: Daniel Baumann <[email protected]>
commit 621e11f
Author: Natanael Copa <[email protected]>
Date: Sat Feb 8 18:53:30 2014 +0100
Build fixes for musl libc.
Signed-off-by: Daniel Baumann <[email protected]>
commit 52588b7 (tag: v3.0.25)
Author: Daniel Baumann <[email protected]>
Date: Fri Jan 17 07:11:11 2014 +0100
Releasing version 3.0.25.
Signed-off-by: Daniel Baumann <[email protected]>
commit acf64ae
Author: Daniel Baumann <[email protected]>
Date: Fri Jan 17 07:09:54 2014 +0100
Updating copyright headers for 2014.
Signed-off-by: Daniel Baumann <[email protected]>
commit 21fe921
Author: Andrew Tridgell <[email protected]>
Date: Tue Jan 14 09:37:51 2014 +1100
Fixed remaining 64 bit build warnings.
Some of these may be real bugs.
Signed-off-by: Daniel Baumann <[email protected]>
commit 9e3a2b1
Author: Andrew Tridgell <[email protected]>
Date: Tue Jan 14 09:25:28 2014 +1100
Prevent corruption of FAT during fsck on 64 bit platforms.
unsigned long is 64 bit on x86-64, which means set_fat was writing two
entries, which corrupts the next entry. This can cause loss of data in
another file.
Signed-off-by: Daniel Baumann <[email protected]>
commit 0d2c9bc (tag: v3.0.24)
Author: Daniel Baumann <[email protected]>
Date: Sat Nov 23 10:36:55 2013 +0100
Releasing version 3.0.24.
Signed-off-by: Daniel Baumann <[email protected]>
commit 55bd7b7
Author: Jaroslav Skarvada <[email protected]>
Date: Sat Nov 23 10:34:48 2013 +0100
Fixed dosfsck on big endian platforms (Resolves: rhbz#1029695).
It seems there is problem in the double conversion on big endians.
The first conversion is done by the explicit conversion to __u16
in the GET_UNALIGNED_W macro, so the secondary conversion by le16toh
seems to be redundant (and wrong).
Signed-off-by: Daniel Baumann <[email protected]>
commit 6debb4a (tag: v3.0.23)
Author: Daniel Baumann <[email protected]>
Date: Tue Oct 15 08:05:46 2013 +0200
Releasing version 3.0.23.
Signed-off-by: Daniel Baumann <[email protected]>
commit 07d85ff
Author: Daniel Baumann <[email protected]>
Date: Tue Oct 15 08:04:11 2013 +0200
Reformating mkfs.fat manpage.
Signed-off-by: Daniel Baumann <[email protected]>
commit 137552f
Author: Michael Shigorin <[email protected]>
Date: Tue Oct 15 01:29:33 2013 +0400
Fixing "Fixing default sectors per cluster for FAT32" for UEFI.
FAT32 "EFI System Partition" is basically required for UEFI boot;
commit ge048a8d broke that for me with both virtualbox-4.2 and
real hardware (ASUS C60M1-I to be exact) given ~250Mb filesystem.
This commit amends that one by reverting its effects for these
small sizes by restoring 512b cluster size for <= 260Mb FAT32.
Signed-off-by: Daniel Baumann <[email protected]>
commit 2000696
Author: Daniel Baumann <[email protected]>
Date: Fri Aug 9 09:38:13 2013 +0200
Also allowing lowercase labels in mkfs (with warning message) consistent with the recent fsck change, thanks to Michael Baum <[email protected]>.
Signed-off-by: Daniel Baumann <[email protected]>
commit 9b04807
Author: Tim Harder <[email protected]>
Date: Fri Jul 19 18:15:21 2013 +0200
Add install-man dependency to install-symlinks Makefile target.
This fixes a race condition during parallel installs where man page
symlinks won't be installed because install-man hasn't been run yet.
Signed-off-by: Daniel Baumann <[email protected]>
commit 651f91c (tag: v3.0.22)
Author: Daniel Baumann <[email protected]>
Date: Fri Jul 19 07:01:19 2013 +0200
Releasing version 3.0.22.
Signed-off-by: Daniel Baumann <[email protected]>
commit 3dc5560
Author: Daniel Baumann <[email protected]>
Date: Fri Jul 19 06:55:24 2013 +0200
Addding install-symlinks target to phony targets in Makefile.
Signed-off-by: Daniel Baumann <[email protected]>
commit c6c0581
Author: Daniel Baumann <[email protected]>
Date: Fri Jul 19 06:55:00 2013 +0200
Adding uninstall-symlinks target in Makefile.
Signed-off-by: Daniel Baumann <[email protected]>
commit 465dd8c
Author: Daniel Baumann <[email protected]>
Date: Fri Jul 19 06:45:40 2013 +0200
Allowing fatlabel to write labels in all lowercase but give a warning about DOS/Windows (Closes: #714971).
Signed-off-by: Daniel Baumann <[email protected]>
commit 3621b30
Author: John S Gruber <[email protected]>
Date: Fri Jul 19 06:40:21 2013 +0200
Add options and make dos boot sector more compatible with reference system (Closes: #552673).
Unless overridden by the user sets the DOS boot sector's
hidden-sectors field to match the start of a hard disk's
partition.
Initialize DOS boot sector drive_number according to FAT media type
Addresses LP: #398241 and Debian #552673
Adds options to override the DOS boot sector device_number and
the FAT media type.
Signed-off-by: Daniel Baumann <[email protected]>
commit be1eed5
Author: Daniel Baumann <[email protected]>
Date: Wed Jul 17 12:52:20 2013 +0200
Correcting wrong check preventing installation of fatlabel legacy manpage symlink.
Signed-off-by: Daniel Baumann <[email protected]>
commit d0065d3 (tag: v3.0.21)
Author: Daniel Baumann <[email protected]>
Date: Tue Jul 16 08:34:28 2013 +0200
Releasing version 3.0.21.
Signed-off-by: Daniel Baumann <[email protected]>
commit a74c12c
Author: Jaroslav Skarvada <[email protected]>
Date: Tue Jun 25 14:53:14 2013 +0200
Adding the missing -p option to the fsck manpage (to be consistent with the output of the tool).
Signed-off-by: Daniel Baumann <[email protected]>
commit 25e03c9
Author: Patrick J. Volkerding <[email protected]>
Date: Mon Jun 24 14:23:00 2013 +0200
Using $MANDIR instead of hardcoded ${PREFIX}/share/man in the Makefile.
Signed-off-by: Daniel Baumann <[email protected]>
commit 7fd9cf7
Author: Daniel Baumann <[email protected]>
Date: Fri Jun 14 18:50:31 2013 +0200
Making install-symlinks Makefile target depend on install-bin to not break when using make in parallel, thanks to David Walser <[email protected]>.
Signed-off-by: Daniel Baumann <[email protected]>
commit a76bbcd
Author: Daniel Baumann <[email protected]>
Date: Wed Jun 12 13:00:10 2013 +0200
Using US digit date format in version date, rather than name abbrev.
Signed-off-by: Daniel Baumann <[email protected]>
commit a64195f (tag: v3.0.20)
Author: Daniel Baumann <[email protected]>
Date: Wed Jun 12 12:25:32 2013 +0200
Releasing version 3.0.20.
Signed-off-by: Daniel Baumann <[email protected]>
commit 1a5d99f
Author: Daniel Baumann <[email protected]>
Date: Wed Jun 12 12:07:58 2013 +0200
Softening message about different boot sectors a bit (Closes: #704198).
Signed-off-by: Daniel Baumann <[email protected]>
commit 4727286
Author: Daniel Baumann <[email protected]>
Date: Wed Jun 12 11:42:52 2013 +0200
Harmonizing program name output.
Signed-off-by: Daniel Baumann <[email protected]>
commit 17c956c
Author: Martin Wilck <[email protected]>
Date: Wed Jun 12 11:38:00 2013 +0200
Don't align FAT to cluster size.
See previous patch for explanation.
With this patch and the previous two, the
mkdosfs generated FAT32 file systems work well in my extremely
picky TechniSat device. Of course, they're also detected cleanly
by Linux and Windows.
Signed-off-by: Daniel Baumann <[email protected]>
commit d63e0d6
Author: Martin Wilck <[email protected]>
Date: Wed Jun 12 11:36:08 2013 +0200
Don't align FAT32 reserved sectors to cluster size.
For certain file system sizes (in particular, exact GB sizes -
don't ask me why) a Technisat HD S2 Plus DVB receiver will still
choke on mkdosfs generated file systems, even if the sectors per
cluster problem is fixed.
By comparing the properties of generated FAT32 FS with results
of the Windows tool "h2format" (www.heise.de/download/h2format.html),
I found that the remaining problems were caused by rounding of the
reserved sectors and FAT space to cluster size (the h2format tool
doesn't do this).
Signed-off-by: Daniel Baumann <[email protected]>
commit e048a8d
Author: Martin Wilck <[email protected]>
Date: Wed Jun 12 11:33:33 2013 +0200
Fixing default sectors per cluster for FAT32 (Closes: #690062).
The default sectors per cluster calculated by mkdosfs are outdated,
see http://technet.microsoft.com/en-us/library/cc938438.aspx.
The deviations may cause some 3rd party devices (e.g. TechniSat DVB
receivers) to hang when reading mkdosfs generated file systems.
Signed-off-by: Daniel Baumann <[email protected]>
commit 86509aa
Author: Daniel Baumann <[email protected]>
Date: Tue Jun 11 20:19:09 2013 +0200
Splitting out legacy symlink creation in toplevel Makefile to own target.
Signed-off-by: Daniel Baumann <[email protected]>
commit da37dd1
Author: Daniel Baumann <[email protected]>
Date: Wed Jun 12 11:29:12 2013 +0200
Correcting wrong toolname in fsck.fat.
Signed-off-by: Daniel Baumann <[email protected]>
commit b29a722
Author: Daniel Baumann <[email protected]>
Date: Tue Jun 11 19:51:47 2013 +0200
Consistently spelling filesystem as filesystem, and not file system.
Signed-off-by: Daniel Baumann <[email protected]>
commit 977d7aa
Author: Daniel Baumann <[email protected]>
Date: Tue Jun 11 19:30:19 2013 +0200
Removing Debian reference in GPL license headers.
Signed-off-by: Daniel Baumann <[email protected]>
commit 5505cc2 (tag: v3.0.19)
Author: Daniel Baumann <[email protected]>
Date: Tue Jun 11 18:46:03 2013 +0200
Releasing version 3.0.19.
Signed-off-by: Daniel Baumann <[email protected]>
commit 2c88f35
Author: Daniel Baumann <[email protected]>
Date: Tue Jun 11 18:44:50 2013 +0200
Running indent on source files.
Signed-off-by: Daniel Baumann <[email protected]>
commit d495d43
Author: Daniel Baumann <[email protected]>
Date: Tue Jun 11 18:41:41 2013 +0200
Using memcpy instead of strcpy to fix segfault with fortify, thanks to Dave Reisner <[email protected]>.
Signed-off-by: Daniel Baumann <[email protected]>
commit 9fb4ffc
Author: Daniel Baumann <[email protected]>
Date: Sun Jun 9 13:17:16 2013 +0200
Correcting fsck.fat spelling error in manpages, thanks to E.J.M. Hartman <[email protected]>.
Signed-off-by: Daniel Baumann <[email protected]>
commit 2d8ef9b (tag: v3.0.18)
Author: Daniel Baumann <[email protected]>
Date: Thu Jun 6 09:49:00 2013 +0200
Releasing version 3.0.18.
Signed-off-by: Daniel Baumann <[email protected]>
commit d4e1180
Author: Daniel Baumann <[email protected]>
Date: Thu Jun 6 09:38:45 2013 +0200
Adding initial i18n support for manpages with po4a.
Signed-off-by: Daniel Baumann <[email protected]>
commit ea8f712
Author: Daniel Baumann <[email protected]>
Date: Thu Jun 6 09:17:13 2013 +0200
Renaming tools to sane namespace and keeping legacy symlinks in place.
dosfslabel becomes fatlabel,
dosfsck becomes fsck.fat,
and mkdosfs becomes mkfs.fat.
Signed-off-by: Daniel Baumann <[email protected]>
commit a42b127
Author: Daniel Baumann <[email protected]>
Date: Wed Jun 5 07:12:03 2013 +0200
Correcting wrong spelling of Debian in mkdosfs manpage.
Signed-off-by: Daniel Baumann <[email protected]>
commit 2749084
Author: Daniel Baumann <[email protected]>
Date: Wed Jun 5 07:10:50 2013 +0200
Correcting spelling typo in boot.c.
Signed-off-by: Daniel Baumann <[email protected]>
commit 6461c83
Author: Martin Pitt <[email protected]>
Date: Fri May 24 09:35:44 2013 +0200
dosfslabel: Do not read beyond string length (Closes: #709587).
When checking whether the label contains any lower-case characters, do not read
beyond the end of the string.
Signed-off-by: Daniel Baumann <[email protected]>
commit 4203a90 (tag: v3.0.17)
Author: Daniel Baumann <[email protected]>
Date: Wed May 29 10:14:09 2013 +0200
Releasing version 3.0.17.
Signed-off-by: Daniel Baumann <[email protected]>
commit 3aa88ed
Author: Daniel Baumann <[email protected]>
Date: Wed May 29 09:48:24 2013 +0200
Updating maximal lenght of a label in manpage to talk about bytes instead of characters, thanks to Francois Wendling <[email protected]> (Closes: #655953).
Signed-off-by: Daniel Baumann <[email protected]>
commit 0916f8a
Author: Jaroslav Skarvada <[email protected]>
Date: Wed May 29 09:56:08 2013 +0200
Fixing segfault in dosfslabel.
Signed-off-by: Daniel Baumann <[email protected]>
commit 4a265c6
Author: James Byrne <[email protected]>
Date: Mon Apr 22 12:29:51 2013 +0100
Allow operation on SH4 CPUs and remove compiler warnings.
Simplify the GET_UNALIGNED_W macro and use it in all cases instead of making it
conditional on CPU types. This missed some CPUs that needed it (e.g. SH4), and
in any case the implementation caused "dereferencing type-punned pointer will
break strict-aliasing rules" warnings.
Enable extra warnings, but disable signed comparison and missing field
initializer warnings as these are not helpful.
Update write_boot_label() so that the boot_sector_16 and boot_sector cases are
handled separately instead of using an aliased pointer, as that causes
"dereferencing type-punned pointer will break strict-aliasing rules" warnings.
Make date_dos2unix(), usage() and cdiv() static functions as they are only used
in the files in which they are declared.
Update bad_name() and lfn_get() so that the extension is processed separately
instead of by indexing past the end of the name field as that causes "array
subscript is above array bounds" warnings.
Update the dosfsck() main function to avoid a warning that free_clusters may
be used uninitialized. Do not print the final count of files and clusters when
dosfsck is run with the "-b" option because the used files and clusters have
not been counted in this case.
Alter the setup_tables() function so that it does not cause an "array subscript
is below array bounds" warning.
Signed-off-by: Daniel Baumann <[email protected]>
commit eb68a14
Author: James Byrne <[email protected]>
Date: Mon Apr 22 13:32:01 2013 +0100
Add a .gitignore file.
Add a .gitignore file so that the results of compilation do not appear as
changes.
Signed-off-by: Daniel Baumann <[email protected]>
commit 336e8f1
Author: James Byrne <[email protected]>
Date: Mon Apr 22 12:38:52 2013 +0100
Finish cleanup of byteswap code.
Commit 9ba8992 left three references to the old CT_LE_W macro.
Remove these since no conversion was needed as the value being
converted was zero.
Signed-off-by: Daniel Baumann <[email protected]>
commit 64b6227
Author: Daniel Baumann <[email protected]>
Date: Thu Apr 4 08:08:00 2013 +0200
Shortening links to upstream homepage.
Signed-off-by: Daniel Baumann <[email protected]>
commit 76304be
Author: Cristian Rodríguez <[email protected]>
Date: Fri Mar 1 08:23:34 2013 +0100
Fix offsetof definition.
* include stddef.h to get the correct offsetof definition.
* remove local offsetof definition, systems not having it on stddef.h
are in violation of C89, C99, POSIX.1-2001.
Signed-off-by: Daniel Baumann <[email protected]>
commit 9ba8992
Author: Cristian Rodríguez <[email protected]>
Date: Fri Mar 1 08:58:36 2013 +0100
Cleanup byteswap code.
Remove all duplicate macro definitions for byteswapping routines
and replace them for proper usage of userspace endian(3).
Signed-off-by: Daniel Baumann <[email protected]>
commit 8733e12 (tag: v3.0.16)
Author: Daniel Baumann <[email protected]>
Date: Wed May 29 10:06:01 2013 +0200
Releasing version 3.0.16.
Signed-off-by: Daniel Baumann <[email protected]>
commit a9fa87e
Author: Petr Gajdos <[email protected]>
Date: Fri Mar 1 08:34:12 2013 +0100
Create rootdir entry volume label with mkdosfs, create it when
it doesn't exist with dosfslabel.
See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4
for more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit 92057f1
Author: Petr Gajdos <[email protected]>
Date: Fri Mar 1 08:33:18 2013 +0100
Forbid lowercase letters in label.
See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 and
http://support.microsoft.com/kb/71715/en-us for more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit 5e265c4
Author: Petr Gajdos <[email protected]>
Date: Fri Mar 1 08:32:02 2013 +0100
Read label also from rootdir entry.
See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4
for more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit 5cec53c
Author: Petr Gajdos <[email protected]>
Date: Fri Mar 1 08:30:21 2013 +0100
alloc_rootdir_entry() is intended to be called with pattern == "FSCK%04dREC",
the old code (probably c&p from auto_rename()) doesn't reflect this.
Signed-off-by: Daniel Baumann <[email protected]>
commit 63938f0
Author: Petr Gajdos <[email protected]>
Date: Fri Mar 1 08:29:00 2013 +0100
Instead of eleven blanks, fill in "NO NAME " as specification tells.
See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 and
http://www.win.tue.nl/~aeb/linux/fs/fat/fat-1.html for more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit 10c1c41
Author: Petr Gajdos <[email protected]>
Date: Fri Mar 1 08:58:15 2013 +0100
Write uppercase letters in label.
See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 and
http://support.microsoft.com/kb/71715/en-us for more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit a75fb1c (tag: v3.0.15)
Author: Daniel Baumann <[email protected]>
Date: Thu Feb 21 15:06:52 2013 +0100
Releasing version 3.0.15.
Signed-off-by: Daniel Baumann <[email protected]>
commit c8f84fd
Author: Alexander Korolkov <[email protected]>
Date: Mon Feb 4 00:22:34 2013 +0400
Using wcstombs() to convert LFN unicode characters to printable text.
This closes Debian bug #596336.
Signed-off-by: Daniel Baumann <[email protected]>
commit 1546545
Author: Alexander Korolkov <[email protected]>
Date: Sun Sep 5 18:59:47 2010 +0400
Recode short filenames from DOS codepage (default 437).
Recode short filenames from DOS codepage (default 437) to the current
character encoding. This makes messages of dosfsck more readable.
Partially closes Debian bug #596336.
Signed-off-by: Daniel Baumann <[email protected]>
commit ad76cae
Author: Jaroslav Skarvada <[email protected]>
Date: Thu Feb 21 14:40:52 2013 +0100
Fixing root directory allocation.
See https://bugzilla.redhat.com/show_bug.cgi?id=674095 for more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit b8201b3
Author: Jaroslav Skarvada <[email protected]>
Date: Thu Feb 21 14:40:25 2013 +0100
Fixing device detection.
See https://bugzilla.redhat.com/show_bug.cgi?id=710480 for more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit 7a75638 (tag: v3.0.14)
Author: Daniel Baumann <[email protected]>
Date: Wed Jan 23 13:22:01 2013 +0100
Releasing version 3.0.14.
Signed-off-by: Daniel Baumann <[email protected]>
commit 5bdd7ef
Author: Daniel Baumann <[email protected]>
Date: Wed Jan 23 13:16:20 2013 +0100
Documenting dosfsck -b in its manpage.
Signed-off-by: Daniel Baumann <[email protected]>
commit a307be2
Author: Oleksij Rempel <[email protected]>
Date: Wed Jan 23 12:36:56 2013 +0100
Adding option for bootsector read-only check.
Most boot sectors may contains marker for filesystem state. We can this
bit on every mount and warn user if some thing wrong, without checking
complete filesystem.
Signed-off-by: Oleksij Rempel <[email protected]>
Signed-off-by: Daniel Baumann <[email protected]>
commit ce2f8dc
Author: Oleksij Rempel <[email protected]>
Date: Wed Jan 23 12:35:13 2013 +0100
Checking boot sector for dirty bit.
Some OSos use reseved byte of boot sector to set state of the file
system. If first bit set, then filesystem is proably damaged - write
operation was not finished/cache not snycted/...
Signed-off-by: Oleksij Rempel <[email protected]>
Signed-off-by: Daniel Baumann <[email protected]>
commit f33ee8c
Author: Daniel Baumann <[email protected]>
Date: Wed Jan 23 12:25:59 2013 +0100
Completing and updating all copyright headers for 2013.
Signed-off-by: Daniel Baumann <[email protected]>
commit bfe6d25
Author: Daniel Baumann <[email protected]>
Date: Wed Jan 23 12:17:20 2013 +0100
Updating my email address.
Signed-off-by: Daniel Baumann <[email protected]>
commit 13cdb4d (tag: v3.0.13)
Author: Daniel Baumann <[email protected]>
Date: Sat Jun 30 19:10:44 2012 +0200
Releasing version 3.0.13.
Signed-off-by: Daniel Baumann <[email protected]>
commit d039482
Author: Jaroslav Škarvada <[email protected]>
Date: Sat Jun 30 19:09:11 2012 +0200
Fix 'dosfslabel throws "Seek to 114116076544:Invalid argument" error when labeling'.
See https://bugzilla.redhat.com/show_bug.cgi?id=693662 for more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit e243612 (tag: v3.0.12)
Author: Daniel Baumann <[email protected]>
Date: Sat Oct 29 08:40:53 2011 +0200
Releasing version 3.0.12.
Signed-off-by: Daniel Baumann <[email protected]>
commit 025b4f0
Author: Michael Casadevall <[email protected]>
Date: Tue Jun 7 19:19:30 2011 +0200
Correcting miscalculation of sector number in some cases.
mkdosfs will incorrectly calculate the number of sectors of a
given FAT partition if the number sectors are odd due to
count_blocks incorrectly handling the remainder of a division
operation. This miscalculation causes the OMAP4 bootloader to
fail to boot.
This bug can be observed by comparing the total sector size in
fdisk expert more to fsck.msdos; this discrepancy only shows up
when the number of sectors are odd.
See https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/794043
for more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit 91a1fb9
Author: Daniel Baumann <[email protected]>
Date: Sat Jan 8 23:38:59 2011 +0100
Re-running Nindent.
Signed-off-by: Daniel Baumann <[email protected]>
commit 0390c4c
Author: Sergey Gusarov <[email protected]>
Date: Sat Jan 8 23:36:11 2011 +0100
Fixing compiler warnings related to the mismatch of types "char *" / "unsigned
char *".
These warnings appear when you compile the project with the option "-Wall", what
is done with the current default Makefile.
Signed-off-by: Daniel Baumann <[email protected]>
commit 4a8f8a6
Author: Jaroslav Skarvada <[email protected]>
Date: Thu Jan 6 22:35:00 2011 +0100
Fixing overflow bug in reclaim_file function, see
https://bugzilla.redhat.com/show_bug.cgi?id=660154 for more information.
The problem is that alloc_rootdir_entry counts with 10000 files at max, but the
filename buffer is only 8 chars long. Due to pattern mask used it results to
only 10 files at max (FSCK0-9REC). If there is more than 10 files, it overflows
and hangs.
Signed-off-by: Daniel Baumann <[email protected]>
commit e0366da
Author: Sergey Gusarov <[email protected]>
Date: Thu Jan 6 22:31:39 2011 +0100
Fixing conversion specifiers in accordance with the type of expressions.
Signed-off-by: Daniel Baumann <[email protected]>
commit 2d8be9c
Author: Daniel Baumann <[email protected]>
Date: Sun Jan 2 15:41:44 2011 +0100
Indenting source files.
Signed-off-by: Daniel Baumann <[email protected]>
commit 697af85
Author: Daniel Baumann <[email protected]>
Date: Sun Jan 2 15:39:03 2011 +0100
Adding Nindent script from syslinux.
Signed-off-by: Daniel Baumann <[email protected]>
commit 66d55cd (tag: v3.0.11)
Author: Daniel Baumann <[email protected]>
Date: Fri Dec 24 17:58:29 2010 +0100
Releasing version 3.0.11.
Signed-off-by: Daniel Baumann <[email protected]>
commit d579802
Author: Michael Stapelberg <[email protected]>
Date: Fri Nov 19 14:09:36 2010 +0100
Add better error message when the device cannot be opened.
This is helpful for SD cards or other removable media which have an enabled
write lock -- without the "Permission denied" message, the user has to strace
mkdosfs to find out what's going on.
Signed-off-by: Daniel Baumann <[email protected]>
commit bb6000f
Author: Jaroslav Skarvada <[email protected]>
Date: Fri Oct 8 13:38:16 2010 +0200
Unalign on s390x, see http://bugzilla.redhat.com/show_bug.cgi?id=624596 for
more information.
Signed-off-by: Daniel Baumann <[email protected]>
commit 5ef7f1f (tag: v3.0.10)
Author: Daniel Baumann <[email protected]>
Date: Sun Sep 12 09:35:47 2010 +0200
Releasing version 3.0.10.
Signed-off-by: Daniel Baumann <[email protected]>
commit ea41797
Author: Alexander Korolkov <[email protected]>
Date: Sun Sep 12 09:29:12 2010 +0200
Modify LFN direntries when file is renamed or deleted, see
Debian bug #596329.
Signed-off-by: Daniel Baumann <[email protected]>
commit e56ff72
Author: Alexander Korolkov <[email protected]>
Date: Sun Sep 12 09:27:07 2010 +0200
If the test of short filename fails, dosfsck could complain about
bad long filename, see Debian bug #596327.
Signed-off-by: Daniel Baumann <[email protected]>
commit f0a42d0
Author: Alexander Korolkov <[email protected]>
Date: Sun Sep 12 09:24:47 2010 +0200
dosfsck: don't complain about bad filenames when short filename
contains 7 or more characters with codes 128-255, see Debian
bug #596327.
Signed-off-by: Daniel Baumann <[email protected]>
commit 0113c5b
Author: Mitch Rybczynski <[email protected]>
Date: Mon Jul 5 14:45:54 2010 +0200
Adding __arm__ define check for some crosscompile toolchains.
Signed-off-by: Daniel Baumann <[email protected]>
commit 88cb84f
Author: Daniel Baumann <[email protected]>
Date: Sun Mar 14 16:42:32 2010 +0100
Modernizing dosfslabel manpage.
Signed-off-by: Daniel Baumann <[email protected]>
commit 5aa7ec4
Author: Daniel Baumann <[email protected]>
Date: Sun Mar 14 16:33:47 2010 +0100
Modernizing dosfsck manpage.