ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Linux-NBD/NBD.xs
(Generate patch)

Comparing Linux-NBD/NBD.xs (file contents):
Revision 1.3 by root, Tue Mar 8 20:19:57 2005 UTC vs.
Revision 1.4 by root, Thu Aug 24 12:13:40 2006 UTC

82 82
83 if (read (fd, &req, sizeof (req)) == sizeof (req)) 83 if (read (fd, &req, sizeof (req)) == sizeof (req))
84 { 84 {
85 if (req.magic == htonl (NBD_REQUEST_MAGIC)) 85 if (req.magic == htonl (NBD_REQUEST_MAGIC))
86 { 86 {
87 req.type = htonl (req.type);
88
87 if (req.type < 2) 89 if (req.type < 2)
88 { 90 {
89 u64 from = ntohll (req.from); 91 u64 from = ntohll (req.from);
90 92
91 PUSHMARK (SP); 93 PUSHMARK (SP);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines