Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
167a251a
Commit
167a251a
authored
Aug 24, 2005
by
Steve French
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CIFS] Change notify support part 3
Signed-off-by:
Steve French
<
sfrench@us.ibm.com
>
parent
abb15b8a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
fs/cifs/cifsglob.h
fs/cifs/cifsglob.h
+1
-1
fs/cifs/cifsproto.h
fs/cifs/cifsproto.h
+2
-1
fs/cifs/cifssmb.c
fs/cifs/cifssmb.c
+4
-3
fs/cifs/fcntl.c
fs/cifs/fcntl.c
+5
-3
No files found.
fs/cifs/cifsglob.h
View file @
167a251a
...
...
@@ -402,7 +402,7 @@ struct dir_notify_req {
__u16
netfid
;
__u32
filter
;
/* CompletionFilter (for multishot) */
int
multishot
;
struct
dentry
*
dentry
;
struct
file
*
dentry
;
};
#define MID_FREE 0
...
...
fs/cifs/cifsproto.h
View file @
167a251a
...
...
@@ -275,7 +275,8 @@ extern int CIFSSMBCopy(int xid,
int
remap_special_chars
);
extern
int
CIFSSMBNotify
(
const
int
xid
,
struct
cifsTconInfo
*
tcon
,
const
int
notify_subdirs
,
const
__u16
netfid
,
__u32
filter
,
const
struct
nls_table
*
nls_codepage
);
__u32
filter
,
struct
file
*
file
,
int
multishot
,
const
struct
nls_table
*
nls_codepage
);
extern
ssize_t
CIFSSMBQAllEAs
(
const
int
xid
,
struct
cifsTconInfo
*
tcon
,
const
unsigned
char
*
searchName
,
char
*
EAData
,
size_t
bufsize
,
const
struct
nls_table
*
nls_codepage
,
...
...
fs/cifs/cifssmb.c
View file @
167a251a
...
...
@@ -3977,8 +3977,9 @@ setPermsRetry:
}
int
CIFSSMBNotify
(
const
int
xid
,
struct
cifsTconInfo
*
tcon
,
const
int
notify_subdirs
,
const
__u16
netfid
,
__u32
filter
,
const
struct
nls_table
*
nls_codepage
)
const
int
notify_subdirs
,
const
__u16
netfid
,
__u32
filter
,
struct
file
*
pfile
,
int
multishot
,
const
struct
nls_table
*
nls_codepage
)
{
int
rc
=
0
;
struct
smb_com_transaction_change_notify_req
*
pSMB
=
NULL
;
...
...
@@ -4026,7 +4027,7 @@ int CIFSSMBNotify(const int xid, struct cifsTconInfo *tcon,
dnotify_req
->
Tid
=
pSMB
->
hdr
.
Tid
;
dnotify_req
->
Uid
=
pSMB
->
hdr
.
Uid
;
dnotify_req
->
netfid
=
netfid
;
dnotify_req
->
dentry
=
dentry
;
dnotify_req
->
pfile
=
pfile
;
dnotify_req
->
filter
=
filter
;
dnotify_req
->
multishot
=
multishot
;
spin_lock
(
&
GlobalMid_Lock
);
...
...
fs/cifs/fcntl.c
View file @
167a251a
...
...
@@ -100,8 +100,10 @@ int cifs_dir_notify(struct file * file, unsigned long arg)
}
else
{
filter
=
convert_to_cifs_notify_flags
(
arg
);
if
(
filter
!=
0
)
{
rc
=
CIFSSMBNotify
(
xid
,
pTcon
,
0
/* no subdirs */
,
netfid
,
filter
,
cifs_sb
->
local_nls
);
rc
=
CIFSSMBNotify
(
xid
,
pTcon
,
0
/* no subdirs */
,
netfid
,
filter
,
file
,
arg
&
DN_MULTISHOT
,
cifs_sb
->
local_nls
);
}
else
{
rc
=
-
EINVAL
;
}
...
...
@@ -109,7 +111,7 @@ int cifs_dir_notify(struct file * file, unsigned long arg)
it would close automatically but may be a way
to do it easily when inode freed or when
notify info is cleared/changed */
cERROR
(
1
,(
"notify rc %d"
,
rc
));
cFYI
(
1
,(
"notify rc %d"
,
rc
));
}
}
...
...
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