Commit fd394bc
fuse_fs: Fix partition size check for block devices
os.path.getsize() returns 0 for block devices like /dev/sda4, causing
a spurious "image appears to be truncated" error. Use the size already
computed by ImageFile.open(), which correctly handles block devices
via ioctl.1 parent 7edd50f commit fd394bc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments