}
/**
- * mnt_fs_print_debug
+ * mnt_fs_print_debug:
* @fs: fstab/mtab/mountinfo entry
- * @file: file stream
+ * @file: output file stream
*
* Returns: 0 on success or negative number in case of error.
*/
* still 0, then a mask is generated for all missing data in @fs.
*
* The default namespace is the current namespace. This default can be
- * overwritten by mnt_fs_set_ns_id(). The namespace ID is also set when @fs
- * has been created by mnt_table_fetch_statmount() or on-demand (see
+ * overwritten by mnt_fs_set_ns(). The namespace ID is also set when @fs
+ * has been created by mnt_fs_fetch_statmount() or on-demand (see
* mnt_table_enable_listmount()).
*
* Returns: 0 or negative number in case of error (if @fs is NULL).
struct libmnt_table;
/**
- * libmnt_update
+ * libmnt_update:
*
* utab update description
*/
struct libmnt_update;
/**
- * libmnt_context
+ * libmnt_context:
*
* Mount/umount status
*/
struct libmnt_context;
/**
- * libmnt_monitor
+ * libmnt_monitor:
*
* Mount tables monitor
*/
struct libmnt_ns;
/**
- * libmnt_statmnt
+ * libmnt_statmnt:
*
* Setting for statmount()
*/
__ul_attribute__((warn_unused_result));
extern const char *mnt_get_fstab_path(void);
extern const char *mnt_get_swaps_path(void);
+#ifndef LIBMOUNT_DISABLE_DEPRECATED
extern const char *mnt_get_mtab_path(void);
extern int mnt_has_regular_mtab(const char **mtab, int *writable);
+#endif
extern char *mnt_get_mountpoint(const char *path)
__ul_attribute__((warn_unused_result));
extern int mnt_guess_system_root(dev_t devno, struct libmnt_cache *cache, char **path)
extern int mnt_optstr_get_flags(const char *optstr, unsigned long *flags,
const struct libmnt_optmap *map);
+#ifndef LIBMOUNT_DISABLE_DEPRECATED
extern int mnt_optstr_apply_flags(char **optstr, unsigned long flags,
const struct libmnt_optmap *map);
+#endif
/* iter.c */
enum {
extern int mnt_table_parse_swaps(struct libmnt_table *tb, const char *filename);
extern int mnt_table_parse_mtab(struct libmnt_table *tb, const char *filename);
extern int mnt_table_parse_utab(struct libmnt_table *tb, const char *filename);
+extern int mnt_table_enable_noautofs(struct libmnt_table *tb, int ignore);
+extern int mnt_table_is_noautofs(struct libmnt_table *tb);
extern int mnt_table_disable_useropts(struct libmnt_table *tb, int disable);
extern int mnt_table_set_parser_errcb(struct libmnt_table *tb,
int (*cb)(struct libmnt_table *tb, const char *filename, int line));
*
* Return: 0 on success and <0 on error
*
- * Since: v2.42
+ * Since: 2.42
*/
int mnt_monitor_enable_mountinfo(struct libmnt_monitor *mn, int enable)
{
struct libmnt_fs *fstab_fs,
const char *tgt_prefix);
-extern int mnt_table_enable_noautofs(struct libmnt_table *tb, int ignore);
-extern int mnt_table_is_noautofs(struct libmnt_table *tb);
-
/* tab_listmount.c */
extern int mnt_table_next_lsmnt(struct libmnt_table *tb, int direction);
extern int mnt_table_reset_listmount(struct libmnt_table *tb);
/**
* mnt_table_listmount_set_ns:
* @tb: mount table
- * @id: namespace ID
+ * @ns: namespace ID
*
* Set namespace ID for listmount().
*
*
* Enable or disable on-demand listmount() to make it usable by
* mnt_table_next_fs(). This function does not affect
- * mnt_table_fetch_listmont().
+ * mnt_table_fetch_listmount().
*
* Returns: old status (1 or 0)
* Since: 2.41
return 0;
}
-/*
+/**
* mnt_table_enable_noautofs:
* @tb: table
* @ignore: ignore or don't ignore
*
* Enable/disable ignore autofs mount table entries on reading.
+ *
+ * Returns: 0 on success or negative number in case of error.
+ *
+ * Since: 2.38
*/
int mnt_table_enable_noautofs(struct libmnt_table *tb, int ignore)
{
return 0;
}
-/*
+/**
* mnt_table_is_noautofs:
* @tb: table
*
- * Return the the enabled status of ignore autofs mount table entries.
+ * Returns: 1 if autofs entries are ignored, 0 otherwise.
+ *
+ * Since: 2.38
*/
int mnt_table_is_noautofs(struct libmnt_table *tb)
{