Class LinuxDiskInfo
Holds information about a Linux disk and its partitions.
Namespace: Neon.SSH
Assembly: Neon.SSH.dll
Syntax
public class LinuxDiskInfo
Constructors
LinuxDiskInfo(string, long, bool, bool, List<LinuxDiskPartition>)
Constructor.
Declaration
public LinuxDiskInfo(string diskName, long size, bool isRemovable, bool isReadonly, List<LinuxDiskPartition> partitions)
Parameters
Type | Name | Description |
---|---|---|
string | diskName | The disk name. |
long | size | The disk size in bytes. |
bool | isRemovable | Indicates whether the disk is read-only. |
bool | isReadonly | Indicates whether the disk is removable. |
List<LinuxDiskPartition> | partitions | The disk partitions or |
Properties
DiskName
Returns the disk name.
Declaration
public string DiskName { get; }
Property Value
Type | Description |
---|---|
string |
IsReadOnly
Indicates whether the disk is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
bool |
IsRemovable
Indicates whether the disk is removable.
Declaration
public bool IsRemovable { get; }
Property Value
Type | Description |
---|---|
bool |
Partitions
Returns the the disk partitions.
Declaration
public IList<LinuxDiskPartition> Partitions { get; }
Property Value
Type | Description |
---|---|
IList<LinuxDiskPartition> |
Size
Disk size in bytes.
Declaration
public long Size { get; }
Property Value
Type | Description |
---|---|
long |