UAPI: (Scripted) Disintegrate include/linux
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
This commit is contained in:
@@ -33,35 +33,11 @@
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef NFS_IDMAP_H
|
||||
#define NFS_IDMAP_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <uapi/linux/nfs_idmap.h>
|
||||
|
||||
/* XXX from bits/utmp.h */
|
||||
#define IDMAP_NAMESZ 128
|
||||
|
||||
#define IDMAP_TYPE_USER 0
|
||||
#define IDMAP_TYPE_GROUP 1
|
||||
|
||||
#define IDMAP_CONV_IDTONAME 0
|
||||
#define IDMAP_CONV_NAMETOID 1
|
||||
|
||||
#define IDMAP_STATUS_INVALIDMSG 0x01
|
||||
#define IDMAP_STATUS_AGAIN 0x02
|
||||
#define IDMAP_STATUS_LOOKUPFAIL 0x04
|
||||
#define IDMAP_STATUS_SUCCESS 0x08
|
||||
|
||||
struct idmap_msg {
|
||||
__u8 im_type;
|
||||
__u8 im_conv;
|
||||
char im_name[IDMAP_NAMESZ];
|
||||
__u32 im_id;
|
||||
__u8 im_status;
|
||||
};
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
/* Forward declaration to make this header independent of others */
|
||||
struct nfs_client;
|
||||
@@ -97,6 +73,4 @@ int nfs_map_uid_to_name(const struct nfs_server *, __u32, char *, size_t);
|
||||
int nfs_map_gid_to_group(const struct nfs_server *, __u32, char *, size_t);
|
||||
|
||||
extern unsigned int nfs_idmap_cache_timeout;
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
#endif /* NFS_IDMAP_H */
|
||||
|
Reference in New Issue
Block a user