Lines Matching refs:recv

540 	struct open_request *recv = data;
546 trace_hmdfs_server_open_enter(con, recv);
555 if (path_contain_dotdot(recv->buf, recv->path_len)) {
560 info->file = hmdfs_open_file(con, recv->buf, recv->file_type,
567 ret = hmdfs_get_open_info(con, recv->file_type, recv->buf, info);
623 struct atomic_open_request *recv,
629 uint32_t open_flags = le32_to_cpu(recv->open_flags);
630 char *path = recv->buf;
631 char *filename = recv->buf + le32_to_cpu(recv->path_len) + 1;
657 le16_to_cpu(recv->mode),
702 struct atomic_open_request *recv,
710 err = hmdfs_lookup_create(con, recv, &child_path, &truncate);
747 struct atomic_open_request *recv = data;
750 char *file_path = recv->buf;
751 char *file = recv->buf + recv->path_len + 1;
753 if (path_contain_dotdot(file_path, recv->path_len)) {
757 if (path_contain_dotdot(file, recv->file_len)) {
769 err = hmdfs_server_do_atomic_open(con, cmd, recv, info, resp);
1325 struct rename_request *recv = data;
1327 old_path_len = le32_to_cpu(recv->old_path_len);
1328 new_path_len = le32_to_cpu(recv->new_path_len);
1329 old_name_len = le32_to_cpu(recv->old_name_len);
1330 new_name_len = le32_to_cpu(recv->new_name_len);
1331 flags = le32_to_cpu(recv->flags);
1333 path_old = recv->path;
1334 path_new = recv->path + old_path_len + 1;
1335 name_old = recv->path + old_path_len + 1 + new_path_len + 1;
1336 name_new = recv->path + old_path_len + 1 + new_path_len + 1 +
1651 struct setattr_request *recv = data;
1654 __u32 valid = le32_to_cpu(recv->valid);
1656 if (path_contain_dotdot(recv->buf, recv->path_len)) {
1667 err = vfs_path_lookup(root_path.dentry, root_path.mnt, recv->buf, 0,
1672 inode = hmdfs_verify_path(dst_path.dentry, recv->buf, con->sbi->sb);
1679 err = hmdfs_lookup_linkpath(con->sbi, recv->buf, &dst_path);
1692 attr.ia_size = le64_to_cpu(recv->size);
1693 attr.ia_mtime.tv_sec = le64_to_cpu(recv->mtime);
1694 attr.ia_mtime.tv_nsec = le32_to_cpu(recv->mtime_nsec);
1740 struct getattr_request *recv = data;
1746 unsigned int recv_flags = le32_to_cpu(recv->lookup_flags);
1749 if (path_contain_dotdot(recv->buf, recv->path_len)) {
1769 err = vfs_path_lookup(root_path.dentry, root_path.mnt, recv->buf,
1774 inode = hmdfs_verify_path(dst_path.dentry, recv->buf, con->sbi->sb);
1781 err = hmdfs_lookup_linkpath(con->sbi, recv->buf, &dst_path);
1839 struct statfs_request *recv = data;
1845 if (path_contain_dotdot(recv->path, recv->path_len)) {
1868 err = vfs_path_lookup(root_path.dentry, root_path.mnt, recv->path, 0,
1871 hmdfs_info("recv->path found failed err = %d", err);
1912 struct getxattr_request *recv = data;
1913 size_t size = le32_to_cpu(recv->size);
1918 char *file_path = recv->buf;
1919 char *name = recv->buf + recv->path_len + 1;
1922 if (path_contain_dotdot(file_path, recv->path_len)) {
1926 if (path_contain_dotdot(name, recv->name_len)) {
1979 struct setxattr_request *recv = data;
1980 size_t size = le32_to_cpu(recv->size);
1981 int flags = le32_to_cpu(recv->flags);
1982 bool del = recv->del;
1985 const char *file_path = recv->buf;
1986 const char *name = recv->buf + recv->path_len + 1;
1987 const void *value = name + recv->name_len + 1;
1990 if (path_contain_dotdot(file_path, recv->path_len)) {
1994 if (path_contain_dotdot(name, recv->name_len)) {
2028 struct listxattr_request *recv = data;
2029 size_t size = le32_to_cpu(recv->size);
2032 const char *file_path = recv->buf;
2037 if (path_contain_dotdot(file_path, recv->path_len)) {