GOTO(out, result);
LU_OBJECT_HEADER(D_INODE, env, &obj->co_lu,
- "Read ino %lu, %lu bytes, offset %lld, size %llu\n",
+ "Read ino %lu, %zu bytes, offset %lld, size %llu\n",
inode->i_ino, cnt, pos, i_size_read(inode));
/* turn off the kernel's read-ahead */
}
}
if (vio->vui_iocb->ki_pos != (pos + io->ci_nob - nob)) {
- CDEBUG(D_VFSTRACE, "%s: write position mismatch: "
- "ki_pos %lld vs. pos %lld, written %ld, commit %ld "
- "rc %ld\n",
+ CDEBUG(D_VFSTRACE,
+ "%s: write position mismatch: ki_pos %lld vs. pos %lld, written %zd, commit %zd: rc = %zd\n",
file_dentry(file)->d_name.name,
vio->vui_iocb->ki_pos, pos + io->ci_nob - nob,
written, io->ci_nob - nob, result);
if (unlikely(ktime_to_ns(printed) == 0 ||
ktime_after(ktime_get(),
ktime_add_ns(printed,
- 3600*24*NSEC_PER_SEC)))) {
+ 3600ULL * 24 * NSEC_PER_SEC)))) {
LCONSOLE_WARN("jobid: '%s' value too large (%d)\n",
obd_jobid_var, *jobid_len);
printed = ktime_get();
* 32 bits (truncated to the upper limit, if needed)
*/
if (ep_ro > 0xffffffffULL)
- rand = prandom_u32_max((u32)(ep_ro >> 32)) << 32;
+ rand = (u64)prandom_u32_max((u32)(ep_ro >> 32)) << 32;
if (rand == (ep_ro & 0xffffffff00000000ULL))
rand |= prandom_u32_max((u32)ep_ro);
lctl_DEPENDENCIES := liblustreapi.la
lfs_SOURCES = lfs.c lfs_project.c lfs_project.h
-lfs_CFLAGS := -fPIC -I $(top_builddir)/lnet/utils
+lfs_CFLAGS := -fPIC $(AM_CFLAGS) -I $(top_builddir)/lnet/utils
lfs_LDADD := liblustreapi.la -lz
lfs_LDADD += $(top_builddir)/lnet/utils/lnetconfig/liblnetconfig.la
lfs_DEPENDENCIES := liblustreapi.la