|
|
@ -215,7 +215,7 @@ var fsTypeMap = map[int64]string{
|
|
|
|
// physical devices only (e.g. hard disks, cd-rom drives, USB keys)
|
|
|
|
// physical devices only (e.g. hard disks, cd-rom drives, USB keys)
|
|
|
|
// and ignore all others (e.g. memory partitions such as /dev/shm)
|
|
|
|
// and ignore all others (e.g. memory partitions such as /dev/shm)
|
|
|
|
func Partitions(all bool) ([]PartitionStat, error) {
|
|
|
|
func Partitions(all bool) ([]PartitionStat, error) {
|
|
|
|
filename := common.HostProc("mounts")
|
|
|
|
filename := common.HostProc("self/mounts")
|
|
|
|
lines, err := common.ReadLines(filename)
|
|
|
|
lines, err := common.ReadLines(filename)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|