Bug 216490 - ubifs: bad space budget for symlink after encryption
Summary: ubifs: bad space budget for symlink after encryption
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 06:41 UTC by Zhihao Cheng
Modified: 2022-09-15 06:41 UTC (History)
0 users

See Also:
Kernel Version: 6.0.0-rc4
Subsystem:
Regression: No
Bisected commit-id:


Attachments
diff (2.23 KB, patch)
2022-09-15 06:41 UTC, Zhihao Cheng
Details | Diff
setup.sh (2.10 KB, application/x-shellscript)
2022-09-15 06:41 UTC, Zhihao Cheng
Details

Description Zhihao Cheng 2022-09-15 06:41:08 UTC
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 e
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

budget 736 < disk 768(312 + 456)
Comment 1 Zhihao Cheng 2022-09-15 06:41:39 UTC
Created attachment 301811 [details]
diff
Comment 2 Zhihao Cheng 2022-09-15 06:41:49 UTC
Created attachment 301812 [details]
setup.sh

Note You need to log in before you can comment on or make changes to this bug.