package cn.reghao.bnt.common.machine.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @author reghao
 * @date 2025-09-26 13:51:15
 */
@AllArgsConstructor
@Getter
@Setter
public class DiskPartition {
    private String diskName;
    private long partitionSize;
    private String uuid;
    private String vol;
    private String mountedOn;
    private String fsType;
    private long totalSpace;
    private String totalSpaceStr;
    private long freeSpace;
    private String freeSpaceStr;
    private double freeSpacePercent;
    private long usableSpace;
    private String usableSpaceStr;
    private long totalInode;
    private long freeInode;
    private double freeInodePercent;

    public DiskPartition(String diskName, long partitionSize, String uuid, String vol, String mountedOn, String fsType) {
        this.diskName = diskName;
        this.partitionSize = partitionSize;
        this.uuid = uuid;
        this.vol = vol;
        this.mountedOn = mountedOn;
        this.fsType = fsType;
    }
}
