Commit 87158273 authored by jan.koester's avatar jan.koester
Browse files

test

parent 747dfdbf
Loading
Loading
Loading
Loading
+4 −2
Changes for modules/filesystems/filesystems.cpp: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * and waits for devices that come up late (RAID, LVM).
 *
 *   list                                        -> {volumes, mounts}
 *   format   {device, type, label?, confirm}    ext4 or vfat (mke2fs, mkfs.fat),
 *   format   {device, type, label?, confirm}    ext4 (with uid_r) or vfat (mke2fs, mkfs.fat),
 *                                               in the background: -> {job};
 *                                               list shows each volume's job
 *   mount    {device, where, options?, boot}    a new unit, mounted now
@@ -619,7 +619,9 @@ json_object *format(json_object *a) {

    std::vector<std::string> argv = {tool};
    if (type == "ext4") {
        argv.insert(argv.end(), {"-t", "ext4", "-F", "-q"});
        // uid_r: files of UUID and GUID users (FenrirOS); it needs inodes
        // of at least 256 bytes, which small volumes don't get by default
        argv.insert(argv.end(), {"-t", "ext4", "-O", "uid_r", "-I", "256", "-F", "-q"});
        if (!label.empty()) argv.insert(argv.end(), {"-L", label});
    } else {
        argv.push_back("-I");  // also a whole device