fizwit / filesystem-reporting-tools

Tools to help system administors manage very large file systems. pwalk
GNU General Public License v2.0
22 stars 12 forks source link

inode overflow? #20

Closed bmcgough closed 4 years ago

bmcgough commented 4 years ago
$ pwalk . | grep README.md
-7392345534370480438,-4964406081579108841,0,"./README.md","md",9999,9999,2479,83,5,1,"0100644",1520682833,1505342248,1574014519,-1,0
$ stat README.md
  File: ‘README.md’
  Size: 2479        Blocks: 5          IO Block: 524288 regular file
Device: 53h/83d Inode: 11054398539339071178  Links: 1
Access: (0644/-rw-r--r--)  Uid: (9999/xxx)   Gid: (9999/xxx)
Access: 2018-03-10 03:53:53.000000000 -0800
Modify: 2017-09-13 15:37:28.000000000 -0700
Change: 2019-11-17 10:15:19.000000000 -0800
 Birth: -

We are using BeeGFS, which has very long inode numbers. It appears on my system that stat is getting it right, so pwalk should probably detect the type of the inode in the stat struct and set parent inode to the same?

fizwit commented 4 years ago

fixed with commit 2a391f145a92f9b1dc6d8c166c9f4f8c5c9136ae