Software Development Kit (SDK) and API Discussions
which API gives the export information of the qtree. i need to know what are are the protocols(nfs/cifs/both) supported by the qtree thru' API.
if a volume contains multiple qtrees then how to get the filesystem size per qtree.
See The Solution
Are you questions for clustered ONTAP or 7-mode?
- Rick -
the questions are for ONTAP 7-mode.
1. Which API gives the export information of the qtree?
What information are you looking for? The nfs-exportfs-list-rules-2 gives the rules for the exports including a qtree.
2. I need to know what are are the protocols(nfs/cifs/both) supported by the qtree thru' API.
For CIFS, use the cifs-share-list-iter-start/next/finish. If the qtree is in both the CIFS list and the NFS exportfs list, then the qtree can be
accessed by both protocols.
3. If a volume contains multiple qtrees, then how to get the filesystem size per qtree?
There are two answers: use quotas or sum all the file sizes in the qtree.
Once a quota is added to a qtree, quota-report-iter-start/next/end can be used to obtain how much space the qtree is using.
Using file-list-directory-iter-start/next/end, you can obtain all the file sizes in the qtree directory and sum them.
I recommend using quotas.
View solution in original post