#
dae266a8 |
|
05-Feb-2014 |
John Scipione <jscipione@gmail.com> |
exfat: fix problems with hrev46820 * Set the size of the volume name member var to B_FILE_NAME_LENGTH which is the max width of a volume name according to the BeBook and the Support Kit code. We'll deal with trying to stuff the volume name back into the exfat volume label later. * Rename volume_name() to get_volume_name() * Pass the name string length into get_volume_name() and use it to avoid buffer overrun. * Fill name with a blank string if volume has no label. * Don't memset the name with zeros before doing the conversion from Unicode to UTF-8, the conversion function will make sure the result is NUL-terminated if it returns B_OK. * Also check the return value of the Unicode conversion function and return an error if it fails. * Add get_default_volume_name() method to Utility.cpp which is used to fill out the default volume name in the case volume name is blank. e.g. 32GiB ExFAT Volume. This now applies to both the volume name and mount point. * Use non-metric prefixes for default volume name, e.g. MiB, GiB, TiB * For an unset volume name fill the volume name with an empty string. * Remove the leading underscore from _name and _partition parameters * Replace size constants with sizeof() calls * Remove Axel from the copyright statement in Utility.cpp, he had nothing to do with it, add Jérôme (aka korli) because he wrote the code for get_default_volume_name() (was in Volumes.cpp) * Remove some trailing spaces from encodings.cpp Thanks Axel.
|
#
762b846c |
|
04-Feb-2014 |
John Scipione <jscipione@gmail.com> |
exfat: Set the mountpoint to same as volume name Fixes #10501 * update copyright headers, attribute to Haiku, Inc. add authors * volume_name gets filled out by a utility function in Utility.cpp * update exfat_entry - rename name_label to just label - adjust volume_label to have 11 uint16 chars plus 8 uint8 reserved - add guid partition info * Added a couple new entry type defines * fName is 34 bytes long which fits the 11 3-byte UTF-8 chars and a \0
|
#
aeb03a8f |
|
04-Feb-2014 |
John Scipione <jscipione@gmail.com> |
exfat: style fixes only
|
#
ce9fdaea |
|
10-Feb-2011 |
Jérôme Duval <korli@users.berlios.de> |
* takes into account volume label * clean up * directories don't seem to have a valid contiguous flag, fixes directories with many files. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40431 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e74e90ae |
|
09-Feb-2011 |
Jérôme Duval <korli@users.berlios.de> |
* Implemented a read-only exFAT file system, tested with a 4GB image. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40409 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
dae266a8a4141d0c1059685b78bb9bd5b27c8389 |
|
05-Feb-2014 |
John Scipione <jscipione@gmail.com> |
exfat: fix problems with hrev46820 * Set the size of the volume name member var to B_FILE_NAME_LENGTH which is the max width of a volume name according to the BeBook and the Support Kit code. We'll deal with trying to stuff the volume name back into the exfat volume label later. * Rename volume_name() to get_volume_name() * Pass the name string length into get_volume_name() and use it to avoid buffer overrun. * Fill name with a blank string if volume has no label. * Don't memset the name with zeros before doing the conversion from Unicode to UTF-8, the conversion function will make sure the result is NUL-terminated if it returns B_OK. * Also check the return value of the Unicode conversion function and return an error if it fails. * Add get_default_volume_name() method to Utility.cpp which is used to fill out the default volume name in the case volume name is blank. e.g. 32GiB ExFAT Volume. This now applies to both the volume name and mount point. * Use non-metric prefixes for default volume name, e.g. MiB, GiB, TiB * For an unset volume name fill the volume name with an empty string. * Remove the leading underscore from _name and _partition parameters * Replace size constants with sizeof() calls * Remove Axel from the copyright statement in Utility.cpp, he had nothing to do with it, add Jérôme (aka korli) because he wrote the code for get_default_volume_name() (was in Volumes.cpp) * Remove some trailing spaces from encodings.cpp Thanks Axel.
|
#
762b846cf8ba678f31a854a85e68003d2071be8d |
|
04-Feb-2014 |
John Scipione <jscipione@gmail.com> |
exfat: Set the mountpoint to same as volume name Fixes #10501 * update copyright headers, attribute to Haiku, Inc. add authors * volume_name gets filled out by a utility function in Utility.cpp * update exfat_entry - rename name_label to just label - adjust volume_label to have 11 uint16 chars plus 8 uint8 reserved - add guid partition info * Added a couple new entry type defines * fName is 34 bytes long which fits the 11 3-byte UTF-8 chars and a \0
|
#
aeb03a8f68bad446e3f1178fa9ea8cb3c9e460ab |
|
04-Feb-2014 |
John Scipione <jscipione@gmail.com> |
exfat: style fixes only
|
#
ce9fdaeae4e2465dfc3cd53954416e9567456ee9 |
|
10-Feb-2011 |
Jérôme Duval <korli@users.berlios.de> |
* takes into account volume label * clean up * directories don't seem to have a valid contiguous flag, fixes directories with many files. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40431 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e74e90aef91f844d4d3654504cd0776c26a454e5 |
|
09-Feb-2011 |
Jérôme Duval <korli@users.berlios.de> |
* Implemented a read-only exFAT file system, tested with a 4GB image. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40409 a95241bf-73f2-0310-859d-f6bbb57e9c96
|