def _xfs_info_get_kv(serialized):
 if serialized.startswith('='):
  serialized = serialized[1:].strip()
 serialized = serialized.replace(' = ', '=*** ').replace(' =', '=')
 opt = []
 for tkn in serialized.split(' '):
  if ((not opt) or ('=' in tkn)):
   opt.append(tkn)
  else:
   opt[(len(opt) - 1)] = ((opt[(len(opt) - 1)] + ' ') + tkn)
 return [tuple(items.split('=')) for items in opt]

def _xfs_info_get_kv ( serialized ) : if serialized . startswith ( '=' ) : serialized = serialized [ 1 : ] . strip ( ) serialized = serialized . replace ( ' = ' , '=*** ' ) . replace ( ' =' , '=' ) opt = [ ] for tkn in serialized . split ( ' ' ) : if ( ( not opt ) or ( '=' in tkn ) ) : opt . append ( tkn ) else : opt [ ( len ( opt ) - 1 ) ] = ( ( opt [ ( len ( opt ) - 1 ) ] + ' ' ) + tkn ) return [ tuple ( items . split ( '=' ) ) for items in opt ]
parse one line of the xfs info output .