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 226081 Details for
Bug 329431
CIFS with MS-Windows Fileserver: Data loss caused by ignoring quota
[?]
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.
[patch]
upstream patch -- only sync out the file on size changes in cifs_setattr
cifs-fsync-only-on-size-change.patch (text/plain), 791 bytes, created by
Jeff Layton
on 2007-10-12 20:44:37 UTC
(
hide
)
Description:
upstream patch -- only sync out the file on size changes in cifs_setattr
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2007-10-12 20:44:37 UTC
Size:
791 bytes
patch
obsolete
>diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c >index ece17ca..d82bd1a 100644 >--- a/fs/cifs/inode.c >+++ b/fs/cifs/inode.c >@@ -1479,10 +1479,12 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs) > > /* BB check if we need to refresh inode from server now ? BB */ > >- /* need to flush data before changing file size on server */ >- filemap_write_and_wait(direntry->d_inode->i_mapping); >- > if (attrs->ia_valid & ATTR_SIZE) { >+ /* need to flush data before changing file size on server */ >+ rc = filemap_write_and_wait(direntry->d_inode->i_mapping); >+ if (rc != 0) >+ goto cifs_setattr_exit; >+ > /* To avoid spurious oplock breaks from server, in the case of > inodes that we already have open, avoid doing path based > setting of file size if we can do it by handle.
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 329431
:
225561
|
225571
|
225581
|
225591
|
225601
|
225611
|
225861
|
226081
|
228691
|
237941
|
259751