Interact with the given pool. Required by most commands.
+.. option:: --pgid
+
+ As an alternative to ``--pool``, ``--pgid`` also allow users to specify the
+ PG id to which the command will be directed. With this option, certain
+ commands like ``ls`` allow users to limit the scope of the command to the given PG.
+
.. option:: -s snap, --snap snap
Read from the given pool snapshot. Valid for all pool-specific read operations.
List the watchers of object name.
:command:`ls` *outfile*
- List objects in given pool and write to outfile.
+ List objects in the given pool and write to outfile. Instead of ``--pool`` if ``--pgid`` will be specified, ``ls`` will only list the objects in the given PG.
:command:`lssnap`
List snapshots for given pool.
rados -p foo ls -
+To get a list of objects in PG 0.6::
+
+ rados --pgid 0.6 ls
+
To write an object::
rados -p foo put myobject blah.txt
"\n"
"SCRUB AND REPAIR:\n"
" list-inconsistent-pg <pool> list inconsistent PGs in given pool\n"
-" list-inconsistent-obj <pgid> list inconsistent objects in given pg\n"
-" list-inconsistent-snapset <pgid> list inconsistent snapsets in the given pg\n"
+" list-inconsistent-obj <pgid> list inconsistent objects in given PG\n"
+" list-inconsistent-snapset <pgid> list inconsistent snapsets in the given PG\n"
"\n"
"CACHE POOLS: (for testing/development only)\n"
" cache-flush <obj-name> flush cache pool object (blocking)\n"
" select given pool by name\n"
" --target-pool=pool\n"
" select target pool by name\n"
+" --pgid PG id\n"
+" select given PG id\n"
" -f [--format plain|json|json-pretty]\n"
" --format=[--format plain|json|json-pretty]\n"
" -b op_size\n"