summaryrefslogtreecommitdiff
path: root/ext2fs/balloc.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-03-18 01:58:27 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-03-18 01:58:40 +0100
commitc180703603f314ef83c39aae5a15c83c72918a64 (patch)
tree1370d75389fc7ad1f4d9807734625ec342443206 /ext2fs/balloc.c
parentf5eb71362af4104f6c0e3bdae9e2a89159094016 (diff)
ext2fs: Do not try to frob inline data for regular files and directories
Inline data in i_data is only used by symlinks (and apparently some device nodes in linux). For regular files and directories we don't store data there. This is actually important since otherwise int fd = open("foo.txt", O_WRONLY|O_CREAT); ftruncate(fd, 1024); ftruncate(fd, 10); leads to trying to frob beyond i_data end.
Diffstat (limited to 'ext2fs/balloc.c')
0 files changed, 0 insertions, 0 deletions