summaryrefslogtreecommitdiff
path: root/src/basic/mount-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-29 14:19:22 +0200
committerSven Eden <yamakuzure@gmx.net>2017-11-22 08:25:27 +0100
commit6c78120a2db66990f872fa03dd14dd77d452e57d (patch)
tree9fa33689efd421085439e40d64b5817216ec2816 /src/basic/mount-util.h
parent51aff105274d23b4545c9753bfc50258595feb5d (diff)
dissect: automatically mark partitions read-only that have a read-only file system
Specifically, squashfs and iso9660 are always read-only, hence make sure we never even think about mounting them writable.
Diffstat (limited to 'src/basic/mount-util.h')
-rw-r--r--src/basic/mount-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/mount-util.h b/src/basic/mount-util.h
index 571a0eb50..3b026c1b5 100644
--- a/src/basic/mount-util.h
+++ b/src/basic/mount-util.h
@@ -49,6 +49,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(FILE*, endmntent);
bool fstype_is_network(const char *fstype);
#endif // 0
bool fstype_is_api_vfs(const char *fstype);
+bool fstype_is_ro(const char *fsype);
union file_handle_union {
struct file_handle handle;