From 18d0c6d3ba8df654d99677ab070037d6c0d9c055 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Mon, 22 Sep 2003 22:52:09 -0700 Subject: [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. --- include/linux/dm-ioctl-v1.h | 4 ++-- include/linux/types.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include/linux') 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; -- cgit v1.2.3