aboutsummaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src/tab_parse.c')
-rw-r--r--libmount/src/tab_parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c
index 3dd8538802..bd15ad9098 100644
--- a/libmount/src/tab_parse.c
+++ b/libmount/src/tab_parse.c
@@ -188,6 +188,7 @@ static int mnt_parse_mountinfo_line(struct libmnt_fs *fs, const char *s)
char *p;
fs->flags |= MNT_FS_KERNEL;
+ mnt_fs_mark_attached(fs);
/* (1) id */
s = next_s32(s, &fs->id, &rc);
@@ -755,9 +756,9 @@ int mnt_table_parse_stream(struct libmnt_table *tb, FILE *f, const char *filenam
* parser sets the flag properly
*/
if (tb->fmt == MNT_FMT_SWAPS)
- flags = MNT_FS_SWAP;
+ flags = MNT_FS_SWAP | MNT_FS_STATUS_ATTACH;
else if (filename && strcmp(filename, _PATH_PROC_MOUNTS) == 0)
- flags = MNT_FS_KERNEL;
+ flags = MNT_FS_KERNEL | MNT_FS_STATUS_ATTACH;
do {
struct libmnt_fs *fs;