[Devel] PLOOP enforcing inode_ratio

Francisco Dias deltaanime at gmail.com
Fri Jun 12 15:19:21 PDT 2015


Hello devs,

https://src.openvz.org/projects/OVZ/repos/ploop/browse/lib/fsutils.c#133

This makes /etc/mke2fs.conf not be listened to, which causes issues
with "vzctl convert" and such not applying the inode_ratio a user
wants.

--- fsutils.orginal.c   2015-06-12 15:06:09.389272552 -0700
+++ fsutils.c   2015-06-12 15:06:23.033456453 -0700
@@ -130,9 +130,8 @@
         * independly on the initial image size
        */
        argv[6] = "-Jsize=128";
-       argv[7] = "-i16384"; /* 1 inode per 16K disk space */
-       argv[8] = part_device;
-       argv[9] = NULL;
+       argv[7] = part_device;
+       argv[8] = NULL;

        if (run_prg(argv))
                return SYSEXIT_MKFS;


Thanks,

Francisco



More information about the Devel mailing list