Changeset 16 for trunk/UPhysDrive.pas
- Timestamp:
- Apr 2, 2016, 8:18:30 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UPhysDrive.pas
r13 r16 9 9 10 10 type 11 TDriveKind = (dkPhysical, dkFile); 11 12 12 13 { TDriveInfo } 13 14 14 15 TDriveInfo = class 16 Kind: TDriveKind; 15 17 Model: string; 16 18 Size: Int64; … … 97 99 if FileExists(List[I] + '/device') then begin 98 100 NewDriveInfo := TDriveInfo.Create; 101 NewDriveInfo.Kind := dkPhysical; 99 102 NewDriveInfo.Model := Trim(LoadFileToStr(List[I] + '/device/model')); 100 103 NewDriveInfo.SectorSize := StrToInt(Trim(LoadFileToStr(List[I] + '/queue/physical_block_size'))); … … 106 109 end; 107 110 {$ENDIF} 111 { NewDriveInfo := TDriveInfo.Create; 112 NewDriveInfo.Kind := dkFile; 113 NewDriveInfo.Model := 'File'; 114 NewDriveInfo.SectorSize := 4096; 115 NewDriveInfo.SectorCount := 0; 116 NewDriveInfo.Size := 0; 117 NewDriveInfo.Path := ''; 118 Add(NewDriveInfo); 119 } 108 120 end; 109 121
Note:
See TracChangeset
for help on using the changeset viewer.