Commit Graph

102 Commits

Author SHA1 Message Date
Ingo Weinhold
5abde301c1 Changed the behavior of Contains(const char*, int32): It does not longer
return true, if the directory is not initialized, or if the directory
does not contain the entry, but the given path is absolute. This change
makes it less compatible with R5, but more consistent with the BEntry*
version and undoubtfully more compatible with common sense.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-03 16:27:39 +00:00
Ingo Weinhold
8c470cd758 Made use of the new parameter of *SymLink and adjusted dependencies where
necessary.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-02 22:05:41 +00:00
Axel Dörfler
b4f586280a Work-around for a bug in BeOS concerning the cache - it's not a complete cure, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-25 18:32:41 +00:00
Axel Dörfler
8545b8bd8d Changed the TRACE() macro to the usual (compatible) form.
Disabled trace output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:23:42 +00:00
Axel Dörfler
34626c6331 Added new options "--halt" and "--info". The former will temporarily halt
a device, the latter returns info about a device (i.e. which file it points
to).
Updated for changes in the underlying driver.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:16:17 +00:00
Axel Dörfler
bc4f78089e Rearranged source code a bit (clear distinction between device and drive API).
Added support for halting and resuming a device; the driver will close the underlying
file as long as the device is halted, so that other applications can access the file
(files set to uncached cannot be opened anymore). A device is resumed when you install
it again - note that the device might have been closed in the mean time, so it's
not guaranteed to return the same device.
Now returns a valid icon.
Removed unnecessary comments (this is no driver writers tutorial).
VIRTUAL_DRIVE_GET_INFO now also indicates if the device is halted or not.
Made the ioctl() calls more save by adding some sanity checks (magic value and
structure size).
Minor style changes, renamed device_info.opencount to open_count, added the "s"
suffix to static global variables (virtualdrive_name -> sVirtualDriveName, ...).
Fixed a possible bug: the file is now set to uncached after it has been resized;
it might not work the other way around.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:12:38 +00:00
Axel Dörfler
8a6d6e07f0 A simple blue cabinet icon for the virtual devices.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:05:36 +00:00
Axel Dörfler
9cbc2ce719 Added license information.
Added "play save" fields for the ioctl() parameter structure.
Added indicator if the device has been halted.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:04:38 +00:00
Axel Dörfler
a5589a93b1 Fixed compilation on Dano.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-13 02:45:24 +00:00
Ingo Weinhold
3d2fa2ae20 Wait until jobs are done after committing the changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-28 22:07:57 +00:00
Ingo Weinhold
5f6d915707 Commit the partition modifications (uninitialize, resize). Lo and behold, the correct jobs are created and executed. They just need to be implemented completely. :-P
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-22 21:51:12 +00:00
Ingo Weinhold
555b81adfe Adjusted the test according to the new BPartition::Resize() semantics.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 21:31:01 +00:00
Ingo Weinhold
05ab7dec5e Now prints out information on scanning jobs and waits for them to finish.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 17:54:20 +00:00
Ingo Weinhold
d50af9662a Now resizes a (shadow) partition and cancels the modification.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 00:21:14 +00:00
Ingo Weinhold
4c4722dd9e Added the shared private headers again, since BObjectList is used in the API now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-19 20:39:50 +00:00
Ingo Weinhold
14fa3c6b01 Also prints the disk systems' capabilities now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-18 18:46:17 +00:00
Ingo Weinhold
7fcdfb5fb8 Added registration of a file device and invocations of {Prepare,Cancel}Modifications(). Looks good so far.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:23:47 +00:00
Ingo Weinhold
dfe606b688 Some changes due to changes in the API. Added disk system iteration.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:33:57 +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
fb28706b69 Re-enabled Disk Device API test. Well, almost the complete old code is commented out. ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 23:14:00 +00:00
Ingo Weinhold
7a424c3923 * Renamed virtualdrive.c to .cpp to be able to use the saner syntax.
* Improved the driver: It now publishes a control device and ten `data'
  devices. Via an ioctl one can assign an arbitrary file to a free data
  device. (The devices are published in /dev/misc instead of /dev/disk to
  prevent them from being scanned by the Tracker and DriveSetup.)
* Added a small command line tool to (un)register files that way.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 23:45:03 +00:00
Ingo Weinhold
ae76aede51 Added TestApp.{cpp,h}, since tests using the BTestApp class defined in
libcppunit.so don't work anymore with it, since it uses the BApplication
code of libbe.so. Several tests still fail now, but none crashes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-07 17:32:37 +00:00
Ingo Weinhold
a3b4d9e9de Removed the tests for version 1.x of the DiskDevice API from the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-06 15:48:40 +00:00
Ingo Weinhold
2d350d3dba The hack needed to be able to communicate with our registrar though not linking against libopenbeos has been moved to BDiskDeviceRoster. Link against libdiskdevice now, instead of compiling the sources in.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-24 00:47:25 +00:00
Ingo Weinhold
fdb95f3aeb Added the new classes needed for the DiskDevice API.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-22 23:56:52 +00:00
Ingo Weinhold
73574809d0 Added BDiskDeviceList and test it.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-20 00:26:00 +00:00
Ingo Weinhold
295fcc8865 Removed some debug info. Changes due to the removal of the extended_partition_info::partition_code field.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-18 21:33:23 +00:00
Ingo Weinhold
45a89df921 BDiskDevice::Eject() and GetName() are used now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-16 18:09:26 +00:00
Ingo Weinhold
875f291891 Recognizes all notification messages now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-14 23:16:34 +00:00
Ingo Weinhold
77d6501f22 Added notification tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-10 00:24:51 +00:00
Ingo Weinhold
851a7b6fe7 Added small test program for the Disk Device API. Doesn't do much for now -- only dumps the current list of disk devices. The iteration code seems to work. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-08 23:40:11 +00:00
beveloper
e3cb015484 modified per Ingo's request
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-16 17:01:01 +00:00
Ingo Weinhold
be4eaeda92 Added virtualdrive driver. Original code by Marcus.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-09 12:56:56 +00:00
Ingo Weinhold
d0d716f9c8 Fixed BVolume and added BVolumeRoster tests. Consider this to be complete now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-09 12:54:47 +00:00
Ingo Weinhold
9b9ca68883 Added virtualdriver to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-09 12:53:43 +00:00
Ingo Weinhold
38ce9b085e Added boolean argument to {create,delete}Volume() specifying whether or not the mount point shall be made/deleted.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-09 12:52:58 +00:00
Ingo Weinhold
467cfff600 Added BVolume tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 17:07:33 +00:00
Ingo Weinhold
f0261ccddf `resources' subdir containing the test data for BResources and BResourceStrings is now also linked to R5 test dir.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 21:00:28 +00:00
Ingo Weinhold
f788b9354b Reverted to previous version. The tests do compile and link again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 20:23:51 +00:00
Tyler Dauwalder
8e07bd3faf #ifdef'd out R5 versions of tests that tried to use functions not found
in R5 version of the Storage Kit.

This appears to fix the BSymLink linking errors, at least as a temporary
fix.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-27 02:40:06 +00:00
Tyler Dauwalder
e74030b843 + Added meta mime file test to sniffing test
+ Added commented out update_meta_mime(NULL) and
  create_app_meta_mime(NULL) calls for the adventurous
  tester.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-01 07:38:53 +00:00
Tyler Dauwalder
682cd7e59c Made some minor adjustments to help figuring out how mime update
calls work (still in progress).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 07:19:00 +00:00
Tyler Dauwalder
789d7cbe2d Fixed parse(NULL,...) test descrepancy
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 09:36:43 +00:00
Tyler Dauwalder
1bd963b6c2 + Added file-extension based mime type guessing
+ Added sniffer rule based mime type guessing
+ Added get_device_icon()
+ Added complete (synchronous, asynchronous; recursive,
  non-recursive; forcing, non-forcing; you name it we got it :-)
  update_mime_info() implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-24 05:36:03 +00:00
Ingo Weinhold
344a28b86f Added debug output to understand why the parser test fails.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:17:41 +00:00
Ingo Weinhold
ce61895f3e We now support MIME strings of maximal length B_MIME_TYPE_LENGTH including the null only. Adjusted the tests accordingly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-23 21:08:51 +00:00
Tyler Dauwalder
e3a2f2069e + Added SetSupportedTypes() test
+ Modified BMimeType::SetSupportedTypes functionality so it keeps track of
stranded types (i.e. previously supported types that have not had the now
unsupporting app signature removed from their supporting apps list yet due
to a false fullSync parameter) over consecutive SetSupportedTypes(...,
false) calls and updates all appropriate stranded types on the next
SetSupportedTypes(..., true) call.
+ Added fullSync parameter to BMimeType::DeleteSupportedTypes
+ Made BMimeType::Delete() do a DeleteSupportedTypes(..., true) call to
properly update the supporting apps lists when a mime type is deleted.
+ Added initial BMimeType::Get/SetSnifferRule
+ Updated BMimeType::CheckSnifferRule() to return B_BAD_VALUE when passed
a NULL rule string.
+ Brought CheckSnifferRule() tests up to date
+ Added lots of Mime::Database doxygen
+ Added any missing mime monitor notifications in Mime::Database
+ Possibly made some other changes as well... :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-09 08:12:03 +00:00
Ingo Weinhold
5097cb0445 Documented usage of BBitmap::SetBits().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 16:59:24 +00:00
Ingo Weinhold
77bb876f71 libstorage.so is gone.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 01:14:11 +00:00