From 08037ea63a00842a2b5bfcb90843a3645e1e549c Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 4 Jan 2026 00:30:02 -0600 Subject: [PATCH] mergerfs_webui.cpp --- src/mergerfs_webui.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mergerfs_webui.cpp b/src/mergerfs_webui.cpp index d994fd83..e436ec1f 100644 --- a/src/mergerfs_webui.cpp +++ b/src/mergerfs_webui.cpp @@ -7,6 +7,9 @@ #include "httplib.h" #include "json.hpp" +#include + + using json = nlohmann::json; static @@ -160,12 +163,17 @@ static bool _valid_fs_type(const std::string &type_) { + const std::array + if(type_ == "ext2") return true; if(type_ == "ext3") return true; if(type_ == "ext4") return true; + if(type_ == "xfs") + return true; + if(type_ == "" return false; }