[LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

Bastian Bittorf bb at npl.de
Tue Nov 22 12:28:15 PST 2016


* Felix Fietkau <nbd at nbd.name> [22.11.2016 18:17]:
> > I tested it and it's usable with 16M rootfs.
> Here's some more information: it creates the overlay filesystem with a
> block size of 1K, and it has 3493 free inodes after booting up.

Does not work here, with some additional packages (like olsrd + olsrd2
+rrd +iproute-full)

here the build-error with "inodes full".
(the same images works, if i just raise the inodes to 2048)

bastian at LEDE:/home/bastian/ledebot/staging :) cat
logs/target/linux/install.txt
  LINK linux
Pseudo file "/dev" exists in source filesystem
"/home/bastian/ledebot/staging/build_dir/target-x86_64_musl-1.1.15/root-uml/dev".
Ignoring, exclude it (-e/-ef) to override.
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on
/home/bastian/ledebot/staging/build_dir/target-x86_64_musl-1.1.15/linux-uml/root.squashfs,
block size 65536.
[|                                                               ]
0/863   0%error: make_link: failed to allocate inode

Creating filesystem with parameters:
    Size: 16777216
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 1024
    Inode size: 256
    Journal blocks: 0
    Label: 
    Blocks: 4096
    Block groups: 1
    Reserved blocks: 0
    Reserved block group size: 7
/home/bastian/ledebot/staging/include/image.mk:301: recipe for target
'/home/bastian/ledebot/staging/build_dir/target-x86_64_musl-1.1.15/linux-uml/root.ext4'
failed
make[5]: ***
[/home/bastian/ledebot/staging/build_dir/target-x86_64_musl-1.1.15/linux-uml/root.ext4]
Error 1
make[5]: *** Waiting for unfinished jobs....
[===============================================================|]
863/863 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 65536
        compressed data, compressed metadata, compressed fragments, no
xattrs
        duplicates are removed
Filesystem size 3983.50 Kbytes (3.89 Mbytes)
        34.61% of uncompressed filesystem size (11508.40 Kbytes)
Inode table size 8086 bytes (7.90 Kbytes)
        22.68% of uncompressed inode table size (35648 bytes)
Directory table size 10758 bytes (10.51 Kbytes)
        49.89% of uncompressed directory table size (21563 bytes)
Number of duplicate files found 5
Number of inodes 1057
Number of files 764
Number of fragments 74
Number of symbolic links  224
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 68
Number of ids (unique uids + gids) 1
Number of uids 1
        root (0)
Number of gids 1
        root (0)
Makefile:42: recipe for target 'install' failed
make[4]: *** [install] Error 2
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
bastian at LEDE:/home/bastian/ledebot/staging :) 




More information about the Lede-dev mailing list