Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/include/locking.h

    r414 r740  
    3232#define IS_PENDING_LOCK(type) ((type) == PENDING_READ_LOCK || (type) == PENDING_WRITE_LOCK)
    3333
     34#include "librpc/gen_ndr/server_id.h"
     35
    3436/* This contains elements that differentiate locks. The smbpid is a
    3537   client supplied pid, and is essentially the locking context for
     
    3739
    3840struct lock_context {
    39         uint32 smbpid;
     41        uint64_t smblctx;
    4042        uint16 tid;
    4143        struct server_id pid;
     
    4446struct files_struct;
    4547
    46 struct file_id {
    47         /* we don't use SMB_DEV_T and SMB_INO_T as we want a fixed size here,
    48            and we may be using file system specific code to fill in something
    49            other than a dev_t for the device */
    50         uint64_t devid;
    51         uint64_t inode;
    52         uint64_t extid; /* Support systems that use an extended id (e.g. snapshots). */
    53 };
     48#include "../librpc/gen_ndr/file_id.h"
    5449
    5550struct byte_range_lock {
     
    8984        uint64_t offset;
    9085        uint64_t count;
    91         uint32_t lock_pid;
    92         uint32_t blocking_pid; /* PID that blocks us. */
     86        uint64_t smblctx;
     87        uint64_t blocking_smblctx; /* Context that blocks us. */
    9388        enum brl_flavour lock_flav;
    9489        enum brl_type lock_type;
     
    9792};
    9893
     94struct smbd_lock_element {
     95        uint64_t smblctx;
     96        enum brl_type brltype;
     97        uint64_t offset;
     98        uint64_t count;
     99};
     100
    99101#endif /* _LOCKING_H_ */
Note: See TracChangeset for help on using the changeset viewer.