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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
|
commit acf64ae (HEAD, origin/master, origin/HEAD, master)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Jan 17 07:09:54 2014 +0100
Updating copyright headers for 2014.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 21fe921
Author: Andrew Tridgell <tridge@samba.org>
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 <mail@daniel-baumann.ch>
commit 9e3a2b1
Author: Andrew Tridgell <tridge@samba.org>
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 <mail@daniel-baumann.ch>
commit 0d2c9bc (tag: v3.0.24)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sat Nov 23 10:36:55 2013 +0100
Releasing version 3.0.24.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 55bd7b7
Author: Jaroslav Skarvada <jskarvad@redhat.com>
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 <mail@daniel-baumann.ch>
commit 6debb4a (tag: v3.0.23)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Tue Oct 15 08:05:46 2013 +0200
Releasing version 3.0.23.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 07d85ff
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Tue Oct 15 08:04:11 2013 +0200
Reformating mkfs.fat manpage.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 137552f
Author: Michael Shigorin <mike@altlinux.org>
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 <mail@daniel-baumann.ch>
commit 2000696
Author: Daniel Baumann <mail@daniel-baumann.ch>
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 <mbaum@devonit.com>.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 9b04807
Author: Tim Harder <radhermit@gentoo.org>
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 <mail@daniel-baumann.ch>
commit 651f91c (tag: v3.0.22)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Jul 19 07:01:19 2013 +0200
Releasing version 3.0.22.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 3dc5560
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Jul 19 06:55:24 2013 +0200
Addding install-symlinks target to phony targets in Makefile.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit c6c0581
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Jul 19 06:55:00 2013 +0200
Adding uninstall-symlinks target in Makefile.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 465dd8c
Author: Daniel Baumann <mail@daniel-baumann.ch>
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 <mail@daniel-baumann.ch>
commit 3621b30
Author: John S Gruber <JohnSGruber@gmail.com>
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 <mail@daniel-baumann.ch>
commit be1eed5
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jul 17 12:52:20 2013 +0200
Correcting wrong check preventing installation of fatlabel legacy manpage symlink.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit d0065d3 (tag: v3.0.21)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Tue Jul 16 08:34:28 2013 +0200
Releasing version 3.0.21.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit a74c12c
Author: Jaroslav Skarvada <jskarvad@redhat.com>
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 <mail@daniel-baumann.ch>
commit 25e03c9
Author: Patrick J. Volkerding <volkerdi@slackware.com>
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 <mail@daniel-baumann.ch>
commit 7fd9cf7
Author: Daniel Baumann <mail@daniel-baumann.ch>
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 <luigiwalser@yahoo.com>.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit a76bbcd
Author: Daniel Baumann <mail@daniel-baumann.ch>
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 <mail@daniel-baumann.ch>
commit a64195f (tag: v3.0.20)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jun 12 12:25:32 2013 +0200
Releasing version 3.0.20.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 1a5d99f
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jun 12 12:07:58 2013 +0200
Softening message about different boot sectors a bit (Closes: #704198).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 4727286
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jun 12 11:42:52 2013 +0200
Harmonizing program name output.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 17c956c
Author: Martin Wilck <mwilck@arcor.de>
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 <mail@daniel-baumann.ch>
commit d63e0d6
Author: Martin Wilck <mwilck@arcor.de>
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 <mail@daniel-baumann.ch>
commit e048a8d
Author: Martin Wilck <mwilck@arcor.de>
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 <mail@daniel-baumann.ch>
commit 86509aa
Author: Daniel Baumann <mail@daniel-baumann.ch>
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 <mail@daniel-baumann.ch>
commit da37dd1
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jun 12 11:29:12 2013 +0200
Correcting wrong toolname in fsck.fat.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit b29a722
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Tue Jun 11 19:51:47 2013 +0200
Consistently spelling filesystem as filesystem, and not file system.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 977d7aa
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Tue Jun 11 19:30:19 2013 +0200
Removing Debian reference in GPL license headers.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 5505cc2 (tag: v3.0.19)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Tue Jun 11 18:46:03 2013 +0200
Releasing version 3.0.19.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 2c88f35
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Tue Jun 11 18:44:50 2013 +0200
Running indent on source files.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit d495d43
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Tue Jun 11 18:41:41 2013 +0200
Using memcpy instead of strcpy to fix segfault with fortify, thanks to Dave Reisner <falconindy@jabber.org>.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 9fb4ffc
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Jun 9 13:17:16 2013 +0200
Correcting fsck.fat spelling error in manpages, thanks to E.J.M. Hartman <E.J.M.Hartman@tudelft.nl>.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 2d8ef9b (tag: v3.0.18)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Thu Jun 6 09:49:00 2013 +0200
Releasing version 3.0.18.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit d4e1180
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Thu Jun 6 09:38:45 2013 +0200
Adding initial i18n support for manpages with po4a.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit ea8f712
Author: Daniel Baumann <mail@daniel-baumann.ch>
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 <mail@daniel-baumann.ch>
commit a42b127
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jun 5 07:12:03 2013 +0200
Correcting wrong spelling of Debian in mkdosfs manpage.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 2749084
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jun 5 07:10:50 2013 +0200
Correcting spelling typo in boot.c.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 6461c83
Author: Martin Pitt <martinpitt@gnome.org>
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 <mail@daniel-baumann.ch>
commit 4203a90 (tag: v3.0.17)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed May 29 10:14:09 2013 +0200
Releasing version 3.0.17.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 3aa88ed
Author: Daniel Baumann <mail@daniel-baumann.ch>
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 <frwendling@gmail.com> (Closes: #655953).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 0916f8a
Author: Jaroslav Skarvada <jskarvad@redhat.com>
Date: Wed May 29 09:56:08 2013 +0200
Fixing segfault in dosfslabel.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 4a265c6
Author: James Byrne <jbyrne@aminocom.com>
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 <mail@daniel-baumann.ch>
commit eb68a14
Author: James Byrne <jbyrne@aminocom.com>
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 <mail@daniel-baumann.ch>
commit 336e8f1
Author: James Byrne <jbyrne@aminocom.com>
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 <mail@daniel-baumann.ch>
commit 64b6227
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Thu Apr 4 08:08:00 2013 +0200
Shortening links to upstream homepage.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 76304be
Author: Cristian Rodríguez <crrodriguez@opensuse.org>
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 <mail@daniel-baumann.ch>
commit 9ba8992
Author: Cristian Rodríguez <crrodriguez@opensuse.org>
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 <mail@daniel-baumann.ch>
commit 8733e12 (tag: v3.0.16)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed May 29 10:06:01 2013 +0200
Releasing version 3.0.16.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit a9fa87e
Author: Petr Gajdos <pgajdos@suse.cz>
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 <mail@daniel-baumann.ch>
commit 92057f1
Author: Petr Gajdos <pgajdos@suse.cz>
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 <mail@daniel-baumann.ch>
commit 5e265c4
Author: Petr Gajdos <pgajdos@suse.cz>
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 <mail@daniel-baumann.ch>
commit 5cec53c
Author: Petr Gajdos <pgajdos@suse.cz>
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 <mail@daniel-baumann.ch>
commit 63938f0
Author: Petr Gajdos <pgajdos@suse.cz>
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 <mail@daniel-baumann.ch>
commit 10c1c41
Author: Petr Gajdos <pgajdos@suse.cz>
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 <mail@daniel-baumann.ch>
commit a75fb1c (tag: v3.0.15)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Thu Feb 21 15:06:52 2013 +0100
Releasing version 3.0.15.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit c8f84fd
Author: Alexander Korolkov <alexander.korolkov@gmail.com>
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 <mail@daniel-baumann.ch>
commit 1546545
Author: Alexander Korolkov <alexander.korolkov@gmail.com>
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 <mail@daniel-baumann.ch>
commit ad76cae
Author: Jaroslav Skarvada <jskarvad@redhat.com>
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 <mail@daniel-baumann.ch>
commit b8201b3
Author: Jaroslav Skarvada <jskarvad@redhat.com>
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 <mail@daniel-baumann.ch>
commit 7a75638 (tag: v3.0.14)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jan 23 13:22:01 2013 +0100
Releasing version 3.0.14.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 5bdd7ef
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jan 23 13:16:20 2013 +0100
Documenting dosfsck -b in its manpage.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit a307be2
Author: Oleksij Rempel <bug-track@fisher-privat.net>
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 <bug-track@fisher-privat.net>
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit ce2f8dc
Author: Oleksij Rempel <bug-track@fisher-privat.net>
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 <bug-track@fisher-privat.net>
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit f33ee8c
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jan 23 12:25:59 2013 +0100
Completing and updating all copyright headers for 2013.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit bfe6d25
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jan 23 12:17:20 2013 +0100
Updating my email address.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 13cdb4d (tag: v3.0.13)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sat Jun 30 19:10:44 2012 +0200
Releasing version 3.0.13.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit d039482
Author: Jaroslav Škarvada <jskarvad@redhat.com>
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 <mail@daniel-baumann.ch>
commit e243612 (tag: v3.0.12)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sat Oct 29 08:40:53 2011 +0200
Releasing version 3.0.12.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 025b4f0
Author: Michael Casadevall <mcasadevall@ubuntu.com>
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 <mail@daniel-baumann.ch>
commit 91a1fb9
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sat Jan 8 23:38:59 2011 +0100
Re-running Nindent.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 0390c4c
Author: Sergey Gusarov <laborer2008@gmail.com>
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 <mail@daniel-baumann.ch>
commit 4a8f8a6
Author: Jaroslav Skarvada <jskarvad@redhat.com>
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 <mail@daniel-baumann.ch>
commit e0366da
Author: Sergey Gusarov <laborer2008@gmail.com>
Date: Thu Jan 6 22:31:39 2011 +0100
Fixing conversion specifiers in accordance with the type of expressions.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 2d8be9c
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Jan 2 15:41:44 2011 +0100
Indenting source files.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 697af85
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Jan 2 15:39:03 2011 +0100
Adding Nindent script from syslinux.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 66d55cd (tag: v3.0.11)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Dec 24 17:58:29 2010 +0100
Releasing version 3.0.11.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit d579802
Author: Michael Stapelberg <michael@stapelberg.de>
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 <mail@daniel-baumann.ch>
commit bb6000f
Author: Jaroslav Skarvada <jskarvad@redhat.com>
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 <mail@daniel-baumann.ch>
commit 5ef7f1f (tag: v3.0.10)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Sep 12 09:35:47 2010 +0200
Releasing version 3.0.10.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit ea41797
Author: Alexander Korolkov <alexander.korolkov@gmail.com>
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 <mail@daniel-baumann.ch>
commit e56ff72
Author: Alexander Korolkov <alexander.korolkov@gmail.com>
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 <mail@daniel-baumann.ch>
commit f0a42d0
Author: Alexander Korolkov <alexander.korolkov@gmail.com>
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 <mail@daniel-baumann.ch>
commit 0113c5b
Author: Mitch Rybczynski <mrybczynski@miovision.com>
Date: Mon Jul 5 14:45:54 2010 +0200
Adding __arm__ define check for some crosscompile toolchains.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 88cb84f
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Mar 14 16:42:32 2010 +0100
Modernizing dosfslabel manpage.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 5aa7ec4
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Mar 14 16:33:47 2010 +0100
Modernizing dosfsck manpage.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 807ed80
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Mar 14 16:05:32 2010 +0100
Fixing spelling error in boot.c.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 5b6849d (tag: v3.0.9)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Jan 31 08:31:32 2010 +0100
Releasing version 3.0.9.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 33bca7d
Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Sun Jan 31 00:11:41 2010 -0500
Be sure to store the updated reserved_sector count in the boot sector,
see Debian bug #567337.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 2a3bef8 (tag: v3.0.8)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sat Jan 23 10:16:18 2010 +0100
Releasing version 3.0.8.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 726c02d
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sat Jan 23 10:15:01 2010 +0100
Removing some cruft in end-comments.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit a5961d7
Author: Steven J. Magnani <steve@digidescorp.com>
Date: Thu Jan 21 16:58:11 2010 +0100
When compiling a 32-bit version of dosfstools on an x86_64 machine,
the resulting applications report strange errors on "large" (> 2 GiB)
partitions:
Seek to -2118967808:Invalid argument
Warning: Filesystem is FAT32 according to fat_length and fat32_length fields,
but has only 8613 clusters, less than the required minimum of 65525.
This may lead to problems on some systems.
This appears to be due to compilation with a 32-bit off_t and lseek() library
function.
Use lseek64 for positioning, and change some suspect uses of off_t to loff_t.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit bbb25bf
Author: Steven J. Magnani <steve@digidescorp.com>
Date: Thu Jan 21 16:56:26 2010 +0100
If dosfsck is run in read-only mode (-n), exit with code 0
if the only issue found is an uninitialized free cluster summary.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 1cae726
Author: Steven J. Magnani <steve@digidescorp.com>
Date: Thu Jan 21 16:55:30 2010 +0100
On x86_64, dosfsck incorrectly claims that a free_cluster summary of
0xFFFFFFFF, defined by Microsoft to be "uninitialized," is wrong.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 62f806a
Author: H. Peter Anvin <hpa@zytor.com>
Date: Fri Jan 8 09:16:38 2010 +0100
mkdosfs: correct alignment of the root directory.
Correct the code to align the root directory; it was broken before
since bs.dir_entries had already been set at the point of alignment.
This patch removes the dual use of bs.dir_entries and root_dir_entries
to carry the same information: the information is carried in
root_dir_entires exclusively, and then bs.dir_entries is set inside
setup_tables() at a late point.
The code to align the root directory is also wrapped in
if (align_structures); this avoids rounding the number of root
directory entries up to a whole sector when used with -a
(i.e. preserves the previous behavior.)
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 8825bda
Author: H. Peter Anvin <hpa@zytor.com>
Date: Wed Jan 6 20:55:36 2010 +0100
mkdosfs: improve wording in the man page for the -a option.
Improve the English language used in the man page for the -a (no
align) option to mkdosfs.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 21d3f81
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Wed Jan 6 11:27:25 2010 +0100
Adding reference to dosfslable in mkdosfs manpage.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 247ba06
Author: H. Peter Anvin <hpa@zytor.com>
Date: Wed Jan 6 11:18:55 2010 +0100
mkdosfs: by default align all structures to cluster boundaries
Align all data structures (reserved sectors, FATs, root directory for
FAT12/16) to an even multiple of the cluster size. This means that if
the partition is aligned, so will all clusters be. This adds
significant performance for anything where the physical sector size is
larger than the logical sector size, e.g. flash media or large-sector
hard disks.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 171bc07 (tag: v3.0.7)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Thu Dec 24 10:53:36 2009 +0100
Releasing version 3.0.7.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 28708fc
Author: Ben Hutchings <ben@decadent.org.uk>
Date: Thu Dec 24 09:55:52 2009 +0100
Fixing dosfslabel to set volume label in the right place,
see Debian bug #559985.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 2c405dd
Author: Lubomir Rintel <lkundrak@v3.sk>
Date: Thu Dec 24 09:39:39 2009 +0100
Fixing out-of bound writes.
Firstly, packed attribute is added to the structure so that extension
is guarranteed to immediately follow name for the cross-name-extension
reads to succeed.
Secondly, writes into dir_entry->name that span through the extension as
well are split into two, so that FORTIFY_SOURCE's bound checking does
not abort dosfsck. There also was an off-by-one error in auto_rename()'s
sprintf().
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit b8f3efe
Author: San Mehat <san@google.com>
Date: Thu Dec 24 09:31:41 2009 +0100
Adding custom exit code in dosfsck for the case where the FS is read only.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 0657e01 (tag: v3.0.6)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Oct 4 10:59:33 2009 +0200
Releasing version 3.0.6.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit bc84254
Author: Steven J. Magnani <steve@digidescorp.com>
Date: Sun Oct 4 10:58:43 2009 +0200
Attempt to improve clarity of the orphan cluster reclaim code.
Minor optimization - remove some unnecessary checking.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 8054b4a
Author: Steven J. Magnani <steve@digidescorp.com>
Date: Sun Oct 4 08:37:19 2009 +0200
Close hole that permitted clusters to link to (invalid) cluster 1.
If an orphan chain that linked to cluster 1 was reclaimed to a file,
deletion of the file would result in a filesystem panic.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit e51af88
Author: Steven J. Magnani <steve@digidescorp.com>
Date: Sun Oct 4 08:32:30 2009 +0200
Fix erroneous report of huge number of clusters in use on big-endian
systems when the FSINFO free cluster count is reset.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 16ba63f (tag: v3.0.5)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Mon Jul 27 14:26:11 2009 +0200
Releasing version 3.0.5.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 28ff9d9
Author: Piotr Kaczuba <pepe@attika.ath.cx>
Date: Sun Jul 26 22:21:25 2009 +0200
Signed/unsigned char mismatch in check.c causes false positives
in bad_name() and can result in data loss, see Debian bug #538758.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit d42a273
Author: Andrew Tridgell <tridge@samba.org>
Date: Sun Jul 26 22:12:06 2009 +0200
Update to new kernel patches that add FAT_NO_83NAME flag.
See http://lkml.org/lkml/2009/7/20/425 and
http://lkml.org/lkml/2009/7/20/424 for more information.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit dd0f0b5 (tag: v3.0.4)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Tue Jul 21 08:10:52 2009 +0200
Releasing version 3.0.4.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit b9f37a6
Author: Andrew Tridgell <tridge@samba.org>
Date: Tue Jul 21 07:59:22 2009 +0200
Modify dosfstools to support the dummy 8.3 short filename values
used by Linux systems with the VFAT_FS_DUALNAMES option disabled.
See http://lkml.org/lkml/2009/6/26/313 and
http://lkml.org/lkml/2009/6/26/314 for more information.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit ecd15e8
Author: Paul Rupe <prupe@nc.rr.com>
Date: Tue May 19 10:37:52 2009 +0200
Fixing "Too many files need repair" error during fsck.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 7c16098 (tag: v3.0.3)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Mon May 18 15:12:04 2009 +0200
Releasing version 3.0.3.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit b396dcf
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Mon May 18 15:10:55 2009 +0200
Also declaring arm as an unaligned architecture, see Debian bug #502961.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit ff1b24e
Author: Steven J. Magnani <steve@digidescorp.com>
Date: Mon May 18 15:01:49 2009 +0200
Adding support for limited-memory embedded systems.
This patch reorganizes heap memory usage by dosfsck and mkdosfs
to support limited-memory embedded systems - in particular, those
based on Xilinx's Microblaze processor. It also adds a few comments.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 89f0b72
Author: Mike Frysinger <vapier@gentoo.org>
Date: Thu Mar 5 07:03:36 2009 +0100
Declaring Blackfin as an unaligned architecture.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit b54a8a4 (tag: v3.0.2)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sat Feb 28 09:48:04 2009 +0100
Releasing version 3.0.2.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 9500529
Author: Hiroaki Ishizawa <hiroaki.ishizawa@gmail.com>
Date: Fri Feb 13 10:00:46 2009 +0100
dosfsck corrupts root directory when fs->nfats is 1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 043f8a8
Author: Stepan Kasal <skasal@redhat.com>
Date: Fri Jan 30 14:56:33 2009 +0100
src/dosfslabel.c (main): After writing the label, exit code should be 0.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 017da27
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Jan 30 14:06:01 2009 +0100
Also installing ChangeLog in install-doc target of Makefile.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 1c76f0f
Author: Stepan Kasal <skasal@redhat.com>
Date: Fri Jan 30 14:05:12 2009 +0100
Makefile: Do not clobber time stamps of doc files.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit df2d2f1 (tag: v3.0.1)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Nov 23 22:45:45 2008 +0100
Releasing version 3.0.1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 17b269b
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Nov 23 18:41:01 2008 +0100
Applying Fedoras dosfstools-vfat-timingfix.diff from Bill Nottingham
<notting@redhat.com> to fix vfat timing issue. See
https://bugzilla.redhat.com/show_bug.cgi?id=448247 for more information.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit e597caf
Author: Ulrich Mueller <ulm@gentoo.org>
Date: Tue Oct 7 07:55:37 2008 +0200
Patch to check for bad number of clusters in dosfsck:
* FAT16 filesystems with 65525 clusters or more will be rejected
(Before, this was not tested for. Up to 65535 clusters were accepted
as good).
* For FAT32 filesystems with less than 65525 a warning message will be
output.
Macro MSDOS_FAT12 is now replaced by FAT12_THRESHOLD to make it
consistent with the definition in mkdosfs and to remove the dependency
on the kernel version.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 90102bc
Author: Dann Frazier <dannf@hp.com>
Date: Tue Sep 30 07:25:19 2008 +0200
Changing some wording to make the indended meaning of "full-disk device"
more obvious.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 21e9ba0 (tag: v3.0.0)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Sep 28 11:43:19 2008 +0200
Releasing version 3.0.0.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit eaf145d
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Sep 28 11:29:01 2008 +0200
Adding GPL headers to all files.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 0826117
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sun Sep 28 10:51:55 2008 +0200
Adding new GPL license file.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit f8d6127
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 23:31:12 2008 +0200
Redoing Makefile from scratch.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit b4feb73
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Sat Sep 27 00:17:38 2008 +0200
Removing whitespaces in all files at EOL and EOF.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 1410138
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 23:48:56 2008 +0200
Adding Debians dosfslabel.8 manpage from Francois Wendling
<frwendling@free.fr>.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit f62e7f2
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 18:36:04 2008 +0200
Updating version.h includes to new location of version.h file.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 32e5952
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 18:19:36 2008 +0200
Removing old lsm file.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 25a433b
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 18:07:47 2008 +0200
Removing old cvsignore files.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit acac13f
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 18:18:39 2008 +0200
Removing old build file.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 3ecdd21
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 18:19:16 2008 +0200
Removing old GPL license files.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit f183d0e
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 18:21:57 2008 +0200
Unifying dosfsck and mkdosfs Makefiles in common src/Makefile.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 61e7466
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 18:04:02 2008 +0200
Unifying dosfsck and mkdosfs sources in common src directory.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 7552d57
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 18:05:27 2008 +0200
Unifying dosfsck and mkdosfs manpages in common man directory.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 124598b
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 18:12:29 2008 +0200
Unifying dosfsck and mkdosfs documents in common doc directory.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit fb9c46b
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 15:39:51 2008 +0200
Applying Gentoos dosfstools-2.11-preen.patch from Roy Marples
<uberlord@gentoo.org> to alias dosfsck -p to -a:
* Map -p to -a for baselayout-2, #177514.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit aaa40a9
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 15:49:43 2008 +0200
Applying Gentoos dosfstools-2.11-build.patch from Mike Frysinger
<vapier@gentoo.org> to improve Makefile:
* Respect user settings #157785/#157786 by Diego Petteno.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 251626d
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 15:37:34 2008 +0200
Applying Gentoos dosfstools-2.11-verify-double-count-fix.patch from
Robin H. Johnson <robbat2@gentoo.org> to fix double count of files
during verification:
* Don't double-count n_files during a verification pass.
Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=99845
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit e670ea8
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 15:33:36 2008 +0200
Applying Gentoos dosfstools-2.11-fat32size.patch from Mike Frysinger
<vapier@gentoo.org> to fix generation of filesystems on 256meg devices:
* Fix generation of FAT filesystems on devices that are 256meg in size
Patch by Ulrich Mueller and accepted upstream
http://bugs.gentoo.org/112504
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit a6dc6a4
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 15:22:06 2008 +0200
Applying Suses dosfstools-2.11-unsupported-sector-size.patch from Petr
Gajdos <pgajdos@suse.cz> to add sector size warning:
* added warning for creation msdos on filesystem with sector size
greater than 4096 [fate#303325]
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit f746956
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 15:18:35 2008 +0200
Applying Suses dosfstools-2.11-mkdosfs-geo0.diff from Ludwig Nussel
<lnussel@suse.de> to fix handling of zero heads and sectors:
* the HDIO_GETGEO ioctl works on device mapper devices but returns
zero heads and sectors. Therefore let's a) assume dummy values in
that case in mkdosfs and b) don't consider such fat file systems as
invalid in dosfsck. The Linux kernel accepts them anyways.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit cf243e4
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 15:15:40 2008 +0200
Applying Suses dosfstools-2.11-linuxfs.patch from Ruediger Oertel
<ro@suse.de> to not include linux/fs.h.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 2d4f184
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 15:11:50 2008 +0200
Applying Fedoras dosfstools-2.11-assumeKernel26.patch from Peter Vrabec
<pvrabec@redhat.com> to remove linux 2.6 conditionals:
* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) does not work with
glibc-kernheaders-2.4-9.1.94
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 739a6fb
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 15:05:00 2008 +0200
Applying Debians 99-conglomeration.dpatch (no other information
available).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 3b5ed8a
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:26:41 2008 +0200
Applying Debians 15-manpage-files.dpatch from Daniel Baumann
<daniel@debian.org> to improve dosfsck manpage:
* Lists fsckNNNN.rec files in FILES section (Closes: #444596).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 3b6a863
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:34:42 2008 +0200
Applying Debians 13-getopt.dpatch from Adonikam Virgo
<adonikam@virgonet.org> to fix mkdosfs getopt:
* Fixes backup sector getopt (Closes: #232387, #479794).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 1b2c8ca
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:34:17 2008 +0200
Applying Debians 12-zero-slot.dpatch by Karl Tomlinson
<karlt@karlt.net> to fix dosfsck zero slot crashes:
* Fixes crashes due to zero slot numbers causing a negative offset in
the call to copy_lfn_part in lfn_add_slot. On amd64 this results in
a SIGSEGV in copy_lfn_part. On x86 the result is heap corruption and
thus sometimes a SIGSEGV or double free abort later. (Closes:
#152550, #353198, #356377, #401798).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit eec8585
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:33:54 2008 +0200
Applying Debians 11-memory-efficiency.dpatch from Eero Tamminen
<eero.tamminen@nokia.com> to improve dosfsck memory efficiency:
* Improves memory efficiency when checking filesystems.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 06bd669
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:33:28 2008 +0200
Applying Debians 10-manpage-synopsis.dpatch from Daniel Baumann
<daniel@debian.org> to fix manpage synopsis:
* List alternative binary names in manpage synopsis (Closes: #284983).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 42d340d
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:32:46 2008 +0200
Applying Debians 09-manpage-fat32.dpatch from Daniel Baumann
<daniel@debian.org> to improve mkdosfs manpage:
* Don't claim that FAT32 is not choosed automatically (Closes:
#414183).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 0f5ce0d
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:32:23 2008 +0200
Applying Debians 08-manpage-drop.dpatch from Daniel Baumann
<daniel@debian.org> to improve dosfsck manpage:
* Don't use confusing word 'drop' when 'delete' is meant (Closes:
#134100).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 8ec54dd
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:31:50 2008 +0200
Applying Debians 07-manpage-spelling.dpatch from Justin Pryzby
<justinpryzby@users.sourceforge.net> to fix mkdosfs manpage typos.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 4371588
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:30:31 2008 +0200
Applying Suses dosfstools-2.11_determine-sector-size.patch from Petr
Gajdos <pgajdos@suse.cz> to determine mkdosfs sector size automatically:
* determine sector size of device automatically or if -S parameter
present, verify, that it's not under physical sector size
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit fc92e19
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:30:03 2008 +0200
Applying Suses dosfstools-2.11-o_excl.patch from Pavol Rusnak
<prusnak@suse.cz> to use O_EXCL in mkdosfs:
* mkdosfs now opens device with O_EXCL [#238687]
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 3084697
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 14:29:36 2008 +0200
Applying Debians 04-unaligned-memory.dpatch from Khalid Aziz
<khalid_aziz@hp.com> to fix dosfsck unaligned memory accesses:
* Fix unaligned memory accesses which cause warnings to appear
everytime the elilo bootloader script runs. This has led a number of
users to believe their install has failed (Closes: #258839).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 6d5c091
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 13:47:40 2008 +0200
Applying Fedoras dosfstools-2.11-label.patch from Jeremy Katz
<katzj@redhat.com> to add dosfslabel (originally by Peter Jones).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 07ef487
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 13:41:14 2008 +0200
Applying Fedoras dosfstools-2.11-fortify.patch from Jakub Jelinek
<jakub@redhat.com> to make it build with -D_FORTIFY_SOURCE=2:
* This violates -D_FORTIFY_SOURCE=2 (which is stricter than C
standard), but isn't actually any buffer overflow. But using memcpy
is more efficient anyway.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit 78f9dca
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Fri Sep 26 13:40:47 2008 +0200
Applying Fedoras dosfstools-2.7-argfix.patch (no other information
available).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
commit ba6774a (tag: v2.11)
Author: Daniel Baumann <mail@daniel-baumann.ch>
Date: Thu Jun 26 12:45:36 2008 +0200
Adding version 2.11.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
|