On Windows, ino_t is defined as "unsigned short" (2B), which
isn't large enough to hold the Ceph inodes (uint64_t).
For this reason, we'll avoid using ino_t on Windows.
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
/* Type bits are always set, even when CEPH_STATX_MODE is not */
stx->stx_mode = S_IFMT & in->mode;
- stx->stx_ino = use_faked_inos() ? in->faked_ino : (ino_t)in->ino;
+ stx->stx_ino = use_faked_inos() ? in->faked_ino : (uint64_t)in->ino;
stx->stx_rdev = in->rdev;
stx->stx_mask |= (CEPH_STATX_INO|CEPH_STATX_RDEV);
ll_unclosed_fh_set.insert(*fhp);
}
+ #ifdef _WIN32
+ uint64_t ino = 0;
+ #else
ino_t ino = 0;
+ #endif
if (r >= 0) {
Inode *inode = in->get();
if (use_faked_inos())