Commit a5da316
fuse2fs: fix block parameter truncation on 32-bit
Use the blk64_t variants of the io channel read/write methods when we
have to do partial block zeroing for hole punching because otherwise
we corrupt large 64-bit filesystems on 32-bit fuse2fs due to integer
truncation.
Cc: linux-ext4@vger.kernel.org # v1.43
Fixes: 81cbf1e ("misc: add fuse2fs, a FUSE server for e2fsprogs")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20250730172324.GR2672022@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 86a24ae commit a5da316
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4168 | 4168 | | |
4169 | 4169 | | |
4170 | 4170 | | |
4171 | | - | |
| 4171 | + | |
4172 | 4172 | | |
4173 | 4173 | | |
4174 | 4174 | | |
4175 | 4175 | | |
4176 | 4176 | | |
4177 | | - | |
| 4177 | + | |
4178 | 4178 | | |
4179 | 4179 | | |
4180 | 4180 | | |
| |||
4202 | 4202 | | |
4203 | 4203 | | |
4204 | 4204 | | |
4205 | | - | |
| 4205 | + | |
4206 | 4206 | | |
4207 | 4207 | | |
4208 | 4208 | | |
| |||
4213 | 4213 | | |
4214 | 4214 | | |
4215 | 4215 | | |
4216 | | - | |
| 4216 | + | |
4217 | 4217 | | |
4218 | 4218 | | |
4219 | 4219 | | |
| |||
0 commit comments