|
|
|
@ -64,9 +64,9 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
|
|
|
|
|
opts += ",nodev"
|
|
|
|
|
}
|
|
|
|
|
d := PartitionStat{
|
|
|
|
|
Device: common.IntToString(stat.Mntfromname[:]),
|
|
|
|
|
Mountpoint: common.IntToString(stat.Mntonname[:]),
|
|
|
|
|
Fstype: common.IntToString(stat.Fstypename[:]),
|
|
|
|
|
Device: common.ByteToString(stat.Mntfromname[:]),
|
|
|
|
|
Mountpoint: common.ByteToString(stat.Mntonname[:]),
|
|
|
|
|
Fstype: common.ByteToString(stat.Fstypename[:]),
|
|
|
|
|
Opts: opts,
|
|
|
|
|
}
|
|
|
|
|
if all == false {
|
|
|
|
@ -82,5 +82,5 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func getFsType(stat unix.Statfs_t) string {
|
|
|
|
|
return common.IntToString(stat.Fstypename[:])
|
|
|
|
|
return common.ByteToString(stat.Fstypename[:])
|
|
|
|
|
}
|
|
|
|
|