mirror of
https://github.com/systemd/systemd.git
synced 2026-08-09 01:20:53 +00:00
mountpoint-util: add overlay check to fstype_is_blockdev_backed() and simplify fstype_is_api_vfs() (#40866)
This commit is contained in:
@@ -391,8 +391,7 @@ bool fstype_is_api_vfs(const char *fstype) {
|
||||
/* Filesystems not present in the internal database */
|
||||
return STR_IN_SET(fstype,
|
||||
"autofs",
|
||||
"cpuset",
|
||||
"devtmpfs");
|
||||
"cpuset");
|
||||
}
|
||||
|
||||
bool fstype_is_blockdev_backed(const char *fstype) {
|
||||
@@ -402,7 +401,7 @@ bool fstype_is_blockdev_backed(const char *fstype) {
|
||||
if (x)
|
||||
fstype = x;
|
||||
|
||||
return !streq(fstype, "9p") && !fstype_is_network(fstype) && !fstype_is_api_vfs(fstype);
|
||||
return !STR_IN_SET(fstype, "9p", "overlay") && !fstype_is_network(fstype) && !fstype_is_api_vfs(fstype);
|
||||
}
|
||||
|
||||
bool fstype_is_ro(const char *fstype) {
|
||||
|
||||
Reference in New Issue
Block a user