7mode?

 

From a quick look I don’t see that in the data returned on volumes. There is a ‘snapshot_volume_info’ call that returns ‘Total bytes that when exhausted will disable us from taking snapshots’  - which I take to mean free space in the snapshot area. The bad news is that it appears you have to call it with a volume name (though I’ve not tested running it without). So you’d have for call for each volume, and then calculate the used based on reserve and free space.

 

That’s all I’ve found so far…

 

--rdp

 

From: toasters-bounces@teaparty.net [mailto:toasters-bounces@teaparty.net] On Behalf Of Edward Rolison
Sent: Thursday, April 23, 2015 8:58 AM
To: toasters@teaparty.net
Subject: API calls to replicate a 'df'

 

I'm currently fiddling with a project using the ONTAPI (perf stats monitoring sort of thing).

What I'm wanting to do is reproduce the information from 'df' and 'df -s'. 


Doing well so far, because the api 'volume-list-info' seems to have most of the information I want.
There's just one thing missing - how much of the 'snap reserve' I'm actually using. 

I can't seem to find it in either that, or the 'snapshot' counters. I would ideally be able to do this without having to do a per-volume calculation, because one of the things I'm hoping to do is support a lightweight proxy client that 'just' fetches source XML for processing on a server. 

Or is there a way I can calculate this from the size/used/available in the volume-list-info? 

Thanks,
Ed