Subversion Repositories shark

Rev

Rev 422 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
422 giacomo 1
/*
2
 *  smb_mount.h
3
 *
4
 *  Copyright (C) 1995, 1996 by Paal-Kr. Engstad and Volker Lendecke
5
 *  Copyright (C) 1997 by Volker Lendecke
6
 *
7
 */
8
 
9
#ifndef _LINUX_SMB_MOUNT_H
10
#define _LINUX_SMB_MOUNT_H
11
 
12
#include <linux/types.h>
13
 
14
#define SMB_MOUNT_VERSION       6
15
 
16
struct smb_mount_data {
17
        int version;
18
        __kernel_uid_t mounted_uid; /* Who may umount() this filesystem? */
19
        __kernel_uid_t uid;
20
        __kernel_gid_t gid;
21
        __kernel_mode_t file_mode;
22
        __kernel_mode_t dir_mode;
23
};
24
 
25
 
26
#ifdef __KERNEL__
27
 
28
/* "vers" in big-endian */
29
#define SMB_MOUNT_ASCII 0x76657273
30
 
31
#define SMB_MOUNT_OLDVERSION    6
32
#undef SMB_MOUNT_VERSION
33
#define SMB_MOUNT_VERSION       7
34
 
35
/* flags */
36
#define SMB_MOUNT_WIN95         0x0001  /* Win 95 server */
37
#define SMB_MOUNT_OLDATTR       0x0002  /* Use core getattr (Win 95 speedup) */
38
#define SMB_MOUNT_DIRATTR       0x0004  /* Use find_first for getattr */
39
#define SMB_MOUNT_CASE          0x0008  /* Be case sensitive */
40
#define SMB_MOUNT_UNICODE       0x0010  /* Server talks unicode */
41
 
42
 
43
struct smb_mount_data_kernel {
44
        int version;
45
 
46
        uid_t mounted_uid;      /* Who may umount() this filesystem? */
47
        uid_t uid;
48
        gid_t gid;
49
        mode_t file_mode;
50
        mode_t dir_mode;
51
 
52
        u32 flags;
53
 
54
        /* maximum age in jiffies (inode, dentry and dircache) */
55
        int ttl;
56
 
57
        struct smb_nls_codepage codepage;
58
};
59
 
60
#endif
61
 
62
#endif