Searched hist:bc4f78089ec1217674a737140a288539cb4a42d3 (Results 1 – 1 of 1) sorted by relevance
/haiku/src/tests/kits/storage/virtualdrive/ |
H A D | virtualdrive.cpp | bc4f78089ec1217674a737140a288539cb4a42d3 Sun Nov 23 22:12:38 UTC 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
|