2021-12-03 16:39:50 +01:00
|
|
|
import * as plugins from './smartdrive.plugins';
|
2017-06-09 01:24:19 +02:00
|
|
|
|
2021-12-03 16:39:50 +01:00
|
|
|
export interface ILsBlkJson {
|
|
|
|
|
blockdevices: {
|
|
|
|
|
name: string;
|
|
|
|
|
'maj:min': string;
|
|
|
|
|
rm: boolean;
|
|
|
|
|
size: number;
|
|
|
|
|
ro: boolean;
|
|
|
|
|
type: 'disk' | 'part';
|
|
|
|
|
mountpoint: null;
|
|
|
|
|
children: {
|
|
|
|
|
name: string;
|
|
|
|
|
'maj:min': string;
|
|
|
|
|
rm: boolean;
|
|
|
|
|
size: string;
|
|
|
|
|
ro: boolean;
|
|
|
|
|
type: 'disk' | 'part';
|
|
|
|
|
mountpoint: string;
|
|
|
|
|
}[];
|
|
|
|
|
}[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IDrive extends plugins.drivelist.Drive {
|
|
|
|
|
children: ILsBlkJson['blockdevices'][0]['children'];
|
2017-06-09 01:24:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IMountpoint {
|
2021-12-03 16:39:50 +01:00
|
|
|
path: string;
|
2017-06-09 01:24:19 +02:00
|
|
|
}
|