@require_admin_context
def volume_get_all(context, marker=None, limit=None, sort_keys=None, sort_dirs=None, filters=None, offset=None):
 session = get_session()
 with session.begin():
  query = _generate_paginate_query(context, session, marker, limit, sort_keys, sort_dirs, filters, offset)
  if (query is None):
   return []
  return query.all()

@ require_admin_context def volume_get_all ( context , marker = None , limit = None , sort_keys = None , sort_dirs = None , filters = None , offset = None ) : session = get_session ( ) with session . begin ( ) : query = _generate_paginate_query ( context , session , marker , limit , sort_keys , sort_dirs , filters , offset ) if ( query is None ) : return [ ] return query . all ( )
retrieves all volumes .