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
37e19384
Commit
37e19384
authored
Jun 17, 2004
by
Steve French
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://cifs.bkbits.net/linux-2.5cifs
into stevef95.austin.ibm.com:/home/stevef/linux-2.5cifs
parents
0bcf0c3c
c208b35c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
21 deletions
+63
-21
fs/Kconfig
fs/Kconfig
+11
-2
fs/cifs/CHANGES
fs/cifs/CHANGES
+9
-1
fs/cifs/cifs_debug.c
fs/cifs/cifs_debug.c
+42
-17
fs/cifs/cifsfs.h
fs/cifs/cifsfs.h
+1
-1
No files found.
fs/Kconfig
View file @
37e19384
...
...
@@ -1562,7 +1562,7 @@ config SMB_NLS_REMOTE
smbmount from samba 2.2.0 or later supports this.
config CIFS
tristate "CIFS support (advanced network filesystem for Samba, Window and other CIFS compliant servers)
(EXPERIMENTAL)
"
tristate "CIFS support (advanced network filesystem for Samba, Window and other CIFS compliant servers)"
depends on INET
select NLS
help
...
...
@@ -1592,7 +1592,16 @@ config CIFS_STATS
depends on CIFS
help
Enabling this option will cause statistics for each server share
mounted by the cifs client to be displayed in /proc/fs/cifs/DebugData
mounted by the cifs client to be displayed in /proc/fs/cifs/Stats
config CIFS_POSIX
bool "CIFS statistics (EXPERIMENTAL)"
depends on CIFS
help
Enabling this option will cause the cifs client to attempt to
negotiate a newer dialect with servers, such as Samba 3.0.5
or later, that optionally can handle more POSIX like (rather
than Windows like) file behavior. If unsure, say N.
config NCP_FS
tristate "NCP file system support (to mount NetWare volumes)"
...
...
fs/cifs/CHANGES
View file @
37e19384
Version 1.19
------------
Fix /proc/fs/cifs/Stats and DebugData display to handle larger
amounts of return data.
Version 1.18
------------
Do not rename hardlinked files (since that should be a noop). Flush
cached write behind data when reopening a file after session abend,
except when already in write. Grab per socket sem during reconnect
to avoid oops in sendmsg if overlapping with reconnect.
to avoid oops in sendmsg if overlapping with reconnect. Do not
reset cached inode file size on readdir for files open for write on
client.
Version 1.17
...
...
fs/cifs/cifs_debug.c
View file @
37e19384
...
...
@@ -62,11 +62,16 @@ cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset,
int
count
,
int
*
eof
,
void
*
data
)
{
struct
list_head
*
tmp
;
struct
list_head
*
tmp1
;
struct
mid_q_entry
*
mid_entry
;
struct
cifsSesInfo
*
ses
;
struct
cifsTconInfo
*
tcon
;
int
i
;
int
length
=
0
;
char
*
buf_start
=
buf
;
char
*
original_buf
=
buf
;
*
beginBuffer
=
buf
+
offset
;
length
=
sprintf
(
buf
,
...
...
@@ -94,7 +99,7 @@ cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset,
ses
->
server
->
secMode
,
atomic_read
(
&
ses
->
server
->
inFlight
));
/*
length = sprintf(buf, "\nMIDs: \n");
length
=
sprintf
(
buf
,
"
\n
MIDs:
\n
"
);
buf
+=
length
;
spin_lock
(
&
GlobalMid_Lock
);
...
...
@@ -107,7 +112,7 @@ cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset,
buf
+=
length
;
}
}
spin_unlock(&GlobalMid_Lock);
*/
spin_unlock
(
&
GlobalMid_Lock
);
}
}
...
...
@@ -152,19 +157,22 @@ cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset,
length
=
sprintf
(
buf
,
"
\n
"
);
buf
+=
length
;
*
eof
=
1
;
/* BB add code to dump additional info such as TCP session info now */
/*
if (offset >= (buf - buf_start))
{
*beginBuffer = buf;
/* Now calculate total size of returned data */
length
=
buf
-
original_buf
;
if
(
offset
+
count
>=
length
)
*
eof
=
1
;
if
(
length
<
offset
)
{
*
eof
=
1
;
return
0
;
}
else
{
length
=
length
-
offset
;
}
*beginBuffer = buf + offset;
if ((buf - buf_start - offset) > count)
return count;
else */
return
(
buf
-
buf_start
-
offset
);
if
(
length
>
count
)
length
=
count
;
return
length
;
}
int
...
...
@@ -183,12 +191,14 @@ cifs_total_xid_read(char *buf, char **beginBuffer, off_t offset,
#ifdef CONFIG_CIFS_STATS
int
cifs_stats_read
(
char
*
buf
,
char
**
beginBuffer
,
off_t
offset
,
int
length
,
int
*
eof
,
void
*
data
)
int
count
,
int
*
eof
,
void
*
data
)
{
int
item_length
,
i
;
int
item_length
,
i
,
length
;
struct
list_head
*
tmp
;
struct
cifsTconInfo
*
tcon
;
*
beginBuffer
=
buf
+
offset
;
length
=
sprintf
(
buf
,
"Resources in use
\n
CIFS Session: %d
\n
"
,
sesInfoAllocCount
.
counter
);
...
...
@@ -235,10 +245,12 @@ cifs_stats_read(char *buf, char **beginBuffer, off_t offset,
atomic_read
(
&
tcon
->
num_reads
),
(
long
long
)(
tcon
->
bytes_read
));
buf
+=
item_length
;
length
+=
item_length
;
item_length
=
sprintf
(
buf
,
"
\n
Writes: %d Bytes: %lld"
,
atomic_read
(
&
tcon
->
num_writes
),
(
long
long
)(
tcon
->
bytes_written
));
buf
+=
item_length
;
length
+=
item_length
;
item_length
=
sprintf
(
buf
,
"
\n
Opens: %d Deletes: %d
\n
Mkdirs: %d Rmdirs: %d"
,
atomic_read
(
&
tcon
->
num_opens
),
...
...
@@ -250,6 +262,19 @@ cifs_stats_read(char *buf, char **beginBuffer, off_t offset,
}
read_unlock
(
&
GlobalSMBSeslock
);
buf
+=
sprintf
(
buf
,
"
\n
"
);
length
++
;
if
(
offset
+
count
>=
length
)
*
eof
=
1
;
if
(
length
<
offset
)
{
*
eof
=
1
;
return
0
;
}
else
{
length
=
length
-
offset
;
}
if
(
length
>
count
)
length
=
count
;
return
length
;
}
...
...
fs/cifs/cifsfs.h
View file @
37e19384
...
...
@@ -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
8
"
#define CIFS_VERSION "1.1
9
"
#endif
/* _CIFSFS_H */
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