diff options
author | Ralf Kirchner <ralf.kirchner@embedded-brains.de> | 2012-12-05 14:11:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-12-05 15:26:47 +0100 |
commit | 5b8d935ab3b9b70302d53292f024999a2259ca7b (patch) | |
tree | 2666c0e7158b81d094601cbfb11920731234e45a /cpukit/libfs/src/dosfs/dosfs.h | |
parent | libblock: Add sparse disk (diff) | |
download | rtems-5b8d935ab3b9b70302d53292f024999a2259ca7b.tar.bz2 |
dosfs: Add skip_alignment for msdos_format()
Add skip_alignment parameter of msdos_format_request_param_t. Delete
cluster_align parameter of msdos_format_request_param_t.
By default the FAT, data cluster, and root directory for FAT12 and FAT16
is aligned on a cluster boundary to optimize performance.
Format changes throughout.
Diffstat (limited to 'cpukit/libfs/src/dosfs/dosfs.h')
-rw-r--r-- | cpukit/libfs/src/dosfs/dosfs.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cpukit/libfs/src/dosfs/dosfs.h b/cpukit/libfs/src/dosfs/dosfs.h index 93d77892d7..530d23ecd5 100644 --- a/cpukit/libfs/src/dosfs/dosfs.h +++ b/cpukit/libfs/src/dosfs/dosfs.h @@ -49,12 +49,9 @@ typedef struct { uint8_t fattype; /* request value: MSDOS_FMT_FAT12/16/32 */ uint8_t media; /* media code. default: 0xF8 */ bool quick_format; /* true: do not clear out data sectors */ - uint32_t cluster_align; /* requested value: cluster alignment */ - /* make sector number of first sector */ - /* of first cluster divisible by this */ - /* value. This can optimize clusters */ - /* to be located at start of track */ - /* or start of flash block */ + bool skip_alignment; /* do not align FAT, data cluster, and */ + /* root directory for FAT12 and FAT16 to */ + /* a cluster boundary */ int info_level; /* The amount of info to output */ } msdos_format_request_param_t; |