Age | Commit message (Collapse) | Author |
|
* commit 'b94f2b6107f2adfd635fbec55ce6105687eb68b3':
Detect exFAT filesystems and abort if found
|
|
|
|
If fsck_msdos tries to fix an exFAT filesystem, it will damage it
and it won't be mountable on systems that support exFAT. So just
abort if the OEM name field is "EXFAT" or an invalid FAT32
Extended BIOS Parameter Block is detected. The test to detect
an invalid BIOS Parameter Block was developed by Sony.
Change-Id: I09e8457e399239e840c825b858a635a7d9462def
|
|
If fsck_msdos tries to fix an exFAT filesystem, it will damage it
and it won't be mountable on systems that support exFAT. So just
abort if the OEM name field is "EXFAT" or an invalid FAT32
Extended BIOS Parameter Block is detected. The test to detect
an invalid BIOS Parameter Block was developed by Sony.
Change-Id: I09e8457e399239e840c825b858a635a7d9462def
|
|
|
|
If the number of FATs field in the boot sector is zero, give
an appropriate error code.
Change-Id: I56545fb322a9d4c94aea8ddbd4879701617100e4
Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com>
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
|
|
|
|
When fsck_msdos was asked to analyze a device that contained
a partition table in its first sector fsck_msdos was doing a
division-by-zero because of mostly zeroed out fields. This
fix postpones the division until it is necessary, while
other tests already present detect the zeroed out fields and
so fsck_msdos fails in a controlled fashion.
Change-Id: Id2274b140449f4470f95a0215277f2f2de4cb7b0
Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com>
Signed-off-by: christian bejram <christian.bejram@stericsson.com>
|
|
|
|
Bug: 5010576
Change-Id: I0d523c2e62cb61d2305c5bf20733bcbeb41dfa89
|
|
Change-Id: Ia10d4d15ca662edadfcd83491d5f2cab19669fef
|
|
Change-Id: Iebd91e356bec8bec29e120aea9bb10bcf02bc356
|
|
Change-Id: I8829a3a2c26625d7405fa0a43da1640ea5c9ffbc
Signed-off-by: Mike Lockwood <lockwood@google.com>
|
|
From SD Specifications Part2 - File System
For Next Free Cluster, value FFFFFFFFh indicates that there exists
no information about the first available (free) cluster. It is a
valid value. However fat.c doesn't check the value before use it
as array index. This will cause fsck_msdos coredump with some
micro sd cards
Change-Id: Ibdec1655399d95c3ca98a4f4aaed1fd9bf459f33
Signed-off-by: Ethan <ethan.too@gmail.com>
|
|
Change-Id: I97b762bb479d213c8596a34a361dae1456cbeeac
|
|
|
|
|
|
|
|
Merge commit 'c8303378f40f96f75c5c353a776fe22e5e6a8fb5' into eclair
* commit 'c8303378f40f96f75c5c353a776fe22e5e6a8fb5':
Add missing license-related files
|
|
BUG=1573996
|
|
Merge commit '4d6d6f8a3674ad67f970e2ae908d34f64e4854cf'
* commit '4d6d6f8a3674ad67f970e2ae908d34f64e4854cf':
fix the issue that variable lfcl in dir.c get enormous value.
|
|
Signed-off-by: Shengzhe Zhao <a18689@motorola.com>
Signed-off-by: San Mehat <san@google.com>
|
|
Signed-off-by: Shengzhe Zhao <a18689@motorola.com>
Signed-off-by: San Mehat <san@google.com>
|
|
Signed-off-by: San Mehat <san@google.com>
|
|
chain, clear it.
Also, use exit code 4 when the FS has been modified in someway.
Signed-off-by: San Mehat <san@google.com>
|
|
Signed-off-by: San Mehat <san@google.com>
|
|
Some factory formatted sdcards seem to have a garbage backup block.
Signed-off-by: San Mehat <san@google.com>
|
|
Signed-off-by: San Mehat <san@google.com>
|
|
Signed-off-by: San Mehat <san@google.com>
|
|
|