'Set the diskspace quota of a given path.
@param path The path to the given hdfs resource
@param size The amount of bytes that a given subtree of files can grow to.'

@_coerce_exceptions
def set_diskspace_quota(self, path, size):

    path = encode_fs_path(path)
    if (normpath(path) == '/'):
        raise ValueError('Cannot    set    quota    for    "/"')
    if (size < 0):
        raise ValueError('The    size    quota    should    be    0    or    positive    or    unset')
    self.nn_client.setQuota(self.request_context, normpath(path), QUOTA_DONT_SET, size)
