Lines Matching refs:path_len
36 int path_len = strlen(send_buf); in hmdfs_send_open() local
37 size_t send_len = sizeof(struct open_request) + path_len + 1; in hmdfs_send_open()
51 open_req->path_len = cpu_to_le32(path_len); in hmdfs_send_open()
414 const char *path, int path_len, in hmdfs_client_start_readdir() argument
418 size_t send_len = sizeof(struct readdir_request) + path_len + 1; in hmdfs_client_start_readdir()
432 req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_readdir()
433 strncpy(req->path, path, path_len); in hmdfs_client_start_readdir()
458 int path_len = strlen(path); in hmdfs_client_start_mkdir() local
460 size_t send_len = sizeof(struct mkdir_request) + path_len + 1 + in hmdfs_client_start_mkdir()
473 mkdir_req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_mkdir()
476 strncpy(mkdir_req->path, path, path_len); in hmdfs_client_start_mkdir()
477 strncpy(mkdir_req->path + path_len + 1, name, name_len); in hmdfs_client_start_mkdir()
505 int path_len = strlen(path); in hmdfs_client_start_create() local
507 size_t send_len = sizeof(struct create_request) + path_len + 1 + in hmdfs_client_start_create()
520 create_req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_create()
524 strncpy(create_req->path, path, path_len); in hmdfs_client_start_create()
525 strncpy(create_req->path + path_len + 1, name, name_len); in hmdfs_client_start_create()
551 int path_len = strlen(path); in hmdfs_client_start_rmdir() local
553 size_t send_len = sizeof(struct rmdir_request) + path_len + 1 + in hmdfs_client_start_rmdir()
565 rmdir_req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_rmdir()
567 strncpy(rmdir_req->path, path, path_len); in hmdfs_client_start_rmdir()
568 strncpy(rmdir_req->path + path_len + 1, name, name_len); in hmdfs_client_start_rmdir()
580 int path_len = strlen(path); in hmdfs_client_start_unlink() local
582 size_t send_len = sizeof(struct unlink_request) + path_len + 1 + in hmdfs_client_start_unlink()
594 unlink_req->path_len = cpu_to_le32(path_len); in hmdfs_client_start_unlink()
596 strncpy(unlink_req->path, path, path_len); in hmdfs_client_start_unlink()
597 strncpy(unlink_req->path + path_len + 1, name, name_len); in hmdfs_client_start_unlink()
653 int path_len = strlen(send_buf); in hmdfs_send_setattr() local
654 size_t send_len = path_len + 1 + sizeof(struct setattr_request); in hmdfs_send_setattr()
666 setattr_req->path_len = cpu_to_le32(path_len); in hmdfs_send_setattr()
710 int path_len = strlen(send_buf); in hmdfs_send_getattr() local
711 size_t send_len = path_len + 1 + sizeof(struct getattr_request); in hmdfs_send_getattr()
723 req->path_len = cpu_to_le32(path_len); in hmdfs_send_getattr()
725 strncpy(req->buf, send_buf, path_len); in hmdfs_send_getattr()
765 int path_len = strlen(path); in hmdfs_send_statfs() local
766 size_t send_len = sizeof(struct statfs_request) + path_len + 1; in hmdfs_send_statfs()
777 req->path_len = cpu_to_le32(path_len); in hmdfs_send_statfs()
778 strncpy(req->path, path, path_len); in hmdfs_send_statfs()
844 size_t path_len = strlen(send_buf); in hmdfs_send_getxattr() local
846 size_t send_len = path_len + name_len + in hmdfs_send_getxattr()
859 req->path_len = cpu_to_le32(path_len); in hmdfs_send_getxattr()
862 strncpy(req->buf, send_buf, path_len); in hmdfs_send_getxattr()
863 strncpy(req->buf + path_len + 1, name, name_len); in hmdfs_send_getxattr()
882 size_t path_len = strlen(send_buf); in hmdfs_send_setxattr() local
884 size_t send_len = path_len + name_len + size + 2 + in hmdfs_send_setxattr()
897 req->path_len = cpu_to_le32(path_len); in hmdfs_send_setxattr()
901 strncpy(req->buf, send_buf, path_len); in hmdfs_send_setxattr()
902 strncpy(req->buf + path_len + 1, name, name_len); in hmdfs_send_setxattr()
904 memcpy(req->buf + path_len + name_len + 2, value, size); in hmdfs_send_setxattr()
932 size_t path_len = strlen(send_buf); in hmdfs_send_listxattr() local
933 size_t send_len = path_len + 1 + sizeof(struct listxattr_request); in hmdfs_send_listxattr()
945 req->path_len = cpu_to_le32(path_len); in hmdfs_send_listxattr()
947 strncpy(req->buf, send_buf, path_len); in hmdfs_send_listxattr()
1004 int path_len = strlen(path); in hmdfs_send_drop_push() local
1005 size_t send_len = sizeof(struct drop_push_request) + path_len + 1; in hmdfs_send_drop_push()
1016 dp_req->path_len = cpu_to_le32(path_len); in hmdfs_send_drop_push()
1017 strncpy(dp_req->path, path, path_len); in hmdfs_send_drop_push()