Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 936411 Details for
Bug 1140506
[DHT-REBALANCE]-DataLoss: The data appended to a file during its migration will be lost once the migration is done
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
test program
slow.c (text/plain), 1.17 KB, created by
shylesh
on 2014-09-11 07:40:37 UTC
(
hide
)
Description:
test program
Filename:
MIME Type:
Creator:
shylesh
Created:
2014-09-11 07:40:37 UTC
Size:
1.17 KB
patch
obsolete
>#include <stdio.h> >#include <errno.h> >#include <unistd.h> >#include <stdlib.h> > >main (int argc, char *argv[]) >{ > FILE *fp1 = NULL; > FILE *fp2 = NULL; > char c; > int ret = 0; > > if (argc != 3) { > printf ("Usage : %s <src> <dst>\n", argv[0]); > exit(1); > } > > fp1 = fopen (argv[1], "r"); > if (!fp1) { > printf ("fopen source failed: %s", strerror (errno)); > exit (1); > } > fp2 = fopen (argv[2], "a+"); > if (!fp2) { > printf ("fopen of target failed: %s", strerror(errno)); > exit (1); > } > > while (fread (&c, 1, 1, fp1)) { > printf ("sleep..\n"); > sleep (1); > printf ("writing %c\n", c); > > ret = fwrite (&c, 1, 1, fp2); > if (ret != 1) { > printf ("write error : %s\n", strerror(errno)); > } > > if (fflush(fp2)) { > printf ("Error flushing: %s", strerror(errno)); > } > } > fclose (fp1); > fclose (fp2); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1140506
:
936408
| 936411