diff options
author | Chandan Rajendra <chandan@linux.vnet.ibm.com> | 2017-11-13 20:15:26 +0530 |
---|---|---|
committer | Eryu Guan <eguan@redhat.com> | 2017-11-14 19:56:21 +0800 |
commit | 9edb6cd35d13e3a6c66b2f8149867d1544a456c1 (patch) | |
tree | b8f2263afebe7434bb61061e381175a0ee2248ac | |
parent | 1e24e5173efa09c9f2dea17ffd7d344f48f77fc9 (diff) | |
download | xfstests-9edb6cd35d13e3a6c66b2f8149867d1544a456c1.tar.gz |
src/t_dir_type.c: Use strtoul() instead of atoll()
An overlayfs filesystem instance with one lowerdir filesystem and
with "xino" mount option enabled can have the layer index encoded in
the 63rd bit of the inode number. A signed 64 bit integer won't
suffice to store this inode number. Hence this commit uses strtoul()
to convert the inode number in string form to unsigned integer form.
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
-rw-r--r-- | src/t_dir_type.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_dir_type.c b/src/t_dir_type.c index 76aaa9bb4b..7bba3043e9 100644 --- a/src/t_dir_type.c +++ b/src/t_dir_type.c @@ -85,7 +85,7 @@ main(int argc, char *argv[]) break; /* no match ends up with type = -1 */ if (type < 0) - ino = atoll(argv[2]); + ino = strtoul(argv[2], NULL, 10); } for ( ; ; ) { |