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
85e8ac71
Commit
85e8ac71
authored
Feb 11, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-isdn.bkbits.net/linux-2.5.make
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
55fabbb8
5092f154
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
fs/nfs/nfs3xdr.c
fs/nfs/nfs3xdr.c
+8
-5
fs/nfs/nfs4xdr.c
fs/nfs/nfs4xdr.c
+8
-7
kernel/exit.c
kernel/exit.c
+1
-0
No files found.
fs/nfs/nfs3xdr.c
View file @
85e8ac71
...
@@ -146,7 +146,7 @@ xdr_decode_time3(u32 *p, struct timespec *timep)
...
@@ -146,7 +146,7 @@ xdr_decode_time3(u32 *p, struct timespec *timep)
static
u32
*
static
u32
*
xdr_decode_fattr
(
u32
*
p
,
struct
nfs_fattr
*
fattr
)
xdr_decode_fattr
(
u32
*
p
,
struct
nfs_fattr
*
fattr
)
{
{
unsigned
int
type
;
unsigned
int
type
,
major
,
minor
;
int
fmode
;
int
fmode
;
type
=
ntohl
(
*
p
++
);
type
=
ntohl
(
*
p
++
);
...
@@ -160,9 +160,12 @@ xdr_decode_fattr(u32 *p, struct nfs_fattr *fattr)
...
@@ -160,9 +160,12 @@ xdr_decode_fattr(u32 *p, struct nfs_fattr *fattr)
fattr
->
gid
=
ntohl
(
*
p
++
);
fattr
->
gid
=
ntohl
(
*
p
++
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
size
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
size
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
du
.
nfs3
.
used
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
du
.
nfs3
.
used
);
/* Turn remote device info into Linux-specific dev_t */
/* Turn remote device info into Linux-specific dev_t */
fattr
->
rdev
=
ntohl
(
*
p
++
)
<<
MINORBITS
;
major
=
ntohl
(
*
p
++
);
fattr
->
rdev
|=
ntohl
(
*
p
++
)
&
MINORMASK
;
minor
=
ntohl
(
*
p
++
);
fattr
->
rdev
=
MKDEV
(
major
,
minor
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
fsid_u
.
nfs3
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
fsid_u
.
nfs3
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
fileid
);
p
=
xdr_decode_hyper
(
p
,
&
fattr
->
fileid
);
p
=
xdr_decode_time3
(
p
,
&
fattr
->
atime
);
p
=
xdr_decode_time3
(
p
,
&
fattr
->
atime
);
...
@@ -412,8 +415,8 @@ nfs3_xdr_mknodargs(struct rpc_rqst *req, u32 *p, struct nfs3_mknodargs *args)
...
@@ -412,8 +415,8 @@ nfs3_xdr_mknodargs(struct rpc_rqst *req, u32 *p, struct nfs3_mknodargs *args)
*
p
++
=
htonl
(
args
->
type
);
*
p
++
=
htonl
(
args
->
type
);
p
=
xdr_encode_sattr
(
p
,
args
->
sattr
);
p
=
xdr_encode_sattr
(
p
,
args
->
sattr
);
if
(
args
->
type
==
NF3CHR
||
args
->
type
==
NF3BLK
)
{
if
(
args
->
type
==
NF3CHR
||
args
->
type
==
NF3BLK
)
{
*
p
++
=
htonl
(
args
->
rdev
>>
MINORBITS
);
*
p
++
=
htonl
(
MAJOR
(
args
->
rdev
)
);
*
p
++
=
htonl
(
args
->
rdev
&
MINORMASK
);
*
p
++
=
htonl
(
MINOR
(
args
->
rdev
)
);
}
}
req
->
rq_slen
=
xdr_adjust_iovec
(
req
->
rq_svec
,
p
);
req
->
rq_slen
=
xdr_adjust_iovec
(
req
->
rq_svec
,
p
);
...
...
fs/nfs/nfs4xdr.c
View file @
85e8ac71
...
@@ -1385,13 +1385,14 @@ decode_getattr(struct xdr_stream *xdr, struct nfs4_getattr *getattr)
...
@@ -1385,13 +1385,14 @@ decode_getattr(struct xdr_stream *xdr, struct nfs4_getattr *getattr)
dprintk
(
"read_attrs: gid=%d
\n
"
,
(
int
)
nfp
->
gid
);
dprintk
(
"read_attrs: gid=%d
\n
"
,
(
int
)
nfp
->
gid
);
}
}
if
(
bmval1
&
FATTR4_WORD1_RAWDEV
)
{
if
(
bmval1
&
FATTR4_WORD1_RAWDEV
)
{
uint32_t
major
,
minor
;
READ_BUF
(
8
);
READ_BUF
(
8
);
len
+=
8
;
len
+=
8
;
READ32
(
dummy32
);
READ32
(
major
);
nfp
->
rdev
=
(
dummy32
<<
MINORBITS
);
READ32
(
minor
);
READ32
(
dummy32
);
nfp
->
rdev
=
MKDEV
(
major
,
minor
);
nfp
->
rdev
|=
(
dummy32
&
MINORMASK
);
dprintk
(
"read_attrs: rdev=0x%x
\n
"
,
nfp
->
rdev
);
dprintk
(
"read_attrs: rdev=%d
\n
"
,
nfp
->
rdev
);
}
}
if
(
bmval1
&
FATTR4_WORD1_SPACE_AVAIL
)
{
if
(
bmval1
&
FATTR4_WORD1_SPACE_AVAIL
)
{
READ_BUF
(
8
);
READ_BUF
(
8
);
...
...
kernel/exit.c
View file @
85e8ac71
...
@@ -308,6 +308,7 @@ void daemonize(const char *name, ...)
...
@@ -308,6 +308,7 @@ void daemonize(const char *name, ...)
va_start
(
args
,
name
);
va_start
(
args
,
name
);
vsnprintf
(
current
->
comm
,
sizeof
(
current
->
comm
),
name
,
args
);
vsnprintf
(
current
->
comm
,
sizeof
(
current
->
comm
),
name
,
args
);
va_end
(
args
);
/*
/*
* If we were started as result of loading a module, close all of the
* If we were started as result of loading a module, close all of the
...
...
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