33 Commits

Author SHA1 Message Date
Tyler Dauwalder
303ff4017c Added remaining functionality. I believe everything works as advertised
now, but I haven't had time to test it very thoroughly, so your milage may
vary.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 08:42:43 +00:00
Tyler Dauwalder
ad4849879d - Added Session class
- Updated Disc::GetSession() to now return a new Session object.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 08:39:54 +00:00
Tyler Dauwalder
432e748fb5 Added session ddm module to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 00:56:11 +00:00
Tyler Dauwalder
8ba0b6e187 Initial checkin. Beginnings of port of disk_scanner session module to
disk device manager. Actual session scanning code appears to work
a-okay, but it isn't hooked up to the partition scanning entry function
yet, so sessions are not yet actually enumerated when the ddm test
program is run.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 00:54:59 +00:00
Axel Dörfler
8fd45ead7a Some additional debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-06 03:49:06 +00:00
Axel Dörfler
070bba8608 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
2003-09-17 01:02:26 +00:00
Axel Dörfler
f096bc378d 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
2003-09-14 16:51:15 +00:00
Axel Dörfler
32270ffe96 Added some missing consts.
Added BlockSize() method for the disk_environment.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 16:50:21 +00:00
Axel Dörfler
15832d7b04 Removed a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 12:30:25 +00:00
Axel Dörfler
b132797ec3 Made the module working in the boot loader.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 02:41:05 +00:00
Axel Dörfler
5c80ce8dfa Minor style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 16:30:05 +00:00
Axel Dörfler
0503a73f11 Implemented a simple Apple style partitioning scheme add-on.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 16:28:47 +00:00
Axel Dörfler
feff755691 Fixed the problem shatty reported - I just forgot to check out the latest
code, since I made the problem causing changes on another machine...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 14:56:45 +00:00
Axel Dörfler
7604ff4246 removed unused headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 14:56:01 +00:00
Axel Dörfler
ea9b59c915 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
2003-09-03 02:45:13 +00:00
Axel Dörfler
d2a0f6a3dd 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
2003-09-02 04:04:16 +00:00
Axel Dörfler
37dae1afce 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
2003-09-02 03:56:22 +00:00
Axel Dörfler
9f34c3c766 Added some more endian-aware getter methods for fields actually used.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-02 03:52:53 +00:00
Axel Dörfler
da1a45d3c0 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
2003-09-02 03:11:30 +00:00
Axel Dörfler
91b4829872 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
2003-09-02 00:59:45 +00:00
Ingo Weinhold
738e4a700b Support for the added partition content size attribute.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 00:21:21 +00:00
Ingo Weinhold
ee1ebe375c * Added ShadowPartitionChanged() to KDiskSystem and respective hooks
to the module interfaces. So the disk system will be informed, when a
  shadow partition has changed and it is allowed to do necessary
  adjustions (e.g. adjusting the cookie, the parameters, or on
  partitioning system initialization even creating special child
  partitions (apple partitioning system)).
* Added `int32 *index' parameter to ValidateCreateChild(). So the
  partitioning system can report at which index the new child shall be
  inserted.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-24 22:53:23 +00:00
Ingo Weinhold
d3774a9b93 The content_type field in partition_data is now set by the system. Implemented querying hooks for resizing a child partition of the partition map.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 00:16:13 +00:00
Ingo Weinhold
3ee6c178d5 Some fixes of/changes to the API. Shortened names where possible.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-20 17:17:00 +00:00
Ingo Weinhold
708a31badf Added SupportsSetting[Content]Parameters() to the KDiskSystem interface and respective functions to the module interface. Some re-ordering of methods/functions for aesthetical reasons. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-19 20:29:58 +00:00
Ingo Weinhold
18b90323d9 Added flags for disk systems.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-18 18:41:21 +00:00
Ingo Weinhold
1f3f1294a8 Added a IsSubSystemFor() method to the KDiskSystem interface and respective calls for the module interfaces.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-16 21:00:01 +00:00
Ingo Weinhold
0fbb290f51 Some changes to/fixes of the KDiskSystem interface and the disk system module interface.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 21:41:32 +00:00
Ingo Weinhold
c54d68a84e Should have waited a few more minutes... Renamed the methods {B,K}Partition::Is{Mountable,Partitionable}() to Contains{File,Partitioning}System(). Similar change for the respective flags (B_PARTITION_{MOUNTABLE,PARTITIONABLE}).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 17:38:45 +00:00
Ingo Weinhold
55bf93d80d Fixed handling of partition and device flags and statuses.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 17:25:32 +00:00
Ingo Weinhold
38cf1a986c Small fixes. Make use of the types of types defined in <DiskDeviceTypes.h>.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:27:00 +00:00
Ingo Weinhold
e5e5ddc13a ep_scan_partition(): Removed erroneous check for cookie (it's unused here), and fixed child index counting.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-14 00:12:12 +00:00
Ingo Weinhold
852d12ef4c Ported the intel partitioning system module to the new interface
(disk device manager) and moved it to a nicer place.
First tests look good, though my hard disk structure doesn't even
have extended partitions. Going to install Linux now...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 22:01:51 +00:00