mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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>
This commit is contained in:
committed by
Eryu Guan
parent
1e24e5173e
commit
9edb6cd35d
+1
-1
@@ -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 ( ; ; ) {
|
||||
|
||||
Reference in New Issue
Block a user