Skip to content

Commit

Permalink
- make inactive mount points
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Mar 15, 2024
1 parent 470596b commit fe8c893
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions barrel/show-filesystems.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ namespace barrel
tmp = "[" + rootprefix + "] " + tmp;
}

if (!mount_point->is_active())
tmp += " !";

row[Id::MOUNT_POINT] = tmp;
}

Expand Down
5 changes: 5 additions & 0 deletions package/barrel.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 15 09:21:52 CET 2024 - [email protected]

- make inactive mount points

-------------------------------------------------------------------
Mon Feb 05 11:23:57 CET 2024 - [email protected]

Expand Down
2 changes: 1 addition & 1 deletion testsuite/real1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
<rootprefixed>true</rootprefixed>
<mount-by>uuid</mount-by>
<mount-type>swap</mount-type>
<active>true</active>
<active>false</active>
<in-etc-fstab>true</in-etc-fstab>
<freq>0</freq>
<passno>0</passno>
Expand Down
2 changes: 1 addition & 1 deletion testsuite/show1.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ BOOST_AUTO_TEST_CASE(test5)
"─────┼───────┼────────────────┼───────────┼────────────",
"ext4 │ │ /dev/sda2 │ 29.99 GiB │ /",
"xfs │ │ /dev/data/home │ 20.00 GiB │ /home",
"swap │ │ /dev/sda3 │ 2.00 GiB │ swap"
"swap │ │ /dev/sda3 │ 2.00 GiB │ swap !"
};

Testsuite testsuite;
Expand Down

0 comments on commit fe8c893

Please sign in to comment.