mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
1da177e4c3
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
65 lines
1.5 KiB
C
65 lines
1.5 KiB
C
/*
|
|
* smb_mount.h
|
|
*
|
|
* Copyright (C) 1995, 1996 by Paal-Kr. Engstad and Volker Lendecke
|
|
* Copyright (C) 1997 by Volker Lendecke
|
|
*
|
|
*/
|
|
|
|
#ifndef _LINUX_SMB_MOUNT_H
|
|
#define _LINUX_SMB_MOUNT_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define SMB_MOUNT_VERSION 6
|
|
|
|
struct smb_mount_data {
|
|
int version;
|
|
__kernel_uid_t mounted_uid; /* Who may umount() this filesystem? */
|
|
__kernel_uid_t uid;
|
|
__kernel_gid_t gid;
|
|
__kernel_mode_t file_mode;
|
|
__kernel_mode_t dir_mode;
|
|
};
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
/* "vers" in big-endian */
|
|
#define SMB_MOUNT_ASCII 0x76657273
|
|
|
|
#define SMB_MOUNT_OLDVERSION 6
|
|
#undef SMB_MOUNT_VERSION
|
|
#define SMB_MOUNT_VERSION 7
|
|
|
|
/* flags */
|
|
#define SMB_MOUNT_WIN95 0x0001 /* Win 95 server */
|
|
#define SMB_MOUNT_OLDATTR 0x0002 /* Use core getattr (Win 95 speedup) */
|
|
#define SMB_MOUNT_DIRATTR 0x0004 /* Use find_first for getattr */
|
|
#define SMB_MOUNT_CASE 0x0008 /* Be case sensitive */
|
|
#define SMB_MOUNT_UNICODE 0x0010 /* Server talks unicode */
|
|
#define SMB_MOUNT_UID 0x0020 /* Use user specified uid */
|
|
#define SMB_MOUNT_GID 0x0040 /* Use user specified gid */
|
|
#define SMB_MOUNT_FMODE 0x0080 /* Use user specified file mode */
|
|
#define SMB_MOUNT_DMODE 0x0100 /* Use user specified dir mode */
|
|
|
|
struct smb_mount_data_kernel {
|
|
int version;
|
|
|
|
uid_t mounted_uid; /* Who may umount() this filesystem? */
|
|
uid_t uid;
|
|
gid_t gid;
|
|
mode_t file_mode;
|
|
mode_t dir_mode;
|
|
|
|
u32 flags;
|
|
|
|
/* maximum age in jiffies (inode, dentry and dircache) */
|
|
int ttl;
|
|
|
|
struct smb_nls_codepage codepage;
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif
|