]> arthur.barton.de Git - netdata.git/blob - src/proc_self_mountinfo.h
disk now get the mount point at the menu (only when they are not partitions) #295
[netdata.git] / src / proc_self_mountinfo.h
1 #include "procfile.h"
2
3 #ifndef NETDATA_PROC_SELF_MOUNTINFO_H
4 #define NETDATA_PROC_SELF_MOUNTINFO_H 1
5
6 struct mountinfo {
7         long id;                // mount ID: unique identifier of the mount (may be reused after umount(2)).
8         long parentid;          // parent ID: ID of parent mount (or of self for the top of the mount tree).
9         unsigned long major;    // major:minor: value of st_dev for files on filesystem (see stat(2)).
10         unsigned long minor;
11
12         char *root;             // root: root of the mount within the filesystem.
13         char *mount_point;      // mount point: mount point relative to the process's root.
14         char *mount_options;    // mount options: per-mount options.
15
16         int optional_fields_count;
17         char **optional_fields; // optional fields: zero or more fields of the form "tag[:value]".
18
19         char *filesystem;       // filesystem type: name of filesystem in the form "type[.subtype]".
20         char *mount_source;     // mount source: filesystem-specific information or "none".
21         char *super_options;    // super options: per-superblock options.
22
23         struct mountinfo *next;
24 };
25
26 extern struct mountinfo *mountinfo_find(struct mountinfo *root, unsigned long major, unsigned long minor);
27 extern void mountinfo_free(struct mountinfo *mi);
28 extern struct mountinfo *mountinfo_read();
29
30 #endif /* NETDATA_PROC_SELF_MOUNTINFO_H */