struct lu_attr *attr = &tti->tti_attr;
struct lu_fid *fid = NULL;
struct obdo *wobdo;
- int size;
+ size_t size;
int rc;
ENTRY;
dof->dof_type = dt_mode_to_dft(attr->la_mode);
if (update->ou_params_count > 1) {
- int size;
-
fid = object_update_param_get(update, 1, &size);
if (fid == NULL || size != sizeof(*fid)) {
CERROR("%s: invalid fid: rc = %d\n",
struct dt_object *obj = tti->tti_u.update.tti_dt_object;
struct obdo *lobdo = &tti->tti_u.update.tti_obdo;
struct obdo *wobdo;
- int size;
+ size_t size;
int rc;
ENTRY;
char *name;
char *buf;
__u32 *tmp;
- int buf_len = 0;
+ size_t buf_len = 0;
int flag;
- int size = 0;
+ size_t size = 0;
int rc;
ENTRY;
tmp = object_update_param_get(update, 2, &size);
if (tmp == NULL || size != sizeof(*tmp)) {
- CERROR("%s: emptry or wrong size %d flag: rc = %d\n",
+ CERROR("%s: emptry or wrong size %zd flag: rc = %d\n",
tgt_name(tsi->tsi_tgt), size, -EPROTO);
RETURN(err_serious(-EPROTO));
}
char *name;
__u32 *ptype;
int rc = 0;
- int size;
+ size_t size;
ENTRY;
name = object_update_param_get(update, 0, NULL);
struct lu_buf *lbuf = &tti->tti_buf;
char *buf;
__u64 *tmp;
- int size = 0;
- int buf_len = 0;
+ size_t size = 0;
+ size_t buf_len = 0;
loff_t pos;
int rc;
ENTRY;
tmp = object_update_param_get(update, 1, &size);
if (tmp == NULL || size != sizeof(*tmp)) {
- CERROR("%s: empty or wrong size %d pos: rc = %d\n",
+ CERROR("%s: empty or wrong size %zd pos: rc = %d\n",
tgt_name(tsi->tsi_tgt), size, -EPROTO);
RETURN(err_serious(-EPROTO));
}