From: Wilson, S. M <st...@pu...> - 2016-02-11 18:40:05
|
Hi, I have a suggested improvement for mfsdirinfo. It would be good if it could handle hard links so that file size is only counted once for each file that has multiple hard links. For example, if I create a directory (named "testdir") with a ~1GB file in it and then type "mfsdirinfo -s testdir" I will see that the size is 1028734976. Now if I create a hard link to that file in "testdir" and re-run the mfsdirinfo command I'll see that the size of the directory is now doubled to 2057469952. I would like the behavior to be the same as the du command which shows the same size before and after making the hard link. Another suggestion for mfsdirinfo would be to add an option like the "-L" option (dereference symbolic links) to the du command. This would allow me to get accurate space usage summaries even though some of the lower-level directories might be symbolic links. Thanks! Steve |