|
Directory: /homeI think this does not count files within the subdirectories, reason is, the IFS ACS tool shows more folders and files than this - 31 files, 27 folders in the properties. I think properties there for a folder give data size, not allocated. For a single file it gives both.
Position to : Record : 97 of
New File :
2=Edit 4=Delete File 5=Display 6=Path Size 9=Recursive Delete
Opt Name Size Owner Changed Used CCSID or Symbolic Link
VHAMBERG 19,780K VHAMBERG 03/14/22 07:54 03/26/22 10:16 SUBDIRECTORIES = 19, FILES = 25
The other benefit of the service is getting allocated size vs. actual file size. A jillion little files can take up a lot of (allocated) disk.
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Vern Hamberg via MIDRANGE-L
Sent: Friday, March 25, 2022 7:18 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: Vern Hamberg <vhamberg@xxxxxxxxxxxxxxx>
Subject: Re: calc directory size on IFS
Should be able to get the count there, as well. OP seems to know that
already, but......
Vern
On 3/25/2022 9:04 PM, Jack Woehr via MIDRANGE-L wrote:
*SELECT SUM(ALLOCATED_SIZE) FROM TABLE (
QSYS2.IFS_OBJECT_STATISTICS(START_PATH_NAME => '/home/jwoehr',
SUBTREE_DIRECTORIES => 'YES')*
* );*
This yields
*00001*
*--------*
*13276467200*
On Fri, Mar 25, 2022 at 7:42 PM Vern Hamberg via MIDRANGE-L <
midrange-l@xxxxxxxxxxxxxxxxxx> wrote:
The service is probably the best way to go.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.