VirtualBox

Ignore:
Timestamp:
Aug 20, 2008 9:39:18 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35028
Message:

Linux guest additions: allow to specify dmode, fmode, umask, dmask, fmask when mounting a shared folder. Note: read/write permissions currently not checked by vboxvfs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/vbsfmount.h

    r8155 r11507  
    2222#define VBFS_MOUNT_H
    2323
    24 #define MAX_HOST_NAME 256
    25 #define MAX_NLS_NAME 32
     24#define MAX_HOST_NAME  256
     25#define MAX_NLS_NAME    32
    2626
    2727/* Linux constraints the size of data mount argument to PAGE_SIZE - 1 */
    28 struct vbsf_mount_info {
     28struct vbsf_mount_info_old
     29{
    2930    char name[MAX_HOST_NAME];
    3031    char nls_name[MAX_NLS_NAME];
    31     int uid;
    32     int gid;
    33     int ttl;
     32    int  uid;
     33    int  gid;
     34    int  ttl;
     35};
     36
     37#define VBSF_MOUNT_SIGNATURE_BYTE_0 '\377'
     38#define VBSF_MOUNT_SIGNATURE_BYTE_1 '\376'
     39#define VBSF_MOUNT_SIGNATURE_BYTE_2 '\375'
     40
     41struct vbsf_mount_info_new
     42{
     43    char nullchar;              /* name cannot be '\0' -- we use this field
     44                                   to distinguish between the old structure
     45                                   and the new structure */
     46    char signature[3];          /* signature */
     47    int  length;                /* length of the whole structure */
     48    char name[MAX_HOST_NAME];   /* share name */
     49    char nls_name[MAX_NLS_NAME];/* name of an I/O charset */
     50    int  uid;                   /* user ID for all entries, default 0=root */
     51    int  gid;                   /* group ID for all entries, default 0=root */
     52    int  ttl;                   /* time to live */
     53    int  dmode;                 /* mode for directories if != 0xffffffff */
     54    int  fmode;                 /* mode for regular files if != 0xffffffff */
     55    int  dmask;                 /* umask applied to directories */
     56    int  fmask;                 /* umask applied to regular files */
    3457};
    3558
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette