Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ec9b2be0
Commit
ec9b2be0
authored
May 24, 2004
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect file size on handle based setattr (for big endian hardware)
parent
5cb34289
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
fs/cifs/CHANGES
fs/cifs/CHANGES
+5
-0
fs/cifs/cifsfs.h
fs/cifs/cifsfs.h
+1
-1
fs/cifs/cifssmb.c
fs/cifs/cifssmb.c
+1
-1
No files found.
fs/cifs/CHANGES
View file @
ec9b2be0
Version 1.16
------------
Fix incorrect file size in file handle based setattr on big endian hardware.
Fix oops in build_path_from_dentry when out of memory.
Version 1.15
------------
Change to mempools for alloc smb request buffers and multiplex structs
...
...
fs/cifs/cifsfs.h
View file @
ec9b2be0
...
...
@@ -93,5 +93,5 @@ extern int cifs_setxattr(struct dentry *, const char *, const void *,
size_t
,
int
);
extern
ssize_t
cifs_getxattr
(
struct
dentry
*
,
const
char
*
,
void
*
,
size_t
);
extern
ssize_t
cifs_listxattr
(
struct
dentry
*
,
char
*
,
size_t
);
#define CIFS_VERSION "1.1
5
"
#define CIFS_VERSION "1.1
6
"
#endif
/* _CIFSFS_H */
fs/cifs/cifssmb.c
View file @
ec9b2be0
...
...
@@ -2591,7 +2591,7 @@ CIFSSMBSetFileSize(const int xid, struct cifsTconInfo *tcon, __u64 size,
(
struct
file_end_of_file_info
*
)
(((
char
*
)
&
pSMB
->
hdr
.
Protocol
)
+
pSMB
->
DataOffset
);
pSMB
->
DataOffset
=
cpu_to_le16
(
pSMB
->
DataOffset
);
/* now safe to change to le */
parm_data
->
FileSize
=
size
;
parm_data
->
FileSize
=
cpu_to_le64
(
size
)
;
pSMB
->
Fid
=
fid
;
if
(
SetAllocation
)
{
if
(
tcon
->
ses
->
capabilities
&
CAP_INFOLEVEL_PASSTHRU
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment