~henrix/ubuntu/precise/open-vm-dkms/lp-1416003

« back to all changes in this revision

Viewing changes to modules/freebsd/vmhgfs/hgfsProto.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-10-23 15:32:00 UTC
  • mfrom: (1.1.2 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081023153200-gc1bfx89hj35c799
Tags: 2008.10.10-123053-2
* Correcting typo in dh_installinit call.
* Downgrading depends on module-assistant to recommends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
339
339
#define HGFS_ATTR_VALID_USERID            (1 << 12)
340
340
#define HGFS_ATTR_VALID_GROUPID           (1 << 13)
341
341
#define HGFS_ATTR_VALID_FILEID            (1 << 14)
 
342
#define HGFS_ATTR_VALID_VOLID             (1 << 15)
 
343
/* 
 
344
 * Add our file and volume identifiers.
 
345
 * NOTE: On Windows hosts, the file identifier is not guaranteed to be valid
 
346
 *       particularly with FAT. A defrag operation could cause it to change.
 
347
 *       Therefore, to not confuse older clients, and non-Windows
 
348
 *       clients we have added a separate flag.
 
349
 *       The Windows client will check for both flags for the
 
350
 *       file ID, and return the information to the guest application.
 
351
 *       However, it will use the ID internally, when it has an open
 
352
 *       handle on the server.
 
353
 *       Non-Windows clients need the file ID to be always guaranteed,
 
354
 *       which is to say, that the ID remains constant over the course of the
 
355
 *       file's lifetime, and will use the HGFS_ATTR_VALID_FILEID flag
 
356
 *       only to determine if the ID is valid.
 
357
 */
 
358
#define HGFS_ATTR_VALID_NON_STATIC_FILEID (1 << 16)
342
359
 
343
360
 
344
361
/*
382
399
   uint32 userId;                /* User identifier, ignored by Windows */
383
400
   uint32 groupId;               /* group identifier, ignored by Windows */
384
401
   uint64 hostFileId;            /* File Id of the file on host: inode_t on Linux */
385
 
   uint64 reserved1;             /* Reserved for future use */
 
402
   uint32 volumeId;              /* volume identifier, non-zero is valid. */
 
403
   uint32 reserved1;             /* Reserved for future use */
386
404
   uint64 reserved2;             /* Reserved for future use */
387
405
}
388
406
#include "vmware_pack_end.h"