History log of /system/core/toolbox/newfs_msdos.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
58da81d98748892fcbe9eeb71e7ca5c1b0e4b68b 16-Nov-2016 Ting-Yuan Huang <laszio@google.com> toolbox: fix memory leak

free img

Test: make WITH_TIDY=1 mmma system/core/toolbox
Change-Id: I2f8feff0eddca763ee4e7fc9867480af60c8a911
/system/core/toolbox/newfs_msdos.c
e7aa2b2c8378b458345477d1f6d9904490263bb6 02-Mar-2016 George Burgess IV <gbiv@google.com> Cleanup uses of sprintf so we can deprecate it.

Also cleans up two instances of open() with useless mode params, and
changes a few uses of snprintf to use sizeof(buffer) instead of
hardcoded buffer sizes.

Change-Id: If11591003d910c995e72ad8f75afd072c255a3c5
/system/core/toolbox/newfs_msdos.c
c06541912d344d30df51b00d646f40c7c2cdad1d 30-Mar-2015 Johan Redestig <johan.redestig@sonymobile.com> toolbox: Fixed type mismatch for ioctl(BLKGETSIZE)

ioctl(BLKGETSIZE) expects unsigned long
(8 bytes on 64 bit environment).

Change-Id: Ic0f1d48e1d4cb890dbf617b3eb6285425cdbf0d0
/system/core/toolbox/newfs_msdos.c
8218b6aae9cd4a19fa074a8a8203fe9275b35447 10-Oct-2014 Daniel Rosenberg <drosen@google.com> newfs_msdos: Set sectors per fat once

There was an issue causing the fat size to shrink too small, causing
a fsck check to fail.

Bug: 17949028
Bug: 17761281
Change-Id: Id0207f2ab44e57ff81f5a53494b45344822a6495
Signed-off-by: Daniel Rosenberg <drosen@google.com>
/system/core/toolbox/newfs_msdos.c
052f27562154d175267999106bd6bf18fc8c363e 16-Jul-2014 Daniel Rosenberg <drosen@google.com> newfs_msdos: Added option to cluster-align the start of the root directory

This follows the recommendations of the SD-card association.

Change-Id: Ie89a5972d086b3df9d92e631c394a521f807b016
Signed-off-by: Daniel Rosenberg <drosen@google.com>
/system/core/toolbox/newfs_msdos.c
33e7b13167bcfd65b6c595e316e515ff8eab4b33 09-Jul-2014 Daniel Rosenberg <drosen@google.com> Made formatting for newfs_msdos.c more uniform

Change-Id: I3d14350c70c05a7e2f713d0065524d78f9a413c6
Signed-off-by: Daniel Rosenberg <drosen@google.com>
/system/core/toolbox/newfs_msdos.c
aa907768af7ba9e29901d356cdcac6a436970323 08-May-2014 Mark Salyzyn <salyzyn@google.com> toolbox: turn on -Werror

- Deal with some signedness issues
- Deal with some size issues
- Deal with NULL pointer issues
- Deal with some -Wunused issues

Change-Id: I1479dd90d690084491bae3475f2c547833519a57
/system/core/toolbox/newfs_msdos.c
ccecf1425412beb2bc3bb38d470293fdc244d6f1 16-Jan-2014 Elliott Hughes <enh@google.com> system/core 64-bit cleanup.

This cleans up most of the size-related problems in system/core.
There are still a few changes needed for a clean 64-bit build,
but they look like they might require changes to things like the
fastboot protocol.

Change-Id: I1560425a289fa158e13e2e3173cc3e71976f92c0
/system/core/toolbox/newfs_msdos.c
ec3b164524fda0beb30354627f3e3f9d0c45126a 15-Dec-2011 Ken Sumrall <ksumrall@android.com> Make sure FAT32 filesystems contain a minimum of 65527 clusters

Some versions of windows cannot handle FAT32 filesystems with less
than 65527 clusters, so make sure we don't create such beasts.

Change-Id: Id00fb02c4f8476f7dcc0ef137bd9e4975d740591
/system/core/toolbox/newfs_msdos.c
661aff600c5cb8e72aa2892a2a75ea6015bf1457 03-Mar-2010 San Mehat <san@google.com> newfs_msdos: Allow -s option to work by itself

Signed-off-by: San Mehat <san@google.com>
/system/core/toolbox/newfs_msdos.c
1b1fd61295d76b734f68309d0057699a1ba1cc37 14-Jan-2010 Colin Cross <ccross@android.com> Remove definitions that are now in bionic libc
/system/core/toolbox/newfs_msdos.c
eab453c612d6d422f863c31da67f00bc4beec914 10-Jan-2010 San Mehat <san@google.com> toolbox: newfs_msdos: Exit on write failure, and handle bogus geometry from the kernel

Signed-off-by: San Mehat <san@google.com>
/system/core/toolbox/newfs_msdos.c
ff3bcd03079d9e0e94f70955370f3eb940d6244a 05-Jan-2010 San Mehat <san@google.com> toolbox: newfs_msdos: If geometry is not available, use some sane-ish defaults

Signed-off-by: San Mehat <san@google.com>
/system/core/toolbox/newfs_msdos.c
72eead43c7711ca97b2d7f578e6b8854a2856ce0 06-Jul-2009 San Mehat <san@google.com> toolbox: mkdosfs: Imported new 'newfs_msdos' updated disk formatter

Signed-off-by: San Mehat <san@google.com>
/system/core/toolbox/newfs_msdos.c