mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
libutil: Remove /proc/mount related functions
The only user of util_proc_mnt_get_entry() so far was util_path_sysfs(). With the simplified version there is no user left. Remove util_proc_mnt_get_entry() and related code. Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
@@ -27,25 +27,10 @@ struct util_proc_dev_entry {
|
||||
char *name;
|
||||
};
|
||||
|
||||
/**
|
||||
* Container for the fields of the output of /proc/mounts (man fstab)
|
||||
*/
|
||||
struct util_proc_mnt_entry {
|
||||
char *spec;
|
||||
char *file;
|
||||
char *vfstype;
|
||||
char *mntOpts;
|
||||
char *dump;
|
||||
char *passno;
|
||||
};
|
||||
|
||||
int util_proc_part_get_entry(dev_t device, struct util_proc_part_entry *entry);
|
||||
void util_proc_part_free_entry(struct util_proc_part_entry *entry);
|
||||
int util_proc_dev_get_entry(dev_t dev, int blockdev,
|
||||
struct util_proc_dev_entry *entry);
|
||||
void util_proc_dev_free_entry(struct util_proc_dev_entry *entry);
|
||||
int util_proc_mnt_get_entry(const char *file_name, const char *spec,
|
||||
struct util_proc_mnt_entry *entry);
|
||||
void util_proc_mnt_free_entry(struct util_proc_mnt_entry *entry);
|
||||
|
||||
#endif /* LIB_UTIL_PROC_H */
|
||||
|
||||
Reference in New Issue
Block a user