Commit 707c9e0b authored by jan.koester's avatar jan.koester
Browse files

test

parent 5d6a3ed3
Loading
Loading
Loading
Loading
+10 −1
Changes for modules/filesystems/filesystems.cpp: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -725,7 +725,16 @@ json_object *mount(json_object *a) {
    // UUID= stays right when device names change
    m.what = !v->fs.uuid.empty() ? "UUID=" + v->fs.uuid : v->path;
    m.where = where;
    m.type = v->fs.type;

    std::string fstype = v->fs.type;
    if (fstype == "ntfs" || fstype == "ntfs3") {
        fstype = "ntfs3";
        if (options == "defaults" || options.empty()) {
            options = "defaults,uid=0,gid=0,iocharset=utf8";
        }
    }

    m.type = fstype;
    m.options = options;
    m.description = v->path + (v->fs.label.empty() ? "" : " (" + v->fs.label + ")");
    std::string unit;