Re: [go-nuts] How to get mount point or device name by directory?

2018-01-23 Thread Matrix Neo
is /data/test1, the findmnt returns nothing. 在 2018年1月23日星期二 UTC+8下午10:39:58,Ian Lance Taylor写道: > > On Mon, Jan 22, 2018 at 10:11 PM, Matrix Neo > wrote: > > > > I want to get the mount point or device name (like /dev/sda1) by > the > > directory name. I t

[go-nuts] How to get mount point or device name by directory?

2018-01-23 Thread Matrix Neo
Hi, everybody: I want to get the mount point or device name (like /dev/sda1) by the directory name. I try my best only to find syscall.Stat_t struct but there is no field to point the information i need. So is there any way to implement this ? -- You received this message because you are