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
nexedi
linux
Commits
486a567d
Commit
486a567d
authored
Aug 28, 2003
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Match smb pid to current->tgid
parent
41b2f9da
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
fs/cifs/cifssmb.c
fs/cifs/cifssmb.c
+2
-2
fs/cifs/dir.c
fs/cifs/dir.c
+2
-2
fs/cifs/inode.c
fs/cifs/inode.c
+3
-1
fs/cifs/misc.c
fs/cifs/misc.c
+2
-2
No files found.
fs/cifs/cifssmb.c
View file @
486a567d
/*
/*
* fs/cifs/cifssmb.c
* fs/cifs/cifssmb.c
*
*
* Copyright (
c) International Business Machines Corp., 2002
* Copyright (
C) International Business Machines Corp., 2002,2003
* Author(s): Steve French (sfrench@us.ibm.com)
* Author(s): Steve French (sfrench@us.ibm.com)
*
*
* Contains the routines for constructing the SMB PDUs themselves
* Contains the routines for constructing the SMB PDUs themselves
...
@@ -656,7 +656,7 @@ CIFSSMBLock(const int xid, struct cifsTconInfo *tcon,
...
@@ -656,7 +656,7 @@ CIFSSMBLock(const int xid, struct cifsTconInfo *tcon,
pSMB
->
AndXCommand
=
0xFF
;
/* none */
pSMB
->
AndXCommand
=
0xFF
;
/* none */
pSMB
->
Fid
=
smb_file_id
;
/* netfid stays le */
pSMB
->
Fid
=
smb_file_id
;
/* netfid stays le */
pSMB
->
Locks
[
0
].
Pid
=
cpu_to_le16
(
current
->
p
id
);
pSMB
->
Locks
[
0
].
Pid
=
cpu_to_le16
(
current
->
tg
id
);
pSMB
->
Locks
[
0
].
Length
=
cpu_to_le64
(
len
);
pSMB
->
Locks
[
0
].
Length
=
cpu_to_le64
(
len
);
pSMB
->
Locks
[
0
].
Offset
=
cpu_to_le64
(
offset
);
pSMB
->
Locks
[
0
].
Offset
=
cpu_to_le64
(
offset
);
pSMB
->
ByteCount
=
sizeof
(
LOCKING_ANDX_RANGE
);
pSMB
->
ByteCount
=
sizeof
(
LOCKING_ANDX_RANGE
);
...
...
fs/cifs/dir.c
View file @
486a567d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* vfs operations that deal with dentries
* vfs operations that deal with dentries
*
*
* Copyright (
c) International Business Machines Corp., 2002
* Copyright (
C) International Business Machines Corp., 2002,2003
* Author(s): Steve French (sfrench@us.ibm.com)
* Author(s): Steve French (sfrench@us.ibm.com)
*
*
* This library is free software; you can redistribute it and/or modify
* This library is free software; you can redistribute it and/or modify
...
@@ -216,7 +216,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
...
@@ -216,7 +216,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
memset
((
char
*
)
pCifsFile
,
0
,
memset
((
char
*
)
pCifsFile
,
0
,
sizeof
(
struct
cifsFileInfo
));
sizeof
(
struct
cifsFileInfo
));
pCifsFile
->
netfid
=
fileHandle
;
pCifsFile
->
netfid
=
fileHandle
;
pCifsFile
->
pid
=
current
->
p
id
;
pCifsFile
->
pid
=
current
->
tg
id
;
pCifsFile
->
pInode
=
newinode
;
pCifsFile
->
pInode
=
newinode
;
/* pCifsFile->pfile = file; */
/* put in at open time */
/* pCifsFile->pfile = file; */
/* put in at open time */
write_lock
(
&
GlobalSMBSeslock
);
write_lock
(
&
GlobalSMBSeslock
);
...
...
fs/cifs/inode.c
View file @
486a567d
/*
/*
* fs/cifs/inode.c
* fs/cifs/inode.c
*
*
* Copyright (
c) International Business Machines Corp., 2002
* Copyright (
C) International Business Machines Corp., 2002,2003
* Author(s): Steve French (sfrench@us.ibm.com)
* Author(s): Steve French (sfrench@us.ibm.com)
*
*
* This library is free software; you can redistribute it and/or modify
* This library is free software; you can redistribute it and/or modify
...
@@ -345,6 +345,8 @@ cifs_unlink(struct inode *inode, struct dentry *direntry)
...
@@ -345,6 +345,8 @@ cifs_unlink(struct inode *inode, struct dentry *direntry)
if
(
!
rc
)
{
if
(
!
rc
)
{
direntry
->
d_inode
->
i_nlink
--
;
direntry
->
d_inode
->
i_nlink
--
;
}
else
if
(
rc
==
-
ENOENT
)
{
d_drop
(
direntry
);
}
else
if
(
rc
==
-
ETXTBSY
)
{
}
else
if
(
rc
==
-
ETXTBSY
)
{
int
oplock
=
FALSE
;
int
oplock
=
FALSE
;
__u16
netfid
;
__u16
netfid
;
...
...
fs/cifs/misc.c
View file @
486a567d
/*
/*
* fs/cifs/misc.c
* fs/cifs/misc.c
*
*
* Copyright (c) International Business Machines Corp., 2002
* Copyright (c) International Business Machines Corp., 2002
,2003
* Author(s): Steve French (sfrench@us.ibm.com)
* Author(s): Steve French (sfrench@us.ibm.com)
*
*
* This library is free software; you can redistribute it and/or modify
* This library is free software; you can redistribute it and/or modify
...
@@ -213,7 +213,7 @@ header_assemble(struct smb_hdr *buffer, char smb_command /* command */ ,
...
@@ -213,7 +213,7 @@ header_assemble(struct smb_hdr *buffer, char smb_command /* command */ ,
buffer
->
Command
=
smb_command
;
buffer
->
Command
=
smb_command
;
buffer
->
Flags
=
0x00
;
/* case sensitive */
buffer
->
Flags
=
0x00
;
/* case sensitive */
buffer
->
Flags2
=
SMBFLG2_KNOWS_LONG_NAMES
;
buffer
->
Flags2
=
SMBFLG2_KNOWS_LONG_NAMES
;
tmp
=
cpu_to_le32
(
current
->
p
id
);
tmp
=
cpu_to_le32
(
current
->
tg
id
);
buffer
->
Pid
=
tmp
&
0xFFFF
;
buffer
->
Pid
=
tmp
&
0xFFFF
;
tmp
>>=
16
;
tmp
>>=
16
;
buffer
->
PidHigh
=
tmp
&
0xFFFF
;
buffer
->
PidHigh
=
tmp
&
0xFFFF
;
...
...
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