CONFIG_FS_ENCRYPTION=y CONFIG_UBIFS_FS=m CONFIG_MTD_UBI=m CONFIG_MTD_NAND_NANDSIM=m 1. Apply diff and compile kernel 2. ./setup.sh 1 3. dmesg [12035.118788] <2809> budget: len 260 len_encrypted 290 [12035.119500] <2809> budget: data_growth(new inode + new dent + new ino_data) 736 [12035.120891] <2809> disk: newdent 312 newinode+ino_data 456 [root@localhost ~]# dmesg -c [ 1548.794608] <8045> budget: dd_growth + data_growth 0 [ 1548.799021] <8045> disk: new + mod 288 budget <0> < disk (288)
Created attachment 302967 [details] setup.sh
Created attachment 302968 [details] a.c
Created attachment 302969 [details] diff
(In reply to Zhihao Cheng from comment #0) > CONFIG_FS_ENCRYPTION=y > CONFIG_UBIFS_FS=m > CONFIG_MTD_UBI=m > CONFIG_MTD_NAND_NANDSIM=m > > 1. Apply diff and compile kernel > 2. ./setup.sh 1 3. Compile and execute a.c > 4. dmesg > [root@localhost ~]# dmesg -c > [ 1548.794608] <8045> budget: dd_growth + data_growth 0 > [ 1548.799021] <8045> disk: new + mod 288 > > budget <0> < disk (288)