Changeset 25414
- Timestamp:
- 05/10/08 06:44:00 (6 days ago)
- Files:
-
- haiku/trunk/headers/os/drivers/fs_interface.h (modified) (1 diff)
- haiku/trunk/headers/private/fs_shell/fssh_fs_interface.h (modified) (1 diff)
- haiku/trunk/headers/private/kernel/disk_device_manager/ddm_modules.h (modified) (2 diffs)
- haiku/trunk/headers/private/kernel/disk_device_manager/ddm_userland_interface.h (modified) (2 diffs)
- haiku/trunk/headers/private/kernel/disk_device_manager/KDiskSystem.h (modified) (5 diffs)
- haiku/trunk/headers/private/storage/DiskDeviceRoster.h (modified) (3 diffs)
- haiku/trunk/headers/private/storage/DiskSystem.h (modified) (2 diffs)
- haiku/trunk/src/add-ons/kernel/file_systems/bfs/kernel_interface.cpp (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/file_systems/fat/dosfs.c (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/file_systems/googlefs/googlefs.c (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/file_systems/iso9660/kernel_interface.cpp (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/file_systems/ntfs/kernel_interface.c (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/file_systems/ramfs/kernel_interface.cpp (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/file_systems/reiserfs/kernel_interface.cpp (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/partitioning_systems/amiga/amiga_rdb.cpp (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/partitioning_systems/apple/apple.cpp (modified) (1 diff)
- haiku/trunk/src/add-ons/kernel/partitioning_systems/atari/atari.cpp (modified) (3 diffs)
- haiku/trunk/src/add-ons/kernel/partitioning_systems/efi/efi_gpt.cpp (modified) (2 diffs)
- haiku/trunk/src/add-ons/kernel/partitioning_systems/intel/intel.cpp (modified) (3 diffs)
- haiku/trunk/src/add-ons/kernel/partitioning_systems/session/session.cpp (modified) (1 diff)
- haiku/trunk/src/kits/storage/disk_device/DiskDeviceRoster.cpp (modified) (6 diffs)
- haiku/trunk/src/kits/storage/disk_device/DiskSystem.cpp (modified) (9 diffs)
- haiku/trunk/src/system/kernel/disk_device_manager/KDiskSystem.cpp (modified) (6 diffs)
- haiku/trunk/src/system/kernel/disk_device_manager/KFileSystem.cpp (modified) (1 diff)
- haiku/trunk/src/system/kernel/disk_device_manager/KPartitioningSystem.cpp (modified) (1 diff)
- haiku/trunk/src/system/kernel/fs/devfs.cpp (modified) (1 diff)
- haiku/trunk/src/system/kernel/fs/rootfs.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
haiku/trunk/headers/os/drivers/fs_interface.h
r25268 r25414 233 233 typedef struct file_system_module_info { 234 234 struct module_info info; 235 const char* short_name; 235 236 const char* pretty_name; 236 237 uint32 flags; // DDM flags haiku/trunk/headers/private/fs_shell/fssh_fs_interface.h
r25268 r25414 267 267 typedef struct fssh_file_system_module_info { 268 268 struct fssh_module_info info; 269 const char* short_name; 269 270 const char* pretty_name; 270 271 uint32_t flags; // DDM flags haiku/trunk/headers/private/kernel/disk_device_manager/ddm_modules.h
r22475 r25414 1 / / ddm_modules.h2 // 3 // Interface to be implemented by partitioning modules.4 1 /* 2 * Copyright 2003-2008, Haiku Inc. 3 * Distributed under the terms of the MIT License. 4 */ 5 5 #ifndef _K_DISK_DEVICE_MODULES_H 6 6 #define _K_DISK_DEVICE_MODULES_H 7 8 //! Interface to be implemented by partitioning modules. 7 9 8 10 #include <disk_device_manager.h> … … 13 15 typedef struct partition_module_info { 14 16 module_info module; 17 const char* short_name; 15 18 const char* pretty_name; 16 19 uint32 flags; haiku/trunk/headers/private/kernel/disk_device_manager/ddm_userland_interface.h
r22800 r25414 1 // ddm_userland_interface.h 2 1 /* 2 * Copyright 2003-2008, Haiku Inc. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Ingo Weinhold, bonefish@users.sf.net 7 */ 3 8 #ifndef _DISK_DEVICE_MANAGER_USERLAND_INTERFACE_H 4 9 #define _DISK_DEVICE_MANAGER_USERLAND_INTERFACE_H … … 50 55 disk_system_id id; 51 56 char name[B_FILE_NAME_LENGTH]; // better B_PATH_NAME_LENGTH? 57 char short_name[B_OS_NAME_LENGTH]; 52 58 char pretty_name[B_OS_NAME_LENGTH]; 53 59 uint32 flags; haiku/trunk/headers/private/kernel/disk_device_manager/KDiskSystem.h
r22832 r25414 1 1 /* 2 * Copyright 2003-200 7, Haiku, Inc. All Rights Reserved.2 * Copyright 2003-2008, Haiku, Inc. All Rights Reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 * … … 8 8 #ifndef _K_DISK_DEVICE_SYSTEM_H 9 9 #define _K_DISK_DEVICE_SYSTEM_H 10 10 11 11 12 #include "disk_device_manager.h" … … 34 35 35 36 const char* Name() const; 36 const char* PrettyName(); 37 const char* ShortName() const; 38 const char* PrettyName() const; 37 39 uint32 Flags() const; 38 40 … … 98 100 virtual void UnloadModule(); 99 101 102 status_t SetShortName(const char* name); 100 103 status_t SetPrettyName(const char* name); 101 104 void SetFlags(uint32 flags); … … 106 109 disk_system_id fID; 107 110 char* fName; 111 char* fShortName; 108 112 char* fPrettyName; 109 113 uint32 fFlags; haiku/trunk/headers/private/storage/DiskDeviceRoster.h
r22606 r25414 1 //---------------------------------------------------------------------- 2 // This software is part of the OpenBeOS distribution and is covered 3 // by the OpenBeOS license. 4 //--------------------------------------------------------------------- 5 1 /* 2 * Copyright 2003-2008, Haiku Inc. 3 * Distributed under the terms of the MIT License. 4 */ 6 5 #ifndef _DISK_DEVICE_ROSTER_H 7 6 #define _DISK_DEVICE_ROSTER_H … … 86 85 class BDiskDeviceRoster { 87 86 public: 88 BDiskDeviceRoster(); 89 ~BDiskDeviceRoster(); 90 91 status_t GetNextDevice(BDiskDevice *device); 92 status_t RewindDevices(); 93 94 status_t GetNextDiskSystem(BDiskSystem *system); 95 status_t RewindDiskSystems(); 87 BDiskDeviceRoster(); 88 ~BDiskDeviceRoster(); 96 89 97 partition_id RegisterFileDevice(const char *filename); 98 // publishes: /dev/disk/virtual/files/<disk device ID>/raw 99 status_t UnregisterFileDevice(const char *filename); 100 status_t UnregisterFileDevice(partition_id device); 90 status_t GetNextDevice(BDiskDevice* device); 91 status_t RewindDevices(); 101 92 102 bool VisitEachDevice(BDiskDeviceVisitor *visitor, 103 BDiskDevice *device = NULL); 104 bool VisitEachPartition(BDiskDeviceVisitor *visitor, 105 BDiskDevice *device = NULL, 106 BPartition **partition = NULL); 93 status_t GetNextDiskSystem(BDiskSystem* system); 94 status_t RewindDiskSystems(); 107 95 108 bool VisitEachMountedPartition(BDiskDeviceVisitor *visitor, 109 BDiskDevice *device = NULL, 110 BPartition **partition = NULL); 111 bool VisitEachMountablePartition(BDiskDeviceVisitor *visitor, 112 BDiskDevice *device = NULL, 113 BPartition **partition = NULL); 114 115 status_t GetDeviceWithID(partition_id id, BDiskDevice *device) const; 116 status_t GetPartitionWithID(partition_id id, BDiskDevice *device, 117 BPartition **partition) const; 96 status_t GetDiskSystem(BDiskSystem* system, const char* name); 118 97 119 status_t GetDeviceForPath(const char *filename, BDiskDevice *device); 120 status_t GetPartitionForPath(const char *filename, BDiskDevice *device, 121 BPartition **partition); 98 partition_id RegisterFileDevice(const char* filename); 99 // publishes: /dev/disk/virtual/files/<disk device ID>/raw 100 status_t UnregisterFileDevice(const char* filename); 101 status_t UnregisterFileDevice(partition_id device); 122 102 123 status_t StartWatching(BMessenger target, 124 uint32 eventMask = B_DEVICE_REQUEST_ALL); 125 status_t StopWatching(BMessenger target); 103 bool VisitEachDevice(BDiskDeviceVisitor* visitor, 104 BDiskDevice* device = NULL); 105 bool VisitEachPartition(BDiskDeviceVisitor* visitor, 106 BDiskDevice* device = NULL, 107 BPartition** _partition = NULL); 108 109 bool VisitEachMountedPartition( 110 BDiskDeviceVisitor* visitor, 111 BDiskDevice* device = NULL, 112 BPartition** _partition = NULL); 113 bool VisitEachMountablePartition( 114 BDiskDeviceVisitor* visitor, 115 BDiskDevice* device = NULL, 116 BPartition** _partition = NULL); 117 118 status_t GetDeviceWithID(partition_id id, 119 BDiskDevice* device) const; 120 status_t GetPartitionWithID(partition_id id, 121 BDiskDevice* device, 122 BPartition** _partition) const; 123 124 status_t GetDeviceForPath(const char* filename, 125 BDiskDevice* device); 126 status_t GetPartitionForPath(const char* filename, 127 BDiskDevice* device, BPartition** _partition); 128 129 status_t StartWatching(BMessenger target, 130 uint32 eventMask = B_DEVICE_REQUEST_ALL); 131 status_t StopWatching(BMessenger target); 126 132 127 133 private: … … 147 153 #endif // 0 148 154 private: 149 int32 fDeviceCookie;150 int32 fDiskSystemCookie;151 int32 fJobCookie;155 int32 fDeviceCookie; 156 int32 fDiskSystemCookie; 157 int32 fJobCookie; 152 158 // BDirectory *fPartitionAddOnDir; 153 159 // BDirectory *fFSAddOnDir; haiku/trunk/headers/private/storage/DiskSystem.h
r22592 r25414 1 //---------------------------------------------------------------------- 2 // This software is part of the OpenBeOS distribution and is covered 3 // by the OpenBeOS license. 4 //--------------------------------------------------------------------- 5 1 /* 2 * Copyright 2003-2008, Haiku Inc. 3 * Distributed under the terms of the MIT License. 4 */ 6 5 #ifndef _DISK_SYSTEM_H 7 6 #define _DISK_SYSTEM_H 8 7 8 9 9 #include <DiskDeviceDefs.h> 10 10 #include <String.h> 11 12 11 13 12 class BPartition; … … 18 17 class BDiskSystem { 19 18 public: 20 BDiskSystem();21 BDiskSystem(const BDiskSystem& other);22 ~BDiskSystem();19 BDiskSystem(); 20 BDiskSystem(const BDiskSystem& other); 21 ~BDiskSystem(); 23 22 24 status_tInitCheck() const;23 status_t InitCheck() const; 25 24 26 const char *Name() const; 27 const char *PrettyName() const; 25 const char* Name() const; 26 const char* ShortName() const; 27 const char* PrettyName() const; 28 28 29 bool SupportsDefragmenting(bool *whileMounted) const; 30 bool SupportsRepairing(bool checkOnly, bool *whileMounted) const; 31 bool SupportsResizing(bool *whileMounted) const; 32 bool SupportsResizingChild() const; 33 bool SupportsMoving(bool *whileMounted) const; 34 bool SupportsMovingChild() const; 35 bool SupportsName() const; 36 bool SupportsContentName() const; 37 bool SupportsSettingName() const; 38 bool SupportsSettingContentName(bool *whileMounted) const; 39 bool SupportsSettingType() const; 40 bool SupportsSettingParameters() const; 41 bool SupportsSettingContentParameters(bool *whileMounted) const; 42 bool SupportsCreatingChild() const; 43 bool SupportsDeletingChild() const; 44 bool SupportsInitializing() const; 29 bool SupportsDefragmenting(bool* whileMounted) const; 30 bool SupportsRepairing(bool checkOnly, 31 bool* whileMounted) const; 32 bool SupportsResizing(bool* whileMounted) const; 33 bool SupportsResizingChild() const; 34 bool SupportsMoving(bool* whileMounted) const; 35 bool SupportsMovingChild() const; 36 bool SupportsName() const; 37 bool SupportsContentName() const; 38 bool SupportsSettingName() const; 39 bool SupportsSettingContentName( 40 bool* whileMounted) const; 41 bool SupportsSettingType() const; 42 bool SupportsSettingParameters() const; 43 bool SupportsSettingContentParameters( 44 bool* whileMounted) const; 45 bool SupportsCreatingChild() const; 46 bool SupportsDeletingChild() const; 47 bool SupportsInitializing() const; 45 48 46 status_t GetTypeForContentType(const char *contentType,47 BString* type) const;49 status_t GetTypeForContentType(const char* contentType, 50 BString* type) const; 48 51 49 boolIsPartitioningSystem() const;50 boolIsFileSystem() const;52 bool IsPartitioningSystem() const; 53 bool IsFileSystem() const; 51 54 52 BDiskSystem&operator=(const BDiskSystem& other);55 BDiskSystem& operator=(const BDiskSystem& other); 53 56 54 57 private: 55 status_t_SetTo(disk_system_id id);56 status_t _SetTo(const user_disk_system_info *info);57 void_Unset();58 status_t _SetTo(disk_system_id id); 59 status_t _SetTo(const user_disk_system_info* info); 60 void _Unset(); 58 61 62 private: 59 63 friend class BDiskDeviceRoster; 60 64 friend class BPartition; 61 65 62 disk_system_id fID; 63 BString fName; 64 BString fPrettyName; 65 uint32 fFlags; 66 disk_system_id fID; 67 BString fName; 68 BString fShortName; 69 BString fPrettyName; 70 uint32 fFlags; 66 71 }; 67 72 haiku/trunk/src/add-ons/kernel/file_systems/bfs/kernel_interface.cpp
r25144 r25414 2289 2289 }, 2290 2290 2291 "Be File System", 2291 "bfs", // short_name 2292 "Be File System", // pretty_name 2292 2293 2293 2294 // DDM flags haiku/trunk/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp
r22886 r25414 2007 2007 }, 2008 2008 2009 "CDDA File System", 2009 "cdda", // short_name 2010 "CDDA File System", // pretty_name 2010 2011 0, // DDM flags 2011 2012 haiku/trunk/src/add-ons/kernel/file_systems/fat/dosfs.c
r24996 r25414 1314 1314 }, 1315 1315 1316 "FAT32 File System", 1316 "fat", // short_name 1317 "FAT32 File System", // pretty_name 1317 1318 0, // DDM flags 1318 1319 haiku/trunk/src/add-ons/kernel/file_systems/googlefs/googlefs.c
r22043 r25414 1620 1620 }, 1621 1621 1622 GOOGLEFS_PRETTY_NAME, 1622 "googlefs", // short_name 1623 GOOGLEFS_PRETTY_NAME, // pretty_name 1623 1624 0, // DDM flags 1624 1625 haiku/trunk/src/add-ons/kernel/file_systems/iso9660/kernel_interface.cpp
r24994 r25414 746 746 }, 747 747 748 "ISO9660 File System", 749 0, // DDM flags 748 "iso9660", // short_name 749 "ISO9660 File System", // pretty_name 750 0, // DDM flags 750 751 751 752 // scanning haiku/trunk/src/add-ons/kernel/file_systems/ntfs/kernel_interface.c
r22043 r25414 85 85 }, 86 86 87 "ntfs File System", 88 0, // DDM flags 87 "ntfs", // short_name 88 "Windows NT File System", // pretty_name 89 0, // DDM flags 89 90 90 91 // scanning haiku/trunk/src/add-ons/kernel/file_systems/ramfs/kernel_interface.cpp
r24553 r25414 2070 2070 }, 2071 2071 2072 "RAM File System", 2073 0, // DDM flags 2072 "ramfs", // short_name 2073 "RAM File System", // pretty_name 2074 0, // DDM flags 2074 2075 2075 2076 // scanning haiku/trunk/src/add-ons/kernel/file_systems/reiserfs/kernel_interface.cpp
r22043 r25414 650 650 }, 651 651 652 "Reiser File System", 653 0, // DDM flags 652 "reiserfs", // short_name 653 "Reiser File System", // pretty_name 654 0, // DDM flags 654 655 655 656 // scanning haiku/trunk/src/add-ons/kernel/partitioning_systems/amiga/amiga_rdb.cpp
r8166 r25414 219 219 amiga_rdb_std_ops 220 220 }, 221 "amiga", // short_name 221 222 AMIGA_PARTITION_NAME, // pretty_name 222 223 0, // flags haiku/trunk/src/add-ons/kernel/partitioning_systems/apple/apple.cpp
r8166 r25414 204 204 apple_std_ops 205 205 }, 206 "apple", // short_name 206 207 APPLE_PARTITION_NAME, // pretty_name 207 208 0, // flags haiku/trunk/src/add-ons/kernel/partitioning_systems/atari/atari.cpp
r22745 r25414 1 1 /* 2 ** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.3 ** Distributed under the terms of the HaikuLicense.4 */2 * Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 5 6 6 … … 223 223 atari_std_ops 224 224 }, 225 "atari", // short_name 225 226 ATARI_PARTITION_NAME, // pretty_name 226 227 0, // flags … … 241 242 }; 242 243 #endif 243 haiku/trunk/src/add-ons/kernel/partitioning_systems/efi/efi_gpt.cpp
r21574 r25414 1 1 /* 2 * Copyright 2007 , Axel Dörfler, axeld@pinc-software.de. All rights reserved.2 * Copyright 2007-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 */ … … 400 400 efi_gpt_std_ops 401 401 }, 402 "efi", // short_name 402 403 EFI_PARTITION_NAME, // pretty_name 403 404 0, // flags haiku/trunk/src/add-ons/kernel/partitioning_systems/intel/intel.cpp
r22475 r25414 1 1 /* 2 * Copyright 2003-200 7, Haiku, Inc. All Rights Reserved.2 * Copyright 2003-2008, Haiku, Inc. All Rights Reserved. 3 3 * Distributed under the terms of the MIT License. 4 4 * … … 428 428 pm_std_ops 429 429 }, 430 "intel", // short_name 430 431 INTEL_PARTITION_NAME, // pretty_name 431 432 … … 514 515 ep_std_ops 515 516 }, 517 "intel_extended", // short_name 516 518 INTEL_EXTENDED_PARTITION_NAME, // pretty_name 517 519 haiku/trunk/src/add-ons/kernel/partitioning_systems/session/session.cpp
r23891 r25414 115 115 standard_operations 116 116 }, 117 "session", // short_name 117 118 SESSION_PARTITION_NAME, // pretty_name 118 119 0, // flags haiku/trunk/src/kits/storage/disk_device/DiskDeviceRoster.cpp
r23292 r25414 1 //---------------------------------------------------------------------- 2 // This software is part of the OpenBeOS distribution and is covered 3 // by the OpenBeOS license. 4 //--------------------------------------------------------------------- 1 /* 2 * Copyright 2003-2008, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Ingo Weinhold, bonefish@cs.tu-berlin.de 7 * Axel Dörfler, axeld@pinc-software.de 8 */ 5 9 6 10 #include <new> … … 83 87 size_t neededSize = 0; 84 88 partition_id id = _kern_get_next_disk_device_id(&fDeviceCookie, 85 &neededSize);89 &neededSize); 86 90 if (id < 0) 87 91 return id; … … 100 104 } 101 105 102 // GetNextDiskSystem 103 status_t 104 BDiskDeviceRoster::GetNextDiskSystem(BDiskSystem *system)106 107 status_t 108 BDiskDeviceRoster::GetNextDiskSystem(BDiskSystem* system) 105 109 { 106 110 if (!system) … … 108 112 user_disk_system_info info; 109 113 status_t error = _kern_get_next_disk_system_info(&fDiskSystemCookie, 110 &info);114 &info); 111 115 if (error == B_OK) 112 116 error = system->_SetTo(&info); … … 114 118 } 115 119 116 // RewindDiskSystems 120 117 121 status_t 118 122 BDiskDeviceRoster::RewindDiskSystems() … … 123 127 124 128 125 // RegisterFileDevice 129 status_t 130 BDiskDeviceRoster::GetDiskSystem(BDiskSystem* system, const char* name) 131 { 132 if (!system) 133 return B_BAD_VALUE; 134 135 int32 cookie = 0; 136 user_disk_system_info info; 137 while (_kern_get_next_disk_system_info(&fDiskSystemCookie, &info) == B_OK) { 138 if (!strcmp(name, info.name) 139 || !strcmp(name, info.short_name) 140 || !strcmp(name, info.pretty_name)) 141 return system->_SetTo(&info); 142 } 143 144 return B_ENTRY_NOT_FOUND; 145 } 146 147 126 148 partition_id 127 149 BDiskDeviceRoster::RegisterFileDevice(const char *filename) haiku/trunk/src/kits/storage/disk_device/DiskSystem.cpp
r22607 r25414 17 17 // constructor 18 18 BDiskSystem::BDiskSystem() 19 : fID(B_NO_INIT), 20 fName(), 21 fPrettyName(), 22 fFlags(0) 19 : 20 fID(B_NO_INIT), 21 fFlags(0) 23 22 { 24 23 } … … 27 26 // copy constructor 28 27 BDiskSystem::BDiskSystem(const BDiskSystem& other) 29 : fID(other.fID), 30 fName(other.fName), 31 fPrettyName(other.fPrettyName), 32 fFlags(other.fFlags) 28 : 29 fID(other.fID), 30 fName(other.fName), 31 fShortName(other.fShortName), 32 fPrettyName(other.fPrettyName), 33 fFlags(other.fFlags) 33 34 { 34 35 } … … 45 46 BDiskSystem::InitCheck() const 46 47 { 47 return (fID > 0 ? B_OK : fID);48 return fID > 0 ? B_OK : fID; 48 49 } 49 50 … … 57 58 58 59 60 // ShortName 61 const char* 62 BDiskSystem::ShortName() const 63 { 64 return fShortName.String(); 65 } 66 67 59 68 // PrettyName 60 69 const char* … … 77 86 78 87 if (whileMounted) { 79 *whileMounted = (IsFileSystem()80 && (fFlags & B_DISK_SYSTEM_SUPPORTS_DEFRAGMENTING_WHILE_MOUNTED));88 *whileMounted = IsFileSystem() && (fFlags 89 & B_DISK_SYSTEM_SUPPORTS_DEFRAGMENTING_WHILE_MOUNTED) != 0; 81 90 } 82 91 … … 311 320 BDiskSystem::IsPartitioningSystem() const 312 321 { 313 return (InitCheck() == B_OK && !(fFlags & B_DISK_SYSTEM_IS_FILE_SYSTEM));322 return InitCheck() == B_OK && !(fFlags & B_DISK_SYSTEM_IS_FILE_SYSTEM); 314 323 } 315 324 … … 319 328 BDiskSystem::IsFileSystem() const 320 329 { 321 return (InitCheck() == B_OK && (fFlags & B_DISK_SYSTEM_IS_FILE_SYSTEM));330 return InitCheck() == B_OK && (fFlags & B_DISK_SYSTEM_IS_FILE_SYSTEM); 322 331 } 323 332 … … 329 338 fID = other.fID; 330 339 fName = other.fName; 340 fShortName = other.fShortName; 331 341 fPrettyName = other.fPrettyName; 332 342 fFlags = other.fFlags; … … 365 375 fID = info->id; 366 376 fName = info->name; 377 fShortName = info->short_name; 367 378 fPrettyName = info->pretty_name; 368 379 fFlags = info->flags; haiku/trunk/src/system/kernel/disk_device_manager/KDiskSystem.cpp
r22832 r25414 23 23 : fID(_NextID()), 24 24 fName(NULL), 25 fShortName(NULL), 25 26 fPrettyName(NULL), 26 27 fLoadCounter(0) … … 34 35 { 35 36 free(fName); 37 free(fShortName); 38 free(fPrettyName); 36 39 } 37 40 … … 41 44 KDiskSystem::Init() 42 45 { 43 return (fName ? B_OK : B_NO_MEMORY);46 return fName ? B_OK : B_NO_MEMORY; 44 47 } 45 48 … … 69 72
