src/t_dir_type.c: Use strtoul() instead of atoll()
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Mon, 13 Nov 2017 14:45:26 +0000 (20:15 +0530)
committerEryu Guan <eguan@redhat.com>
Tue, 14 Nov 2017 11:56:21 +0000 (19:56 +0800)
commit9edb6cd35d13e3a6c66b2f8149867d1544a456c1
treeb8f2263afebe7434bb61061e381175a0ee2248ac
parent1e24e5173efa09c9f2dea17ffd7d344f48f77fc9
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>
src/t_dir_type.c