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
160f035e
Commit
160f035e
authored
Oct 15, 2002
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix 'long long' != u64 in NFSv4 debugging printks
Thanks again to davem...
parent
bc5321b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
fs/nfs/nfs4xdr.c
fs/nfs/nfs4xdr.c
+13
-12
No files found.
fs/nfs/nfs4xdr.c
View file @
160f035e
...
@@ -1077,13 +1077,13 @@ decode_getattr(struct nfs4_compound *cp, int nfserr, struct nfs4_getattr *getatt
...
@@ -1077,13 +1077,13 @@ decode_getattr(struct nfs4_compound *cp, int nfserr, struct nfs4_getattr *getatt
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
nfp
->
change_attr
);
READ64
(
nfp
->
change_attr
);
dprintk
(
"read_attrs: changeid=%Ld
\n
"
,
(
u64
)
nfp
->
change_attr
);
dprintk
(
"read_attrs: changeid=%Ld
\n
"
,
(
long
long
)
nfp
->
change_attr
);
}
}
if
(
bmval0
&
FATTR4_WORD0_SIZE
)
{
if
(
bmval0
&
FATTR4_WORD0_SIZE
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
nfp
->
size
);
READ64
(
nfp
->
size
);
dprintk
(
"read_attrs: size=%Ld
\n
"
,
(
u64
)
nfp
->
size
);
dprintk
(
"read_attrs: size=%Ld
\n
"
,
(
long
long
)
nfp
->
size
);
}
}
if
(
bmval0
&
FATTR4_WORD0_FSID
)
{
if
(
bmval0
&
FATTR4_WORD0_FSID
)
{
READ_BUF
(
16
);
READ_BUF
(
16
);
...
@@ -1091,7 +1091,8 @@ decode_getattr(struct nfs4_compound *cp, int nfserr, struct nfs4_getattr *getatt
...
@@ -1091,7 +1091,8 @@ decode_getattr(struct nfs4_compound *cp, int nfserr, struct nfs4_getattr *getatt
READ64
(
nfp
->
fsid_u
.
nfs4
.
major
);
READ64
(
nfp
->
fsid_u
.
nfs4
.
major
);
READ64
(
nfp
->
fsid_u
.
nfs4
.
minor
);
READ64
(
nfp
->
fsid_u
.
nfs4
.
minor
);
dprintk
(
"read_attrs: fsid=0x%Lx/0x%Lx
\n
"
,
dprintk
(
"read_attrs: fsid=0x%Lx/0x%Lx
\n
"
,
nfp
->
fsid_u
.
nfs4
.
major
,
nfp
->
fsid_u
.
nfs4
.
minor
);
(
long
long
)
nfp
->
fsid_u
.
nfs4
.
major
,
(
long
long
)
nfp
->
fsid_u
.
nfs4
.
minor
);
}
}
if
(
bmval0
&
FATTR4_WORD0_LEASE_TIME
)
{
if
(
bmval0
&
FATTR4_WORD0_LEASE_TIME
)
{
READ_BUF
(
4
);
READ_BUF
(
4
);
...
@@ -1103,31 +1104,31 @@ decode_getattr(struct nfs4_compound *cp, int nfserr, struct nfs4_getattr *getatt
...
@@ -1103,31 +1104,31 @@ decode_getattr(struct nfs4_compound *cp, int nfserr, struct nfs4_getattr *getatt
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
nfp
->
fileid
);
READ64
(
nfp
->
fileid
);
dprintk
(
"read_attrs: fileid=%Ld
\n
"
,
nfp
->
fileid
);
dprintk
(
"read_attrs: fileid=%Ld
\n
"
,
(
long
long
)
nfp
->
fileid
);
}
}
if
(
bmval0
&
FATTR4_WORD0_FILES_AVAIL
)
{
if
(
bmval0
&
FATTR4_WORD0_FILES_AVAIL
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
fsstat
->
afiles
);
READ64
(
fsstat
->
afiles
);
dprintk
(
"read_attrs: files_avail=0x%Lx
\n
"
,
fsstat
->
afiles
);
dprintk
(
"read_attrs: files_avail=0x%Lx
\n
"
,
(
long
long
)
fsstat
->
afiles
);
}
}
if
(
bmval0
&
FATTR4_WORD0_FILES_FREE
)
{
if
(
bmval0
&
FATTR4_WORD0_FILES_FREE
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
fsstat
->
ffiles
);
READ64
(
fsstat
->
ffiles
);
dprintk
(
"read_attrs: files_free=0x%Lx
\n
"
,
fsstat
->
ffiles
);
dprintk
(
"read_attrs: files_free=0x%Lx
\n
"
,
(
long
long
)
fsstat
->
ffiles
);
}
}
if
(
bmval0
&
FATTR4_WORD0_FILES_TOTAL
)
{
if
(
bmval0
&
FATTR4_WORD0_FILES_TOTAL
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
fsstat
->
tfiles
);
READ64
(
fsstat
->
tfiles
);
dprintk
(
"read_attrs: files_tot=0x%Lx
\n
"
,
fsstat
->
tfiles
);
dprintk
(
"read_attrs: files_tot=0x%Lx
\n
"
,
(
long
long
)
fsstat
->
tfiles
);
}
}
if
(
bmval0
&
FATTR4_WORD0_MAXFILESIZE
)
{
if
(
bmval0
&
FATTR4_WORD0_MAXFILESIZE
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
fsinfo
->
maxfilesize
);
READ64
(
fsinfo
->
maxfilesize
);
dprintk
(
"read_attrs: maxfilesize=0x%Lx
\n
"
,
fsinfo
->
maxfilesize
);
dprintk
(
"read_attrs: maxfilesize=0x%Lx
\n
"
,
(
long
long
)
fsinfo
->
maxfilesize
);
}
}
if
(
bmval0
&
FATTR4_WORD0_MAXLINK
)
{
if
(
bmval0
&
FATTR4_WORD0_MAXLINK
)
{
READ_BUF
(
4
);
READ_BUF
(
4
);
...
@@ -1214,25 +1215,25 @@ decode_getattr(struct nfs4_compound *cp, int nfserr, struct nfs4_getattr *getatt
...
@@ -1214,25 +1215,25 @@ decode_getattr(struct nfs4_compound *cp, int nfserr, struct nfs4_getattr *getatt
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
fsstat
->
abytes
);
READ64
(
fsstat
->
abytes
);
dprintk
(
"read_attrs: savail=0x%Lx
\n
"
,
fsstat
->
abytes
);
dprintk
(
"read_attrs: savail=0x%Lx
\n
"
,
(
long
long
)
fsstat
->
abytes
);
}
}
if
(
bmval1
&
FATTR4_WORD1_SPACE_FREE
)
{
if
(
bmval1
&
FATTR4_WORD1_SPACE_FREE
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
fsstat
->
fbytes
);
READ64
(
fsstat
->
fbytes
);
dprintk
(
"read_attrs: sfree=0x%Lx
\n
"
,
fsstat
->
fbytes
);
dprintk
(
"read_attrs: sfree=0x%Lx
\n
"
,
(
long
long
)
fsstat
->
fbytes
);
}
}
if
(
bmval1
&
FATTR4_WORD1_SPACE_TOTAL
)
{
if
(
bmval1
&
FATTR4_WORD1_SPACE_TOTAL
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
fsstat
->
tbytes
);
READ64
(
fsstat
->
tbytes
);
dprintk
(
"read_attrs: stotal=0x%Lx
\n
"
,
fsstat
->
tbytes
);
dprintk
(
"read_attrs: stotal=0x%Lx
\n
"
,
(
long
long
)
fsstat
->
tbytes
);
}
}
if
(
bmval1
&
FATTR4_WORD1_SPACE_USED
)
{
if
(
bmval1
&
FATTR4_WORD1_SPACE_USED
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ64
(
nfp
->
du
.
nfs3
.
used
);
READ64
(
nfp
->
du
.
nfs3
.
used
);
dprintk
(
"read_attrs: sused=0x%Lx
\n
"
,
nfp
->
du
.
nfs3
.
used
);
dprintk
(
"read_attrs: sused=0x%Lx
\n
"
,
(
long
long
)
nfp
->
du
.
nfs3
.
used
);
}
}
if
(
bmval1
&
FATTR4_WORD1_TIME_ACCESS
)
{
if
(
bmval1
&
FATTR4_WORD1_TIME_ACCESS
)
{
READ_BUF
(
12
);
READ_BUF
(
12
);
...
...
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