mountpoint-util: add overlay check to fstype_is_blockdev_backed() and simplify fstype_is_api_vfs() (#40866)

This commit is contained in:
Yu Watanabe
2026-03-02 13:15:14 +09:00
committed by GitHub

View File

@@ -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) {