From 14fa3c6b0163710db7993c0a28992aaa83d94209 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 18 Jul 2003 18:46:17 +0000 Subject: [PATCH] Also prints the disk systems' capabilities now. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4011 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../storage/disk_device/DiskDeviceTest.cpp | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/tests/kits/storage/disk_device/DiskDeviceTest.cpp b/src/tests/kits/storage/disk_device/DiskDeviceTest.cpp index 58854239c8..ed0b9b253c 100644 --- a/src/tests/kits/storage/disk_device/DiskDeviceTest.cpp +++ b/src/tests/kits/storage/disk_device/DiskDeviceTest.cpp @@ -524,6 +524,39 @@ main() printf(" pretty name: `%s'\n", diskSystem.PrettyName()); printf(" file system: %d (!%d)\n", diskSystem.IsFileSystem(), diskSystem.IsPartitioningSystem()); + // flags + printf(" flags:\n"); + bool mounted = false; + bool supports = diskSystem.SupportsDefragmenting(&mounted); + printf(" defragmenting: %d (%d)\n", supports, mounted); + supports = diskSystem.SupportsRepairing(true, &mounted); + printf(" checking: %d (%d)\n", supports, mounted); + supports = diskSystem.SupportsRepairing(false, &mounted); + printf(" repairing: %d (%d)\n", supports, mounted); + supports = diskSystem.SupportsResizing(&mounted); + printf(" resizing: %d (%d)\n", supports, mounted); + supports = diskSystem.SupportsResizingChild(); + printf(" resizing child: %d\n", supports); + supports = diskSystem.SupportsMoving(&mounted); + printf(" moving: %d (%d)\n", supports, mounted); + supports = diskSystem.SupportsMovingChild(); + printf(" moving child: %d\n", supports); + supports = diskSystem.SupportsSettingName(); + printf(" setting name: %d\n", supports); + supports = diskSystem.SupportsSettingContentName(&mounted); + printf(" setting content name: %d (%d)\n", supports, mounted); + supports = diskSystem.SupportsSettingType(); + printf(" setting type: %d\n", supports); + supports = diskSystem.SupportsSettingParameters(); + printf(" setting params: %d\n", supports); + supports = diskSystem.SupportsSettingContentParameters(&mounted); + printf(" setting content params: %d (%d)\n", supports, mounted); + supports = diskSystem.SupportsCreatingChild(); + printf(" creating child: %d\n", supports); + supports = diskSystem.SupportsDeletingChild(); + printf(" deleting child: %d\n", supports); + supports = diskSystem.SupportsInitializing(); + printf(" initializing: %d\n", supports); } // get the file device BDiskDevice device;