Christian Taedcke
08f622a127
fs: fat: calculate FAT type based on cluster count
...
This fixes an issue where the FAT type (FAT12, FAT16) is not
correctly detected, e.g. when the BPB field BS_FilSysType contains the
valid value "FAT ".
According to the FAT spec the field BS_FilSysType has only
informational character and does not determine the FAT type.
The logic of this code is based on the linux kernel implementation
from the file fs/fat/inode.c function fat_fill_super().
For details about FAT see http://elm-chan.org/docs/fat_e.html
Signed-off-by: Christian Taedcke <christian.taedcke@weidmueller.com>
2023-11-28 20:10:24 -05:00
..
2023-09-22 06:03:46 +08:00
2023-10-06 14:38:13 -04:00
2023-11-10 11:01:51 -05:00
2023-09-24 09:54:57 -04:00
2023-11-14 20:04:01 -07:00
2023-11-10 11:01:50 -05:00
2023-11-10 11:01:50 -05:00
2023-05-31 12:31:47 -04:00
2023-07-13 11:29:40 +02:00
2023-10-10 10:13:33 +08:00
2023-11-10 11:01:50 -05:00
2023-10-15 12:23:48 +02:00
2023-05-05 17:48:44 -04:00
2023-11-10 11:01:50 -05:00
2023-10-16 15:46:18 +02:00
2023-10-27 19:27:29 -04:00
2023-08-25 13:54:33 -04:00
2023-07-17 15:39:55 -04:00
2023-08-08 10:22:03 -04:00
2023-08-08 10:22:03 -04:00
2023-04-28 01:30:24 +01:00
2023-04-28 01:30:24 +01:00
2023-04-28 01:30:24 +01:00
2023-04-28 01:30:24 +01:00
2023-11-12 16:47:16 +00:00
2023-04-28 11:30:17 -06:00
2023-10-24 15:55:17 +08:00
2023-10-06 14:38:13 -04:00
2023-11-10 11:01:50 -05:00
2023-08-11 07:33:38 -06:00
2023-10-27 13:15:57 +03:00
2023-08-25 17:55:19 -04:00
2023-10-24 16:34:45 -04:00
2023-07-17 15:38:11 -04:00
2023-10-24 16:34:45 -04:00
2023-11-02 22:38:01 -04:00
2023-08-25 13:54:33 -04:00
2023-10-11 15:43:54 -04:00
2023-08-19 04:12:53 +02:00
2023-11-01 15:14:51 -04:00
2023-10-16 10:22:11 -04:00
2023-09-24 09:54:57 -04:00
2023-05-10 16:45:42 -04:00
2023-11-10 11:01:50 -05:00
2023-10-24 16:34:45 -04:00
2023-11-10 11:01:50 -05:00
2023-11-10 11:01:50 -05:00
2023-07-20 09:12:50 +02:00
2023-07-15 11:20:41 +02:00
2023-10-12 08:32:27 +02:00
2023-10-27 13:14:47 +03:00
2023-07-16 23:13:17 +08:00
2023-11-07 13:47:08 +01:00
2023-05-05 13:41:55 -04:00
2023-11-07 13:47:08 +01:00
2023-09-14 10:42:24 -04:00
2023-10-23 17:07:06 +03:00
2023-10-11 15:43:55 -04:00
2023-10-17 20:50:52 -04:00
2023-10-17 20:50:52 -04:00
2023-05-02 14:23:34 -04:00
2023-05-13 09:52:32 -04:00
2023-05-05 17:48:44 -04:00
2023-11-28 20:10:24 -05:00
2023-04-28 11:30:17 -06:00
2023-06-16 11:01:15 +02:00
2023-05-06 17:28:18 +08:00
2023-05-15 10:00:30 +02:00
2023-09-21 13:20:11 +02:00
2023-07-14 12:54:51 -04:00
2023-07-13 11:29:40 +02:00
2023-06-12 13:24:31 +02:00
2023-06-19 14:34:16 -04:00
2023-06-09 13:52:40 -04:00
2023-11-10 11:01:50 -05:00
2023-10-31 09:08:51 +01:00
2023-04-27 13:51:06 -04:00
2023-07-25 12:44:46 -04:00
2023-10-27 13:15:57 +03:00
2023-10-17 20:50:52 -04:00
2023-07-13 11:29:40 +02:00
2023-10-23 17:07:06 +03:00
2023-09-14 10:42:24 -04:00
2023-11-02 16:22:06 +08:00
2023-08-19 04:12:53 +02:00
2023-11-10 11:01:50 -05:00
2023-11-10 11:01:50 -05:00
2023-11-10 11:01:50 -05:00
2023-08-15 18:21:17 +02:00
2023-07-14 12:54:51 -04:00
2023-10-11 15:43:55 -04:00
2023-08-08 10:22:03 -04:00
2023-07-18 09:17:16 +09:00
2023-11-10 11:01:50 -05:00
2023-11-10 11:01:50 -05:00
2023-05-05 17:58:52 -04:00
2023-07-27 13:39:07 -04:00
2023-11-05 16:11:38 -05:00
2023-10-06 14:38:13 -04:00
2023-08-30 17:56:21 -04:00
2023-10-06 14:38:13 -04:00
2023-06-20 16:08:13 -04:00
2023-08-25 17:55:19 -04:00
2023-08-25 17:55:19 -04:00
2023-09-11 16:27:49 -04:00
2023-09-14 10:42:25 -04:00
2023-09-14 10:42:25 -04:00
2023-05-05 17:48:44 -04:00
2023-05-06 17:28:18 +08:00
2023-09-14 10:42:24 -04:00
2023-11-10 11:01:50 -05:00
2023-10-24 15:55:17 +08:00
2023-08-29 13:37:54 -04:00
2023-10-10 16:19:43 -04:00
2023-10-15 12:23:48 +02:00
2023-10-23 13:07:12 -04:00
2023-10-24 17:05:24 -04:00
2023-10-13 16:59:23 -04:00
2023-10-24 17:05:24 -04:00
2023-08-22 15:17:53 -04:00
2023-11-01 10:01:10 +09:00
2023-09-15 23:38:02 +02:00
2023-11-07 13:47:08 +01:00
2023-10-15 12:23:48 +02:00
2023-10-15 12:23:48 +02:00
2023-11-10 11:01:50 -05:00
2023-10-24 09:39:02 -04:00
2023-04-24 21:37:45 +02:00
2023-10-09 15:24:31 -04:00
2023-10-22 23:41:46 +01:00
2023-05-06 17:28:18 +08:00
2023-10-06 14:38:12 -04:00
2023-09-15 23:38:02 +02:00
2023-11-10 11:01:50 -05:00
2023-09-09 06:12:47 +02:00
2023-05-08 10:47:05 +02:00
2023-10-27 13:14:47 +03:00
2023-06-06 10:37:25 +02:00
2023-09-15 23:38:02 +02:00
2023-08-09 23:31:11 +08:00
2023-08-25 17:55:18 -04:00
2023-07-21 09:00:38 +02:00
2023-05-31 17:23:01 -04:00
2023-10-11 15:43:55 -04:00
2023-11-14 20:04:00 -07:00
2023-04-25 11:53:15 -04:00
2023-09-21 13:20:10 +02:00
2023-07-21 09:00:38 +02:00