syscall.Stat_t does have the Dev field, which is documented by POSIX:
https://linux.die.net/man/2/stat: "The st_dev field describes the device on
which this file resides. (The major(3) and minor(3) macros may be useful to
decompose the device ID in this field.)"
In Go we don't have the major and
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 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
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