#!/usr/bin/perl -w
#
-# resource syntax:
+# usage:
+# ./mg-allocate [<options>] <resource-spec>...
+#
+# <resource-spec> syntax:
# [!][<type>/]<name>[/<share>] type defaults to 'host'
# type=='S' means 'shared-host'
# share defaults to *
# any one of those options
# option={flag,flag...} means anything
# with all those flags
+#
+# <options>:
+#
+# <duration> Participate in the resource planning system.
+# <duration> is <integer>[<units>], that the resource
+# is expected to be used for. <units> is one of
+# d (days) h (hours) m (minutes) s (seconds)
+# where seconds is the default.
+#
+# -U allocate with high priority (makes sense with
+# specified duration only)
# This is part of "osstest", an automated testing framework for Xen.
# Copyright (C) 2009-2013 Citrix Inc.