summaryrefslogtreecommitdiffstats
path: root/collectors/proc.plugin/proc_self_mountinfo.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:08:18 +0000
commit5da14042f70711ea5cf66e034699730335462f66 (patch)
tree0f6354ccac934ed87a2d555f45be4c831cf92f4a /collectors/proc.plugin/proc_self_mountinfo.h
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-5da14042f70711ea5cf66e034699730335462f66.tar.xz
netdata-5da14042f70711ea5cf66e034699730335462f66.zip
Merging upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/proc.plugin/proc_self_mountinfo.h')
-rw-r--r--collectors/proc.plugin/proc_self_mountinfo.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/collectors/proc.plugin/proc_self_mountinfo.h b/collectors/proc.plugin/proc_self_mountinfo.h
deleted file mode 100644
index 4bd24d2d2..000000000
--- a/collectors/proc.plugin/proc_self_mountinfo.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#ifndef NETDATA_PROC_SELF_MOUNTINFO_H
-#define NETDATA_PROC_SELF_MOUNTINFO_H 1
-
-#define MOUNTINFO_IS_DUMMY 0x00000001
-#define MOUNTINFO_IS_REMOTE 0x00000002
-#define MOUNTINFO_IS_BIND 0x00000004
-#define MOUNTINFO_IS_SAME_DEV 0x00000008
-#define MOUNTINFO_NO_STAT 0x00000010
-#define MOUNTINFO_NO_SIZE 0x00000020
-#define MOUNTINFO_READONLY 0x00000040
-#define MOUNTINFO_IS_IN_SYSD_PROTECTED_LIST 0x00000080
-
-struct mountinfo {
- long id; // mount ID: unique identifier of the mount (may be reused after umount(2)).
- long parentid; // parent ID: ID of parent mount (or of self for the top of the mount tree).
- unsigned long major; // major:minor: value of st_dev for files on filesystem (see stat(2)).
- unsigned long minor;
-
- char *persistent_id; // a calculated persistent id for the mount point
- uint32_t persistent_id_hash;
-
- char *root; // root: root of the mount within the filesystem.
- uint32_t root_hash;
-
- char *mount_point; // mount point: mount point relative to the process's root.
- uint32_t mount_point_hash;
-
- char *mount_options; // mount options: per-mount options.
-
- int optional_fields_count;
-/*
- char ***optional_fields; // optional fields: zero or more fields of the form "tag[:value]".
-*/
- char *filesystem; // filesystem type: name of filesystem in the form "type[.subtype]".
- uint32_t filesystem_hash;
-
- char *mount_source; // mount source: filesystem-specific information or "none".
- uint32_t mount_source_hash;
-
- char *mount_source_name;
- uint32_t mount_source_name_hash;
-
- char *super_options; // super options: per-superblock options.
-
- uint32_t flags;
-
- dev_t st_dev; // id of device as given by stat()
-
- struct mountinfo *next;
-};
-
-struct mountinfo *mountinfo_find(struct mountinfo *root, unsigned long major, unsigned long minor, char *device);
-struct mountinfo *mountinfo_find_by_filesystem_mount_source(struct mountinfo *root, const char *filesystem, const char *mount_source);
-struct mountinfo *mountinfo_find_by_filesystem_super_option(struct mountinfo *root, const char *filesystem, const char *super_options);
-
-void mountinfo_free_all(struct mountinfo *mi);
-struct mountinfo *mountinfo_read(int do_statvfs);
-
-#endif /* NETDATA_PROC_SELF_MOUNTINFO_H */