Home
last modified time | relevance | path

Searched refs:old_path_len (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/fs/hmdfs/
Dhmdfs_client.c610 int old_path_len = strlen(old_path); in hmdfs_client_start_rename() local
615 size_t send_len = sizeof(struct rename_request) + old_path_len + 1 + in hmdfs_client_start_rename()
628 rename_req->old_path_len = cpu_to_le32(old_path_len); in hmdfs_client_start_rename()
634 strncpy(rename_req->path, old_path, old_path_len); in hmdfs_client_start_rename()
635 strncpy(rename_req->path + old_path_len + 1, new_path, new_path_len); in hmdfs_client_start_rename()
637 strncpy(rename_req->path + old_path_len + 1 + new_path_len + 1, in hmdfs_client_start_rename()
639 strncpy(rename_req->path + old_path_len + 1 + new_path_len + 1 + in hmdfs_client_start_rename()
Dhmdfs_server.c1309 int old_path_len; in hmdfs_server_rename() local
1320 old_path_len = le32_to_cpu(recv->old_path_len); in hmdfs_server_rename()
1327 path_new = recv->path + old_path_len + 1; in hmdfs_server_rename()
1328 name_old = recv->path + old_path_len + 1 + new_path_len + 1; in hmdfs_server_rename()
1329 name_new = recv->path + old_path_len + 1 + new_path_len + 1 + in hmdfs_server_rename()
1331 if (path_contain_dotdot(path_old, old_path_len)) { in hmdfs_server_rename()
/kernel/linux/linux-5.10/fs/hmdfs/comm/
Dmessage_verify.c534 int str_len[] = { req->old_path_len, req->new_path_len, in verify_rename_req()
537 if (req->old_path_len < 0 || req->old_path_len >= PATH_MAX || in verify_rename_req()
543 if (msg_len != sizeof(*req) + req->old_path_len + 1 + in verify_rename_req()
Dprotocol.h321 __le32 old_path_len; member