projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.linux-nfs.org/pub/linux/nfs-2.6
[powerpc.git]
/
include
/
linux
/
nbd.h
diff --git
a/include/linux/nbd.h
b/include/linux/nbd.h
index
1d7cdd2
..
e712e7d
100644
(file)
--- a/
include/linux/nbd.h
+++ b/
include/linux/nbd.h
@@
-77,11
+77,11
@@
struct nbd_device {
* server. All data are in network byte order.
*/
struct nbd_request {
* server. All data are in network byte order.
*/
struct nbd_request {
- __
u
32 magic;
- __
u32 type;
/* == READ || == WRITE */
+ __
be
32 magic;
+ __
be32 type;
/* == READ || == WRITE */
char handle[8];
char handle[8];
- __
u
64 from;
- __
u
32 len;
+ __
be
64 from;
+ __
be
32 len;
}
#ifdef __GNUC__
__attribute__ ((packed))
}
#ifdef __GNUC__
__attribute__ ((packed))
@@
-93,8
+93,8
@@
struct nbd_request {
* it has completed an I/O request (or an error occurs).
*/
struct nbd_reply {
* it has completed an I/O request (or an error occurs).
*/
struct nbd_reply {
- __
u
32 magic;
- __
u32 error;
/* 0 = ok, else error */
+ __
be
32 magic;
+ __
be32 error;
/* 0 = ok, else error */
char handle[8]; /* handle you got from request */
};
#endif
char handle[8]; /* handle you got from request */
};
#endif