History log of /haiku/src/tests/kits/storage/virtualdrive/virtualdrive.cpp
Revision Date Author Comments
# 2ca13760 20-Aug-2021 Coldfirex <sakison@gmail.com>

Mass updating of OpenBeOS text to Haiku

No functional code altered.

https://dev.haiku-os.org/ticket/17197

Change-Id: I75cc74f6be0ad968fd77c31fbe5b0f650a6fe9e0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4364
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# b6f76ebe 09-Feb-2017 Augustin Cavalier <waddlesplash@gmail.com>

s/OpenBeOS License/MIT License/ universally, as they're the same thing.

Fixes #8681.


# b4f58628 25-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

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


# 8545b8bd 23-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

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


# bc4f7808 23-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

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


# 7a424c39 24-Jun-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

* 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


# b4f586280a6bfaf8c88b691731e9932047cf9071 25-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

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


# 8545b8bd8dbc419a86c0676a75fa0abc15f2ca27 23-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

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


# bc4f78089ec1217674a737140a288539cb4a42d3 23-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

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


# 7a424c39236fe66c883c2a913f0d54f86c1d4f29 24-Jun-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

* 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