diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2003-09-22 22:52:09 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-22 22:52:09 -0700 |
| commit | 18d0c6d3ba8df654d99677ab070037d6c0d9c055 (patch) | |
| tree | c13cd5e4562b24c196e4ace3bf239b98af56f6af /include/linux | |
| parent | 66c937f3ac29429021ee67af023c01270dd0030a (diff) | |
[PATCH] prepare for 32-bit dev_t: stat()
Added old_encode_dev() to assorted stat() variants.
Fixed bug in s390 emulation on s390x: stat64() should never truncate
UID and GID.
Ditto for i386 emulation on x86_64.
Replaced dev_t in various struct stat with explicit integer type.
Replaced __kernel_dev_t with __old_kernel_dev_t in dm-ioctl-v1.h
Now we are free to change dev_t in any way we want - on all boundaries
we have explicit conversions.
Took __kernel_dev_t definition to linux/types.h and changed it with
__u16. We are ready to proceed to 32bit now.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dm-ioctl-v1.h | 4 | ||||
| -rw-r--r-- | include/linux/types.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/dm-ioctl-v1.h b/include/linux/dm-ioctl-v1.h index 21bef9ec14b0..8a20b91c0e45 100644 --- a/include/linux/dm-ioctl-v1.h +++ b/include/linux/dm-ioctl-v1.h @@ -50,7 +50,7 @@ struct dm_ioctl { uint32_t open_count; /* out */ uint32_t flags; /* in/out */ - __kernel_dev_t dev; /* in/out */ + __kernel_old_dev_t dev; /* in/out */ char name[DM_NAME_LEN]; /* device name */ char uuid[DM_UUID_LEN]; /* unique identifier for @@ -87,7 +87,7 @@ struct dm_target_spec { struct dm_target_deps { uint32_t count; - __kernel_dev_t dev[0]; /* out */ + __kernel_old_dev_t dev[0]; /* out */ }; /* diff --git a/include/linux/types.h b/include/linux/types.h index 87a71f8f2416..e3a3d8b1b6bb 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -17,6 +17,8 @@ #ifndef __KERNEL_STRICT_NAMES +typedef __u16 __kernel_dev_t; + typedef __kernel_fd_set fd_set; typedef __kernel_dev_t dev_t; typedef __kernel_ino_t ino_t; |
