package cn.reghao.tnb.oss.api.dto.disk;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.io.Serializable;

/**
 * @author reghao
 * @date 2024-10-21 11:29:28
 */
@AllArgsConstructor
@Getter
public class DiskVolume implements Serializable {
    private static final long serialVersionUID = 1L;

    private String name;
    private String volume;
    private String mountPoint;
    private String fsType;
    private String blockId;
    private long totalSpace;
    private long availSpace;
    private long totalInode;
    private long availInode;
    private String storeDir;

    public DiskVolume(String name, String volume, String mountPoint, String fsType, String blockId,
                      long totalSpace, long availSpace, long totalInode, long availInode) {
        this.name = name;
        this.volume = volume;
        this.mountPoint = mountPoint;
        this.fsType = fsType;
        this.blockId = blockId;
        this.totalSpace = totalSpace;
        this.availSpace = availSpace;
        this.totalInode = totalInode;
        this.availInode = availInode;
    }

    public void setStoreDir(String storeDir) {
        this.storeDir = storeDir;
    }
}
