Commit Graph

125 Commits

Author SHA1 Message Date
Ingo Weinhold db10640de9 Got rid of the Storage Kit's kernel abstraction layer, which was
unfortunately quite slow and made some things more complicated than they
needed to be.
Implemented a few missing things (e.g. BSymLink and node locking).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-28 20:14:46 +00:00
Ingo Weinhold 233e6dadef The whole Storage Kit now uses syscalls directly. No further need of this abstraction layer.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-28 20:08:05 +00:00
Axel Dörfler 51403af8f9 No longer needed; LibBeAdapter now only contains syscalls, and will either
be removed some day, or extended to map all syscalls from Haiku to R5.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-02 18:59:49 +00:00
Axel Dörfler 5c6dbc9b5e Removed no longer needed adapter functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-26 14:43:35 +00:00
Axel Dörfler 86d5deed7b Some additional standard MIME types in the Be world.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-10 13:40:35 +00:00
shatty 522f702aaf header for simple AddOnMonitor BLooper subclass to run an AddOnMonitorHandler
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-01 05:50:56 +00:00
shatty afd1e2002e basic interface
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-01 05:50:00 +00:00
shatty e396ab580d untested version
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 00:24:03 +00:00
Tyler Dauwalder ce80ee567b - Renamed CDDA to AudioSession
- Added DataSession


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 08:38:42 +00:00
Tyler Dauwalder a03a04e027 - Added/moved ddm string-length and buffer-size constants to DiskDeviceDefs.h
- Converted all uses of B_{FILE,OS}_NAME_LENGTH in ddm_userland_interface.cpp
  to appropriate ddm constants.
- Made module names B_PATH_NAME_LENGTH long.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 00:13:11 +00:00
Ingo Weinhold 64d5c0bf73 Added enum value for our new uninitialization job.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 21:27:20 +00:00
Ingo Weinhold 3f54a014e5 Removed the resizeContents/force parameters from [Validate]Resize()/[Validate]Move() as discussed in July (grrr, I was lazy).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 21:23:33 +00:00
Ingo Weinhold 4c4e5505b0 Added BPartition::Uninitialize(). No CanUninitialize(), but
uninitialization does not affect the physical partition, anyway. The
system simply marks the partition as uninitialized for the current
session -- after rebooting it re-appears unchanged.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 19:13:29 +00:00
shadow303 17e6de7a37 gcc 3 fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-04 00:46:53 +00:00
Ingo Weinhold eceac61bcb Implemented disk device job iteration.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 17:53:11 +00:00
Ingo Weinhold 9e5ec2a534 Implemented BDiskDeviceJob. Should be complete.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 17:52:39 +00:00
Ingo Weinhold 047c90100d Reordered job types and added missing ones.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 17:52:03 +00:00
Ingo Weinhold fc45522e03 Added ContentSize(). Added default parameters for CanMove() and CanResize().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 00:35:05 +00:00
Ingo Weinhold 8954437d0a Moved definitions of general interest to DiskDeviceDefs.h. Minor changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 00:33:32 +00:00
Ingo Weinhold 4c7c2ca6ab Added changed flag for partition content size and job related definitions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 00:31:37 +00:00
Ingo Weinhold a8f1d2a859 Added some more partition change flags and a partition state for uninitialized partitions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-24 22:59:42 +00:00
Ingo Weinhold 426b44c60b Implemented disk device updating. Some changes due to syscall changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 00:19:23 +00:00
Ingo Weinhold e627d686c3 Added definition of flags for partition changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 00:17:47 +00:00
Ingo Weinhold 247a3aae82 Small changes due to modified syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 00:12:54 +00:00
Ingo Weinhold d61adbe244 CanMove() returns a list of partitions to be unmounted for moving, now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-21 14:17:33 +00:00
Ingo Weinhold fb82e723f2 Implemented BPartitionableSpace.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-20 17:21:06 +00:00
Ingo Weinhold de8cdceda5 Implemented all Can*() and Validate*() methods. Signature changes to the methods for resizing and moving.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-19 20:38:50 +00:00
Ingo Weinhold 415002509d * Removed the Validate*() methods. They are less useful than their
BPartition counterparts.
* Removed the BPartition* argument from the Supports*() methods. They
  now return only general capability information. The BPartition::Can*()
  methods would be used to learn whether a certain operation is possible
  with the partition.
* Added some missing Supports*() methods.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-18 18:45:29 +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 e1570b66f8 Added mostly empty implementations for the missing methods; implemented some of them. Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 00:06:58 +00:00
Ingo Weinhold 38844d14f8 Added ValidateInitialize() and a _SetTo(disk_system_id). Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 00:05:31 +00:00
Ingo Weinhold a058daad3a Implemented the remaining methods, some aesthetical changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-16 21:02:14 +00:00
Ingo Weinhold 910d993921 Implemented the BDiskSystem::Supports*() methods. Added required private helper methods to BPartition.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 21:44:23 +00:00
Ingo Weinhold dd3be08988 * Removed VisitEach{Initializable,Partitionable}Partition() -- they are
too specific for a general API.
* Implemented {Register,Unregister}FileDevice().
* Implemented Get{Device,Partition}WithID() and
  Get{Device,Partition}ForPath().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:20:34 +00:00
Ingo Weinhold 442e574d88 Added FindDescendant() and _IsShadow().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:16:29 +00:00
Ingo Weinhold 92b9e33326 * Added SetTo(partition_id), InitCheck().
* Added more parameters to _SetTo().
* Fixed problem in Unset() -- the BPartition version wasn't called.
* Implemented {Prepare,Cancel}Modifications() and IsModified(). The
  latter doesn't work yet, since the syscall implementation is still
  empty yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:15:17 +00:00
Ingo Weinhold e6fb8288f7 Added missing methods in the header and a partial implementation in the source file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:32:52 +00:00
Ingo Weinhold bf5ffb0203 Added missing manipulation methods (though no implementation). Some cleanup. Renamed UniqueID() to ID().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:30:30 +00:00
Ingo Weinhold 8bb7454636 Implemented disk system iteration.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:29:21 +00:00
Ingo Weinhold 0cb59d9c8c Added IsReadOnlyMedia(), IsWriteOnceMedia(), and renamed IsRemovable() to IsRemovableMedia() for consistency.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:28:32 +00:00
Ingo Weinhold 671a745561 Modified the visitor implementation a bit. The Visit() with the BPartition* argument now also gets the level of the partition in the hierarchy.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 18:26:15 +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 5c7270efd7 Beginning of Disk Device API:
* Made all headers parsable. Also some smaller changes.
* Added empty source files for new classes.
* Changed obsolete implementations of existing classes, so that we
  now have basic functionality for BDiskDevice[Roster] and BPartition.
  Iterating through disk devices works and the data we get doesn't look
  too bad for the beginning.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 23:11:10 +00:00
Ingo Weinhold 6bd5253e85 This is the header for global definitions shared by the Disk Device API and the disk device manager.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 22:51:42 +00:00
Ingo Weinhold 031858645f Some changes regarding partition creation and initialization.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:29:29 +00:00
Ingo Weinhold 242a2cbef2 Define the values in the source file rather than in the header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 22:55:21 +00:00
Ingo Weinhold d2f2920f84 ShortName() + Name() -> Name() + PrettyName(). More conformant to the rest of the Be API (media, networking).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:45:49 +00:00
Ingo Weinhold 30b4d57df4 Added TODO.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:43:52 +00:00
Ingo Weinhold bef8916ea6 * Used partition_id, disk_job_id and disk_system_id instead of uint32.
* Replaced uint32 for indices and counts with int32.
* Some additions to BDiskDeviceRoster and BDiskDeviceJob.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-09 23:02:16 +00:00