Overview
| Artifact ID: | 1746b2c9353e6a5276207e87a928ecfbb2d61491 |
|---|---|
| Ticket: | 2888099fffffffffffffffffffffffffffffffff
[close] discards buffered data when no space left on device |
| User & Date: | flatworm on 2009-10-29 00:35:23 |
Changes
- icomment:
Relevant trailer from the strace output of the test case with the silent [close]: open("/tmp/blockdev/foo", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 5 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfa60b18) = -1 ENOTTY (Inappropriate ioctl for device) write(1, "file5\r\n"..., 7) = 7 write(1, "% "..., 2) = 2 read(0, "chan config $fd -buffering full\n"..., 4096) = 32 write(1, "% "..., 2) = 2 read(0, "puts $fd test\n"..., 4096) = 14 write(1, "% "..., 2) = 2 read(0, "close $fd\n"..., 4096) = 10 write(5, "test\n"..., 5) = -1 ENOSPC (No space left on device) close(5) = 0 write(1, "% "..., 2) = 2 read(0, ""..., 4096) = 0 fcntl64(2, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(2, F_SETFL, O_RDWR) = 0 fcntl64(1, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(1, F_SETFL, O_RDWR) = 0 fcntl64(0, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(0, F_SETFL, O_RDWR) = 0 write(4, "q"..., 1) = 1 close(4) = 0 futex(0x9eafbe8, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x9eafc28, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x9eafc2c, FUTEX_WAIT_PRIVATE, 3, NULL) = -1 EAGAIN (Resource temporarily unavailable) futex(0xb7a2dbd8, FUTEX_WAIT, 23837, NULL) = 0 futex(0x9eafbe8, FUTEX_WAKE_PRIVATE, 1) = 0 exit_group(0) = ? - login: "flatworm"
- mimetype: "text/plain"
- username: "flatworm"