Difference between revisions of "QUERY FREE SPACE (Myth Protocol)"
From MythTV Official Wiki
(adding another example responce that doesnt match the current) |
(→Examples) |
||
Line 16: | Line 16: | ||
Response from proto version 34 with storage groups: | Response from proto version 34 with storage groups: | ||
<pre>170 theP4[]:[]/media/mainlv/mythtv[]:[]1[]:[]-1[]:[]0[]:[]63799104[]:[]0[]:[]61376252[]:[]theP4[]:[]/media/disk/mythtv/data[]:[]0[]:[]-1[]:[]0[]:[]75884640[]:[]0[]:[]73477128</pre> | <pre>170 theP4[]:[]/media/mainlv/mythtv[]:[]1[]:[]-1[]:[]0[]:[]63799104[]:[]0[]:[]61376252[]:[]theP4[]:[]/media/disk/mythtv/data[]:[]0[]:[]-1[]:[]0[]:[]75884640[]:[]0[]:[]73477128</pre> | ||
+ | As of Protocol version 40, response appears to include 9 fields per record rather than 8, as indicated above. New field seems to be inserted somewhere from index 2 to 4 of above (base 0 indexing). | ||
=== Description === | === Description === |
Revision as of 12:16, 8 September 2008
Contents
QUERY_FREE_SPACE
Present in Protocol Versions
All?
Arguments
Command arguments: none
List arguments: none
Examples
Command:
16 QUERY_FREE_SPACE
Response:
34 0[]:[]196014080[]:[]0[]:[]29351936
Response from proto version 34 with storage groups:
170 theP4[]:[]/media/mainlv/mythtv[]:[]1[]:[]-1[]:[]0[]:[]63799104[]:[]0[]:[]61376252[]:[]theP4[]:[]/media/disk/mythtv/data[]:[]0[]:[]-1[]:[]0[]:[]75884640[]:[]0[]:[]73477128
As of Protocol version 40, response appears to include 9 fields per record rather than 8, as indicated above. New field seems to be inserted somewhere from index 2 to 4 of above (base 0 indexing).
Description
Queries the backend for how much space is available on the device being used to store recordings
Returns
- The total size of the drive, in 1K blocks (64-bit value)
- The space used on the drive, in 1K blocks (64-bit value)