New: write fails with one short >2GB write.
https://bugzilla.kernel.org/show_bug.cgi?id=54551
Summary: write fails with one short >2GB write.
Product: File System
Version: 2.5
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: ext4
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: No
Hi,
I have one application where we are writing on-short 3G of data but when write succeed, it writes only 2G of data.
simple program.
if ( (ret = write(fd,buf,3221225472)) != limit) {
printf("\nError no:=%d",errno);printf("\nret : %d",ret);
}
in above program, write only writes 2GB data..
could you please tell me, how to resolve this..
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 54551] write fails with one short >2GB write.
https://bugzilla.kernel.org/show_bug.cgi?id=54551
--- Comment #1 from [email protected] 2013-02-27 14:51:38 --- is it like, "MAX_RW_COUNT" limit is 2G ?????
is there any way, we can bypass this limit, pls help me out into this..
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 54551] write fails with one short >2GB write.
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=54551
Jan Kara <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] AssignedTo|[email protected] |[email protected] |g |
--- Comment #2 from Jan Kara <[email protected]> 2013-03-01 09:20:51 --- You cannot easily overcome this limit. Also I'd note that POSIX does not say how much is going to be written. So you have to be prepared for the fact that your write writes e.g. 1 byte (although in practice that doesn't tend to happen). If some program relies on write(2) writing as much as it was told to, it is a buggy program.
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.