def METHOD_NAME(self, file_path, user_name, new_size, pass_word=""):
    user_info_t = curvefs.UserInfo_t()
    user_info_t.owner = user_name
    user_info_t.password = pass_word
    rc = cbdClient.Extend(file_path, user_info_t, new_size)
    if rc != 0:
        logger.info("extend file fail. rc=%s" %rc)
        return rc
        #raise AssertionError
    else:
        return rc