smb2_lease_key lease_key;
uint32 access_mask;
uint32 share_access;
- uint32 private_options;
timeval time;
udlong share_file_id;
uint32 uid;
struct file_id_buf ftmp;
return talloc_asprintf(ctx, "share_mode_entry[%d]: "
- "pid = %s, share_access = 0x%x, private_options = 0x%x, "
+ "pid = %s, share_access = 0x%x, "
"access_mask = 0x%x, mid = 0x%llx, type= 0x%x, gen_id = %llu, "
"uid = %u, flags = %u, file_id %s, name_hash = 0x%x",
num,
server_id_str_buf(e->pid, &tmp),
- e->share_access, e->private_options,
+ e->share_access,
e->access_mask, (unsigned long long)e->op_mid,
e->op_type, (unsigned long long)e->share_file_id,
(unsigned int)e->uid, (unsigned int)e->flags,
}
/*
- * 132 is the sizeof an ndr-encoded struct share_mode_entry_buf.
+ * 124 is the sizeof an ndr-encoded struct share_mode_entry_buf.
* Reading/writing entries will immediately error out if this
* size differs (push/pull is done without allocs).
*/
struct share_mode_entry_buf {
- uint8_t buf[132];
+ uint8_t buf[124];
};
#define SHARE_MODE_ENTRY_SIZE (sizeof(struct share_mode_entry_buf))
e = (struct share_mode_entry) {
.pid = my_pid,
.share_access = share_access,
- .private_options = fh_get_private_options(fsp->fh),
.access_mask = access_mask,
.op_mid = mid,
.op_type = op_type,
goto fail;
}
- fh_set_private_options(fsp->fh, e.private_options);
fsp_apply_share_entry_flags(fsp, e.flags);
fsp->open_time = e.time;
fsp->access_mask = e.access_mask;
fprintf(stderr,
"unknown-please report ! "
"e->share_access = 0x%x, "
- "e->private_options = 0x%x\n",
+ "e->flags = 0x%x\n",
(unsigned int)e->share_access,
- (unsigned int)e->private_options);
+ (unsigned int)e->flags);
break;
}
}