History log of /haiku/src/add-ons/kernel/partitioning_systems/amiga/amiga_rdb.cpp
Revision Date Author Comments
# 425ac1b6 20-Jun-2023 Alexander von Gluck IV <kallisti5@unixzen.com>

refactor: Swap %Ld for %lld in all format usages

* %Ld is an undocumented alias for %lld in glibc.
* muslc doesn't implement it for this reason.
* While we will likely never drop %Ld support,
lets clean house and set a better example.

Change-Id: Id46dad3104abae483e80cc5c05d1464d3ecd8030
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6636
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# bdcd7fca 30-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Remove kernel/disk_device_manager from Jamfiles (the add-ons now need to
specify the path).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34377 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d6778355 30-Sep-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* <DiskDeviceTypes.h>: Removed kPartitionTypeIntel{Primary,Logical} constants.
* Added new header headers/private/system/disk_device_types.h, which defines
the <DiskDeviceTypes.h> constants as macros and which can be used where the
constants cannot be used. The constants are defined using the macros, so now
there's only one place where the string literals should be specified.
* Use the macros in the partitioning systems. I was too lazy to also adjust the
file systems -- most of them seem to hard-code the string literal yet.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33386 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1cc5e469 08-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added offset and size parameters to create_child_partition() and
KPartition::CreateChild(). CreateChild() calls AddChild(), which publishes
the new partition, though at that point offset and size were not set, so that
the published devices would not be usable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31463 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1da9f5ce 10-May-2008 Axel Dörfler <axeld@pinc-software.de>

* Added BDiskSystem::ShortName() and everything needed to get it there.
* Added BDiskDeviceRoster::GetDiskSystem() method, that can get a disk system
by short/pretty/module name - since they should all be unique, I put them
in a single namespace, please complain if you don't like that :-)
* Cleaned up DiskSystem.h and DiskDeviceRoster.h according to the updated
header guidelines.
* Renamed ntfs pretty name from "ntfs File System" to "Windows NT File System".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25414 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1fac18e1 25-Jun-2004 Axel Dörfler <axeld@pinc-software.de>

This fixes the intel/apple/amiga partitioning modules.
String references, const or not, require the static object to be initialized
by a constructor; it will be put into the BSS region.
Now, kernel modules are not linked against crtbegin.o, and the kernel does
not call any init functions on the module.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8166 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 070bba86 16-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

The partition-is-big-enough-for-child test did not work correctly; the
partition offset doesn't belong there (caused it to hide nested partitions)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4718 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f096bc37 14-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Now sets the block size using the disk_environment information, and doesn't
just copy the partition block size anymore.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4680 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5c80ce8d 03-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Minor style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4473 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7604ff42 03-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

removed unused headers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4469 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ea9b59c9 02-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Made the amiga_rdb module ready for the boot loader.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4466 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2a0f6a3 01-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Moved the checksum validation for child partitions from amiga_rdb_scan_partition()
to get_next_partition().
If a wannabe partition fails its checksum test, all partitions that might come
later are now skipped. Added a ToDo item for what would be a nicer dealing with
such errors.
get_next_partition() and search_rdb() are now static.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4444 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 37dae1af 01-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Moved the checksum validation into a templatized function; the checksum
is now tested for partition_blocks as well.
Makes use of the new endian-aware structure methods.
If a partition is out of bounds (starts or reaches beyond the available
disk space), it won't be registered anymore - not sure if that's sooo
desirable, though.
Removed some unneeded debug output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4443 a95241bf-73f2-0310-859d-f6bbb57e9c96


# da1a45d3 01-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Made the module name compatible with the userland module loader - it requires
the file path to be part of the module name (that's not the case for BeOS, is it?).
Also added some more debug output, and now only allocate a new rigid_disk_block
if we are going to need it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4441 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91b48298 01-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Initial Amiga RDB read-only support. Code itself is tested, but not yet in
this "shell" (the new DiskDeviceManager module API).
Hope for the best :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4440 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bdcd7fcadc390466fb110a55e0932bedc1232b14 30-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Remove kernel/disk_device_manager from Jamfiles (the add-ons now need to
specify the path).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34377 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d6778355eea7f86c9418dec7572f12804b0150ff 30-Sep-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* <DiskDeviceTypes.h>: Removed kPartitionTypeIntel{Primary,Logical} constants.
* Added new header headers/private/system/disk_device_types.h, which defines
the <DiskDeviceTypes.h> constants as macros and which can be used where the
constants cannot be used. The constants are defined using the macros, so now
there's only one place where the string literals should be specified.
* Use the macros in the partitioning systems. I was too lazy to also adjust the
file systems -- most of them seem to hard-code the string literal yet.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33386 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1cc5e46925a7e64708d7565fe2c1ac3f448c9d58 08-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added offset and size parameters to create_child_partition() and
KPartition::CreateChild(). CreateChild() calls AddChild(), which publishes
the new partition, though at that point offset and size were not set, so that
the published devices would not be usable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31463 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1da9f5cea5ea4d32c539a01cd94a7b605e941beb 10-May-2008 Axel Dörfler <axeld@pinc-software.de>

* Added BDiskSystem::ShortName() and everything needed to get it there.
* Added BDiskDeviceRoster::GetDiskSystem() method, that can get a disk system
by short/pretty/module name - since they should all be unique, I put them
in a single namespace, please complain if you don't like that :-)
* Cleaned up DiskSystem.h and DiskDeviceRoster.h according to the updated
header guidelines.
* Renamed ntfs pretty name from "ntfs File System" to "Windows NT File System".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25414 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1fac18e1bbeab965f29873811b766ee3de2ebe8f 25-Jun-2004 Axel Dörfler <axeld@pinc-software.de>

This fixes the intel/apple/amiga partitioning modules.
String references, const or not, require the static object to be initialized
by a constructor; it will be put into the BSS region.
Now, kernel modules are not linked against crtbegin.o, and the kernel does
not call any init functions on the module.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8166 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 070bba8608738b445f53100761dfef5dfe729eb9 16-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

The partition-is-big-enough-for-child test did not work correctly; the
partition offset doesn't belong there (caused it to hide nested partitions)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4718 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f096bc378db55f0694c292095ced86e5627a742b 14-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Now sets the block size using the disk_environment information, and doesn't
just copy the partition block size anymore.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4680 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5c80ce8dfa447dbb610dee5522cb9b32eca024b5 03-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Minor style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4473 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7604ff4246f24e91f742d1175f548421fb31a821 03-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

removed unused headers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4469 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ea9b59c91517a61eaa3b93966c18edbb54abe7b2 02-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Made the amiga_rdb module ready for the boot loader.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4466 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2a0f6a3ddb45203855f84a27425e3e7435dcbe5 01-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Moved the checksum validation for child partitions from amiga_rdb_scan_partition()
to get_next_partition().
If a wannabe partition fails its checksum test, all partitions that might come
later are now skipped. Added a ToDo item for what would be a nicer dealing with
such errors.
get_next_partition() and search_rdb() are now static.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4444 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 37dae1afce16d944b1fccd9ca9dc5e8438343aab 01-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Moved the checksum validation into a templatized function; the checksum
is now tested for partition_blocks as well.
Makes use of the new endian-aware structure methods.
If a partition is out of bounds (starts or reaches beyond the available
disk space), it won't be registered anymore - not sure if that's sooo
desirable, though.
Removed some unneeded debug output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4443 a95241bf-73f2-0310-859d-f6bbb57e9c96


# da1a45d3c0b4677ed358b2aa29dc5ad4f1ee4f6b 01-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Made the module name compatible with the userland module loader - it requires
the file path to be part of the module name (that's not the case for BeOS, is it?).
Also added some more debug output, and now only allocate a new rigid_disk_block
if we are going to need it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4441 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91b482987276c2d880d320a3bbc1087291735253 01-Sep-2003 Axel Dörfler <axeld@pinc-software.de>

Initial Amiga RDB read-only support. Code itself is tested, but not yet in
this "shell" (the new DiskDeviceManager module API).
Hope for the best :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4440 a95241bf-73f2-0310-859d-f6bbb57e9c96