History log of /haiku/src/add-ons/kernel/file_systems/fat/mkdos.cpp
Revision Date Author Comments
# 08430853 17-Nov-2022 Augustin Cavalier <waddlesplash@gmail.com>

FAT: Limit volume names to 11 characters, not 10.

The rest of the code does a memcpy(..., ..., min(11, strlen(...))
so clearly no NULL terminator is needed and 11 is the real limit.

Should fix #18074.

Change-Id: I6aea166899eab2bab9511ca52981ccc9172b6c17
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5823
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# d188fff3 15-Mar-2022 Alexander von Gluck IV <kallisti5@unixzen.com>

kernel/fs/fat: Fix volume label of newly created filesystems

* solves #17659
* We assigned the volume label to the root, but not the boot
sector (partition boot sector, not MBR)

Change-Id: I9c53204c18709c2d225cc8ea338290aa89d42083
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5106
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 2ca13760 20-Aug-2021 Coldfirex <sakison@gmail.com>

Mass updating of OpenBeOS text to Haiku

No functional code altered.

https://dev.haiku-os.org/ticket/17197

Change-Id: I75cc74f6be0ad968fd77c31fbe5b0f650a6fe9e0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4364
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# af435dd1 09-Dec-2020 X512 <danger_mail@list.ru>

libroot: remove delete_driver_settings

It is not present in BeOS R5 and it just call unload_driver_settings.

Replace delete_driver_settings usages with unload_driver_settings.
Keep the symbol on x86 for binary compatibility.

Change-Id: I1382710e3a4cb5c65d1249ea0e5880891e6800e4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3485
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 9f3ba01b 28-Dec-2020 Alexander von Gluck IV <kallisti5@unixzen.com>

file_system/fat: Rework driver for fs_shell support

* Introduce fat_shell for build system fat manipulation
* Will theoretically let us do away with mtools when we
have another internal tool for partition manipulation

Change-Id: I661be556e79009842f157a9402c8f85da85d6336
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3556
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# c23cd33c 26-Jun-2020 Murai Takashi <tmurai01@gmail.com>

file_systems/fat: Fix usage of sizeof()

Fix suspicious usage of 'sizeof' with a numeric constant
as parameter.
Pointed out by cppcheck.

Change-Id: Icf43843bb92b3db0634c20ddce38e2fe1099c552
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2954
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 325ca7f1 03-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

mkdos: some style cleanups

Change-Id: I943b202f0a745d623aa76417ea2090b4becb0ac4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1322
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 438da766 07-Feb-2020 Murai Takashi <tmurai01@gmail.com>

fat: Add missing 'else'

Fix PVS V646

Change-Id: Ie4635f4c29e22d8f78abcb0cf9f043108d3a3405
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2228
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 37c1db12 02-Jun-2019 Murai Takashi <tmurai01@gmail.com>

add-ons/kernel/file_systems/fat: Fix -Wformat=

Change-Id: Ife9278565adedc95d8574b1a539c3d6c5642a565
Reviewed-on: https://review.haiku-os.org/c/1520
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 452ac99f 03-Jan-2018 ohnx <me@masonx.ca>

mkdos: Handle memory allocation better

In the kernel and command-line tool, don't leak allocated memory,
even if the tool returns an error.

In the command-line tool, also handle memory allocation errors
nicely by giving the user an OOM message if allocation fails.

Fixes CID 1425367 and 1425224.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>


# 910a2b8c 10-Nov-2015 François Revol <revol@free.fr>

fat: Add initialization support

Not much tested yet but it does work on a 5MB image with mkfs.


# 6476935b 08-Nov-2015 François Revol <revol@free.fr>

fat: copy over the mkdos sources