Cannot write a file of size *exactly* 4294967295
Closed / Fixed90ff9b7f737342660744dfccd4570fca057ec69dCreated 4 years agoUpdated 4 years ago
Descriptionmarkdown2023-02-26 06:16:33
Logging this ticket separately from [3d01d51bc4] as the root cause is different and is specific to a file size of exactly 4294967295 bytes. See below.
% set fd [open large.txt w]; puts -nonewline $fd [string repeat A 4294967294]; close $fd; file size large.txt
4294967294
% file delete large.txt
% set fd [open large.txt w]; puts -nonewline $fd [string repeat A 4294967296]; close $fd; file size large.txt
4294967296
% file delete large.txt
% set fd [open large.txt w]; puts -nonewline $fd [string repeat A 4294967295]; close $fd; file size large.txt
error writing "file15c832d2948": no such file or directory
% close $fd
% file size large.txt
4294967295
Note the error exception even though the file is actually created.
Referenced by1
7ad27f4c32Also fix [90ff9b7f73] - writes of exactly 4294967295 bytes check-in2023-02-26 07:15:06
apnadkarni Ticket [90ff9b7f73]: 3 changes
[History diff]2023-02-26 06:26:47
apnadkarniplain2023-02-26 07:19:02
Fixed in [7ad27f4c32] as part of branch [bug-3d01d51bc4]
apnadkarni Closed ticket [90ff9b7f73].
[History diff]2023-02-28 10:30:39
Log in (anonymous is fine) to add a comment.