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 913069 Details for
Bug 1114221
9pfs does not honor open file handles on unlinked files
[?]
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.
C program that works on any filesystem except 9pfs
fstatbug.c (text/plain), 774 bytes, created by
Sean Estabrooks
on 2014-06-28 20:00:16 UTC
(
hide
)
Description:
C program that works on any filesystem except 9pfs
Filename:
MIME Type:
Creator:
Sean Estabrooks
Created:
2014-06-28 20:00:16 UTC
Size:
774 bytes
patch
obsolete
>#include <stdio.h> >#include <unistd.h> >#include <fcntl.h> >#include <sys/types.h> >#include <sys/stat.h> > >int main(void) >{ > int ret; > struct stat statbuf; > int fd = open("test.txt", O_RDWR | O_CREAT, 0666); > if (fd < 0) { > printf("open failed: %m\n"); > return 1; > } > ret = write(fd, "test1\n", 6); > if (ret < 0) { > printf("write1 failed: %m\n"); > return 1; > } > ret = unlink("test.txt"); > if (ret < 0) { > printf("unlink failed: %m\n"); > return 1; > } > ret = fstat(fd, &statbuf); > if (ret < 0) { > printf("fstat failed: %m\n"); > return 1; > } > return 0; >}
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 1114221
: 913069