tag | line | file | source code |
server | 643 | arch/sparc/kernel/sys_sunos.c | struct sockaddr_in server; |
server | 670 | arch/sparc/kernel/sys_sunos.c | server.sin_family = AF_INET; |
server | 671 | arch/sparc/kernel/sys_sunos.c | server.sin_addr = addr->sin_addr; |
server | 672 | arch/sparc/kernel/sys_sunos.c | server.sin_port = NFS_PORT; |
server | 675 | arch/sparc/kernel/sys_sunos.c | ret = socket->ops->connect (socket, (struct sockaddr *) &server, |
server | 676 | arch/sparc/kernel/sys_sunos.c | sizeof (server), file->f_flags); |
server | 33 | fs/ncpfs/dir.c | ncp_read_volume_list(struct ncp_server *server, int start_with, |
server | 37 | fs/ncpfs/dir.c | ncp_do_readdir(struct ncp_server *server, struct inode *dir, int fpos, |
server | 135 | fs/ncpfs/dir.c | ncp_single_volume(struct ncp_server *server) |
server | 137 | fs/ncpfs/dir.c | return (server->m.mounted_vol[0] != '\0'); |
server | 141 | fs/ncpfs/dir.c | ncp_info_ino(struct ncp_server *server, struct ncp_inode_info *info) |
server | 143 | fs/ncpfs/dir.c | return ncp_single_volume(server) |
server | 159 | fs/ncpfs/dir.c | struct ncp_server *server = NCP_SERVER(inode); |
server | 160 | fs/ncpfs/dir.c | struct ncp_inode_info *root = &(server->root); |
server | 167 | fs/ncpfs/dir.c | if (ino == ncp_info_ino(server, this)) |
server | 218 | fs/ncpfs/dir.c | struct ncp_server *server = NCP_SERVER(inode); |
server | 231 | fs/ncpfs/dir.c | if (!ncp_conn_valid(server)) |
server | 254 | fs/ncpfs/dir.c | ncp_info_ino(server, dir)) < 0) |
server | 264 | fs/ncpfs/dir.c | ncp_info_ino(server, dir->dir)) < 0) |
server | 296 | fs/ncpfs/dir.c | entries = ncp_read_volume_list(server, filp->f_pos, |
server | 303 | fs/ncpfs/dir.c | entries = ncp_do_readdir(server, inode, filp->f_pos, |
server | 344 | fs/ncpfs/dir.c | if (ncp_single_volume(server)) |
server | 395 | fs/ncpfs/dir.c | ncp_read_volume_list(struct ncp_server *server, int fpos, int cache_size) |
server | 414 | fs/ncpfs/dir.c | if (ncp_get_volume_info_with_number(server, i, &info) != 0) |
server | 435 | fs/ncpfs/dir.c | if (ncp_lookup_volume(server, |
server | 454 | fs/ncpfs/dir.c | ncp_do_readdir(struct ncp_server *server, struct inode *dir, int fpos, |
server | 484 | fs/ncpfs/dir.c | if (ncp_initialize_search(server, NCP_ISTRUCT(dir), &seq)!=0) |
server | 493 | fs/ncpfs/dir.c | if (ncp_search_for_file_or_subdir(server, &seq, |
server | 641 | fs/ncpfs/dir.c | ncp_init_root(struct ncp_server *server) |
server | 643 | fs/ncpfs/dir.c | struct ncp_inode_info *root = &(server->root); |
server | 647 | fs/ncpfs/dir.c | DPRINTK("ncp_init_root: server %s\n", server->m.server_name); |
server | 669 | fs/ncpfs/dir.c | ncp_conn_logged_in(struct ncp_server *server) |
server | 671 | fs/ncpfs/dir.c | if (server->m.mounted_vol[0] == '\0') |
server | 676 | fs/ncpfs/dir.c | str_upper(server->m.mounted_vol); |
server | 677 | fs/ncpfs/dir.c | if (ncp_lookup_volume(server, server->m.mounted_vol, |
server | 678 | fs/ncpfs/dir.c | &(server->root.finfo.i)) != 0) |
server | 682 | fs/ncpfs/dir.c | str_lower(server->root.finfo.i.entryName); |
server | 688 | fs/ncpfs/dir.c | ncp_free_all_inodes(struct ncp_server *server) |
server | 694 | fs/ncpfs/dir.c | struct ncp_inode_info *root = &(server->root); |
server | 719 | fs/ncpfs/dir.c | struct ncp_server *server = NCP_SERVER(dir); |
server | 721 | fs/ncpfs/dir.c | struct ncp_inode_info *result = &(server->root); |
server | 738 | fs/ncpfs/dir.c | && (result != &(server->root))) |
server | 745 | fs/ncpfs/dir.c | while (result != &(server->root)); |
server | 755 | fs/ncpfs/dir.c | struct ncp_server *server; |
server | 769 | fs/ncpfs/dir.c | server = NCP_SERVER(dir); |
server | 771 | fs/ncpfs/dir.c | if (!ncp_conn_valid(server)) |
server | 796 | fs/ncpfs/dir.c | *result = iget(dir->i_sb, ncp_info_ino(server, parent)); |
server | 822 | fs/ncpfs/dir.c | *result = iget(dir->i_sb, ncp_info_ino(server, result_info)); |
server | 873 | fs/ncpfs/dir.c | res = ncp_lookup_volume(server, name, &(finfo.i)); |
server | 877 | fs/ncpfs/dir.c | res = ncp_obtain_info(server, |
server | 161 | fs/ncpfs/inode.c | struct ncp_server *server; |
server | 212 | fs/ncpfs/inode.c | server = (struct ncp_server *)ncp_kmalloc(sizeof(struct ncp_server), |
server | 215 | fs/ncpfs/inode.c | if (server == NULL) |
server | 227 | fs/ncpfs/inode.c | NCP_SBP(sb) = server; |
server | 235 | fs/ncpfs/inode.c | server->ncp_filp = ncp_filp; |
server | 236 | fs/ncpfs/inode.c | server->wdog_filp = wdog_filp; |
server | 237 | fs/ncpfs/inode.c | server->msg_filp = msg_filp; |
server | 238 | fs/ncpfs/inode.c | server->lock = 0; |
server | 239 | fs/ncpfs/inode.c | server->wait = NULL; |
server | 240 | fs/ncpfs/inode.c | server->packet = NULL; |
server | 241 | fs/ncpfs/inode.c | server->buffer_size = 0; |
server | 242 | fs/ncpfs/inode.c | server->conn_status = 0; |
server | 244 | fs/ncpfs/inode.c | server->m = *data; |
server | 245 | fs/ncpfs/inode.c | server->m.file_mode = (server->m.file_mode & |
server | 247 | fs/ncpfs/inode.c | server->m.dir_mode = (server->m.dir_mode & |
server | 251 | fs/ncpfs/inode.c | server->m.mount_point[sizeof(server->m.mount_point)-1] = '\0'; |
server | 253 | fs/ncpfs/inode.c | server->packet_size = NCP_PACKET_SIZE; |
server | 254 | fs/ncpfs/inode.c | server->packet = ncp_kmalloc(NCP_PACKET_SIZE, GFP_KERNEL); |
server | 256 | fs/ncpfs/inode.c | if (server->packet == NULL) |
server | 268 | fs/ncpfs/inode.c | if (ncp_catch_watchdog(server) != 0) |
server | 276 | fs/ncpfs/inode.c | if (ncp_catch_message(server) != 0) |
server | 279 | fs/ncpfs/inode.c | ncp_dont_catch_watchdog(server); |
server | 285 | fs/ncpfs/inode.c | ncp_lock_server(server); |
server | 286 | fs/ncpfs/inode.c | error = ncp_connect(server); |
server | 287 | fs/ncpfs/inode.c | ncp_unlock_server(server); |
server | 295 | fs/ncpfs/inode.c | ncp_kfree_s(server->packet, server->packet_size); |
server | 296 | fs/ncpfs/inode.c | ncp_dont_catch_watchdog(server); |
server | 302 | fs/ncpfs/inode.c | ncp_init_root(server); |
server | 304 | fs/ncpfs/inode.c | if (!(sb->s_mounted = iget(sb, ncp_info_ino(server, &(server->root))))) |
server | 311 | fs/ncpfs/inode.c | if (ncp_negotiate_buffersize(server, NCP_DEFAULT_BUFSIZE, |
server | 312 | fs/ncpfs/inode.c | &(server->buffer_size)) != 0) |
server | 319 | fs/ncpfs/inode.c | DPRINTK("ncpfs: bufsize = %d\n", server->buffer_size); |
server | 325 | fs/ncpfs/inode.c | ncp_lock_server(server); |
server | 326 | fs/ncpfs/inode.c | ncp_disconnect(server); |
server | 327 | fs/ncpfs/inode.c | ncp_unlock_server(server); |
server | 328 | fs/ncpfs/inode.c | ncp_kfree_s(server->packet, server->packet_size); |
server | 329 | fs/ncpfs/inode.c | ncp_dont_catch_watchdog(server); |
server | 341 | fs/ncpfs/inode.c | struct ncp_server *server = NCP_SBP(sb); |
server | 345 | fs/ncpfs/inode.c | ncp_lock_server(server); |
server | 346 | fs/ncpfs/inode.c | ncp_disconnect(server); |
server | 347 | fs/ncpfs/inode.c | ncp_unlock_server(server); |
server | 349 | fs/ncpfs/inode.c | close_fp(server->ncp_filp); |
server | 351 | fs/ncpfs/inode.c | ncp_dont_catch_watchdog(server); |
server | 352 | fs/ncpfs/inode.c | close_fp(server->wdog_filp); |
server | 353 | fs/ncpfs/inode.c | close_fp(server->msg_filp); |
server | 355 | fs/ncpfs/inode.c | ncp_free_all_inodes(server); |
server | 357 | fs/ncpfs/inode.c | ncp_kfree_s(server->packet, server->packet_size); |
server | 371 | fs/ncpfs/inode.c | ncp_trigger_message(struct ncp_server *server) |
server | 374 | fs/ncpfs/inode.c | char command[ sizeof(server->m.mount_point) |
server | 378 | fs/ncpfs/inode.c | if (server == NULL) |
server | 385 | fs/ncpfs/inode.c | server->m.mount_point); |
server | 390 | fs/ncpfs/inode.c | strcat(command, server->m.mount_point); |
server | 24 | fs/ncpfs/ioctl.c | struct ncp_server *server = NCP_SERVER(inode); |
server | 50 | fs/ncpfs/ioctl.c | && (current->uid != server->m.mounted_uid)) |
server | 77 | fs/ncpfs/ioctl.c | ncp_lock_server(server); |
server | 82 | fs/ncpfs/ioctl.c | server->has_subfunction = 0; |
server | 83 | fs/ncpfs/ioctl.c | server->current_size = request.size; |
server | 84 | fs/ncpfs/ioctl.c | memcpy_fromfs(server->packet, request.data, request.size); |
server | 86 | fs/ncpfs/ioctl.c | ncp_request(server, request.function); |
server | 89 | fs/ncpfs/ioctl.c | server->reply_size); |
server | 90 | fs/ncpfs/ioctl.c | memcpy_tofs(request.data, server->packet, server->reply_size); |
server | 92 | fs/ncpfs/ioctl.c | ncp_unlock_server(server); |
server | 94 | fs/ncpfs/ioctl.c | return server->reply_size; |
server | 99 | fs/ncpfs/ioctl.c | && (current->uid != server->m.mounted_uid)) |
server | 104 | fs/ncpfs/ioctl.c | return ncp_conn_logged_in(server); |
server | 109 | fs/ncpfs/ioctl.c | && (current->uid != server->m.mounted_uid)) |
server | 129 | fs/ncpfs/ioctl.c | info.addr = server->m.serv_addr; |
server | 130 | fs/ncpfs/ioctl.c | info.mounted_uid = server->m.mounted_uid; |
server | 131 | fs/ncpfs/ioctl.c | info.connection = server->connection; |
server | 132 | fs/ncpfs/ioctl.c | info.buffer_size = server->buffer_size; |
server | 142 | fs/ncpfs/ioctl.c | && (current->uid != server->m.mounted_uid)) |
server | 152 | fs/ncpfs/ioctl.c | put_fs_word(server->m.mounted_uid, (uid_t*) arg); |
server | 20 | fs/ncpfs/ncplib_kernel.c | assert_server_locked(struct ncp_server *server) |
server | 22 | fs/ncpfs/ncplib_kernel.c | if (server->lock == 0) |
server | 29 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(struct ncp_server *server, byte x) |
server | 31 | fs/ncpfs/ncplib_kernel.c | assert_server_locked(server); |
server | 32 | fs/ncpfs/ncplib_kernel.c | *(byte *)(&(server->packet[server->current_size])) = x; |
server | 33 | fs/ncpfs/ncplib_kernel.c | server->current_size += 1; |
server | 38 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(struct ncp_server *server, word x) |
server | 40 | fs/ncpfs/ncplib_kernel.c | assert_server_locked(server); |
server | 41 | fs/ncpfs/ncplib_kernel.c | *(word *)(&(server->packet[server->current_size])) = x; |
server | 42 | fs/ncpfs/ncplib_kernel.c | server->current_size += 2; |
server | 47 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(struct ncp_server *server, dword x) |
server | 49 | fs/ncpfs/ncplib_kernel.c | assert_server_locked(server); |
server | 50 | fs/ncpfs/ncplib_kernel.c | *(dword *)(&(server->packet[server->current_size])) = x; |
server | 51 | fs/ncpfs/ncplib_kernel.c | server->current_size += 4; |
server | 56 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem(struct ncp_server *server, const void *source, int size) |
server | 58 | fs/ncpfs/ncplib_kernel.c | assert_server_locked(server); |
server | 59 | fs/ncpfs/ncplib_kernel.c | memcpy(&(server->packet[server->current_size]), source, size); |
server | 60 | fs/ncpfs/ncplib_kernel.c | server->current_size += size; |
server | 65 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem_fromfs(struct ncp_server *server, const char *source, int size) |
server | 67 | fs/ncpfs/ncplib_kernel.c | assert_server_locked(server); |
server | 68 | fs/ncpfs/ncplib_kernel.c | memcpy_fromfs(&(server->packet[server->current_size]), source, size); |
server | 69 | fs/ncpfs/ncplib_kernel.c | server->current_size += size; |
server | 74 | fs/ncpfs/ncplib_kernel.c | ncp_add_pstring(struct ncp_server *server, const char *s) |
server | 77 | fs/ncpfs/ncplib_kernel.c | assert_server_locked(server); |
server | 83 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, len); |
server | 84 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem(server, s, len); |
server | 89 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(struct ncp_server *server) |
server | 91 | fs/ncpfs/ncplib_kernel.c | ncp_lock_server(server); |
server | 93 | fs/ncpfs/ncplib_kernel.c | server->current_size = sizeof(struct ncp_request_header); |
server | 94 | fs/ncpfs/ncplib_kernel.c | server->has_subfunction = 0; |
server | 98 | fs/ncpfs/ncplib_kernel.c | ncp_init_request_s(struct ncp_server *server, int subfunction) |
server | 100 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 101 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, 0); /* preliminary size */ |
server | 103 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, subfunction); |
server | 105 | fs/ncpfs/ncplib_kernel.c | server->has_subfunction = 1; |
server | 109 | fs/ncpfs/ncplib_kernel.c | ncp_reply_data(struct ncp_server *server, int offset) |
server | 111 | fs/ncpfs/ncplib_kernel.c | return &(server->packet[sizeof(struct ncp_reply_header) + offset]); |
server | 115 | fs/ncpfs/ncplib_kernel.c | ncp_reply_byte(struct ncp_server *server, int offset) |
server | 117 | fs/ncpfs/ncplib_kernel.c | return *(byte *)(ncp_reply_data(server, offset)); |
server | 121 | fs/ncpfs/ncplib_kernel.c | ncp_reply_word(struct ncp_server *server, int offset) |
server | 123 | fs/ncpfs/ncplib_kernel.c | return *(word *)(ncp_reply_data(server, offset)); |
server | 127 | fs/ncpfs/ncplib_kernel.c | ncp_reply_dword(struct ncp_server *server, int offset) |
server | 129 | fs/ncpfs/ncplib_kernel.c | return *(dword *)(ncp_reply_data(server, offset)); |
server | 133 | fs/ncpfs/ncplib_kernel.c | ncp_negotiate_buffersize(struct ncp_server *server, |
server | 138 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 139 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, htons(size)); |
server | 141 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 33)) != 0) |
server | 143 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 147 | fs/ncpfs/ncplib_kernel.c | *target =min(ntohs(ncp_reply_word(server, 0)), size); |
server | 149 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 154 | fs/ncpfs/ncplib_kernel.c | ncp_get_volume_info_with_number(struct ncp_server *server, int n, |
server | 160 | fs/ncpfs/ncplib_kernel.c | ncp_init_request_s(server, 44); |
server | 161 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, n); |
server | 163 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 22)) != 0) |
server | 165 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 169 | fs/ncpfs/ncplib_kernel.c | target->total_blocks = ncp_reply_dword(server, 0); |
server | 170 | fs/ncpfs/ncplib_kernel.c | target->free_blocks = ncp_reply_dword(server, 4); |
server | 171 | fs/ncpfs/ncplib_kernel.c | target->purgeable_blocks = ncp_reply_dword(server, 8); |
server | 172 | fs/ncpfs/ncplib_kernel.c | target->not_yet_purgeable_blocks = ncp_reply_dword(server, 12); |
server | 173 | fs/ncpfs/ncplib_kernel.c | target->total_dir_entries = ncp_reply_dword(server, 16); |
server | 174 | fs/ncpfs/ncplib_kernel.c | target->available_dir_entries = ncp_reply_dword(server, 20); |
server | 175 | fs/ncpfs/ncplib_kernel.c | target->sectors_per_block = ncp_reply_byte(server, 28); |
server | 179 | fs/ncpfs/ncplib_kernel.c | len = ncp_reply_byte(server, 29); |
server | 183 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 187 | fs/ncpfs/ncplib_kernel.c | memcpy(&(target->volume_name), ncp_reply_data(server, 30), len); |
server | 188 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 193 | fs/ncpfs/ncplib_kernel.c | ncp_get_volume_number(struct ncp_server *server, const char *name, int *target) |
server | 197 | fs/ncpfs/ncplib_kernel.c | ncp_init_request_s(server, 5); |
server | 198 | fs/ncpfs/ncplib_kernel.c | ncp_add_pstring(server, name); |
server | 200 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 22)) != 0) |
server | 202 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 206 | fs/ncpfs/ncplib_kernel.c | *target = ncp_reply_byte(server, 0); |
server | 207 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 212 | fs/ncpfs/ncplib_kernel.c | ncp_close_file(struct ncp_server *server, const char *file_id) |
server | 216 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 217 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); |
server | 218 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem(server, file_id, 6); |
server | 220 | fs/ncpfs/ncplib_kernel.c | result = ncp_request(server, 66); |
server | 221 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 226 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(struct ncp_server *server, |
server | 231 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, vol_num); |
server | 232 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, dir_base); |
server | 235 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 1); /* dir_base */ |
server | 239 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0xff); /* no handle */ |
server | 243 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 1); /* 1 component */ |
server | 244 | fs/ncpfs/ncplib_kernel.c | ncp_add_pstring(server, path); |
server | 248 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); |
server | 267 | fs/ncpfs/ncplib_kernel.c | ncp_obtain_info(struct ncp_server *server, |
server | 279 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 280 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 6); /* subfunction */ |
server | 281 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* dos name space */ |
server | 282 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* dos name space as dest */ |
server | 283 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, 0xff); /* get all */ |
server | 284 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, RIM_ALL); |
server | 285 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, vol_num, dir_base, 1, path); |
server | 287 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 87)) != 0) |
server | 289 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 293 | fs/ncpfs/ncplib_kernel.c | ncp_extract_file_info(ncp_reply_data(server, 0), target); |
server | 294 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 299 | fs/ncpfs/ncplib_kernel.c | ncp_lookup_volume(struct ncp_server *server, |
server | 309 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 310 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 22); /* Subfunction: Generate dir handle */ |
server | 311 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* DOS name space */ |
server | 312 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* reserved */ |
server | 313 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* reserved */ |
server | 314 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* reserved */ |
server | 316 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* faked volume number */ |
server | 317 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, 0); /* faked dir_base */ |
server | 318 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0xff); /* Don't have a dir_base */ |
server | 319 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 1); /* 1 path component */ |
server | 320 | fs/ncpfs/ncplib_kernel.c | ncp_add_pstring(server, volname); |
server | 322 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 87)) != 0) |
server | 324 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 328 | fs/ncpfs/ncplib_kernel.c | dir_base = ncp_reply_dword(server, 4); |
server | 329 | fs/ncpfs/ncplib_kernel.c | vol_num = ncp_reply_byte(server, 8); |
server | 330 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 332 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_obtain_info(server, vol_num, dir_base, NULL, |
server | 346 | fs/ncpfs/ncplib_kernel.c | ncp_modify_file_or_subdir_dos_info(struct ncp_server *server, |
server | 353 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 354 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 7); /* subfunction */ |
server | 355 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* dos name space */ |
server | 356 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* reserved */ |
server | 357 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, 0x8006); /* search attribs: all */ |
server | 359 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, info_mask); |
server | 360 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem(server, info, sizeof(*info)); |
server | 361 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, file->volNumber, |
server | 364 | fs/ncpfs/ncplib_kernel.c | result = ncp_request(server, 87); |
server | 365 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 370 | fs/ncpfs/ncplib_kernel.c | ncp_del_file_or_subdir(struct ncp_server *server, |
server | 375 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 376 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 8); /* subfunction */ |
server | 377 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* dos name space */ |
server | 378 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* reserved */ |
server | 379 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, 0x8006); /* search attribs: all */ |
server | 380 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, dir->volNumber, |
server | 383 | fs/ncpfs/ncplib_kernel.c | result = ncp_request(server, 87); |
server | 384 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 400 | fs/ncpfs/ncplib_kernel.c | ncp_open_create_file_or_subdir(struct ncp_server *server, |
server | 415 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 416 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 1); /* subfunction */ |
server | 417 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* dos name space */ |
server | 418 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, open_create_mode); |
server | 419 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, search_attribs); |
server | 420 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, RIM_ALL); |
server | 421 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, create_attributes); |
server | 424 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, desired_acc_rights); |
server | 428 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, dir->volNumber, |
server | 433 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, |
server | 438 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 87)) != 0) |
server | 440 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 445 | fs/ncpfs/ncplib_kernel.c | target->server_file_handle = ncp_reply_dword(server, 0); |
server | 446 | fs/ncpfs/ncplib_kernel.c | target->open_create_action = ncp_reply_byte(server, 4); |
server | 451 | fs/ncpfs/ncplib_kernel.c | ncp_extract_file_info(ncp_reply_data(server, 5), &(target->i)); |
server | 456 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 462 | fs/ncpfs/ncplib_kernel.c | ncp_initialize_search(struct ncp_server *server, |
server | 468 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 469 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 2); /* subfunction */ |
server | 470 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* dos name space */ |
server | 471 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* reserved */ |
server | 472 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, dir->volNumber, dir->DosDirNum, 1, NULL); |
server | 474 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 87)) != 0) |
server | 476 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 480 | fs/ncpfs/ncplib_kernel.c | memcpy(target, ncp_reply_data(server, 0), sizeof(*target)); |
server | 482 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 488 | fs/ncpfs/ncplib_kernel.c | ncp_search_for_file_or_subdir(struct ncp_server *server, |
server | 494 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 495 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 3); /* subfunction */ |
server | 496 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* dos name space */ |
server | 497 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* data stream (???) */ |
server | 498 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, 0xffff); /* Search attribs */ |
server | 499 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, RIM_ALL); /* return info mask */ |
server | 500 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem(server, seq, 9); |
server | 501 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 2); /* 2 byte pattern */ |
server | 502 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0xff); /* following is a wildcard */ |
server | 503 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, '*'); |
server | 505 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 87)) != 0) |
server | 507 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 511 | fs/ncpfs/ncplib_kernel.c | memcpy(seq, ncp_reply_data(server, 0), sizeof(*seq)); |
server | 512 | fs/ncpfs/ncplib_kernel.c | ncp_extract_file_info(ncp_reply_data(server, 10), target); |
server | 514 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 519 | fs/ncpfs/ncplib_kernel.c | ncp_ren_or_mov_file_or_subdir(struct ncp_server *server, |
server | 529 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 530 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 4); /* subfunction */ |
server | 531 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); /* dos name space */ |
server | 532 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 1); /* rename flag */ |
server | 533 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, 0x8006); /* search attributes */ |
server | 536 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, old_dir->volNumber); |
server | 537 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, old_dir->DosDirNum); |
server | 538 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 1); |
server | 539 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 1); /* 1 source component */ |
server | 542 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, new_dir->volNumber); |
server | 543 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, new_dir->DosDirNum); |
server | 544 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 1); |
server | 545 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 1); /* 1 destination component */ |
server | 548 | fs/ncpfs/ncplib_kernel.c | ncp_add_pstring(server, old_name); |
server | 550 | fs/ncpfs/ncplib_kernel.c | ncp_add_pstring(server, new_name); |
server | 552 | fs/ncpfs/ncplib_kernel.c | result = ncp_request(server, 87); |
server | 553 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 560 | fs/ncpfs/ncplib_kernel.c | ncp_read(struct ncp_server *server, const char *file_id, |
server | 566 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 567 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); |
server | 568 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem(server, file_id, 6); |
server | 569 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, htonl(offset)); |
server | 570 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, htons(to_read)); |
server | 572 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 72)) != 0) |
server | 574 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 578 | fs/ncpfs/ncplib_kernel.c | *bytes_read = ntohs(ncp_reply_word(server, 0)); |
server | 580 | fs/ncpfs/ncplib_kernel.c | memcpy_tofs(target, ncp_reply_data(server, 2+(offset&1)), *bytes_read); |
server | 582 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 587 | fs/ncpfs/ncplib_kernel.c | ncp_write(struct ncp_server *server, const char *file_id, |
server | 593 | fs/ncpfs/ncplib_kernel.c | ncp_init_request(server); |
server | 594 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, 0); |
server | 595 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem(server, file_id, 6); |
server | 596 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, htonl(offset)); |
server | 597 | fs/ncpfs/ncplib_kernel.c | ncp_add_word(server, htons(to_write)); |
server | 598 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem_fromfs(server, source, to_write); |
server | 600 | fs/ncpfs/ncplib_kernel.c | if ((result = ncp_request(server, 73)) != 0) |
server | 602 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 608 | fs/ncpfs/ncplib_kernel.c | ncp_unlock_server(server); |
server | 26 | fs/ncpfs/ncplib_kernel.h | ncp_negotiate_buffersize(struct ncp_server *server, int size, |
server | 29 | fs/ncpfs/ncplib_kernel.h | ncp_get_encryption_key(struct ncp_server *server, |
server | 32 | fs/ncpfs/ncplib_kernel.h | ncp_get_bindery_object_id(struct ncp_server *server, |
server | 36 | fs/ncpfs/ncplib_kernel.h | ncp_login_encrypted(struct ncp_server *server, |
server | 41 | fs/ncpfs/ncplib_kernel.h | ncp_login_user(struct ncp_server *server, |
server | 45 | fs/ncpfs/ncplib_kernel.h | ncp_get_volume_info_with_number(struct ncp_server *server, int n, |
server | 49 | fs/ncpfs/ncplib_kernel.h | ncp_get_volume_number(struct ncp_server *server, const char *name, |
server | 53 | fs/ncpfs/ncplib_kernel.h | ncp_file_search_init(struct ncp_server *server, |
server | 58 | fs/ncpfs/ncplib_kernel.h | ncp_file_search_continue(struct ncp_server *server, |
server | 64 | fs/ncpfs/ncplib_kernel.h | ncp_get_finfo(struct ncp_server *server, |
server | 69 | fs/ncpfs/ncplib_kernel.h | ncp_open_file(struct ncp_server *server, |
server | 74 | fs/ncpfs/ncplib_kernel.h | ncp_close_file(struct ncp_server *server, const char *file_id); |
server | 77 | fs/ncpfs/ncplib_kernel.h | ncp_create_newfile(struct ncp_server *server, |
server | 83 | fs/ncpfs/ncplib_kernel.h | ncp_create_file(struct ncp_server *server, |
server | 89 | fs/ncpfs/ncplib_kernel.h | ncp_erase_file(struct ncp_server *server, |
server | 94 | fs/ncpfs/ncplib_kernel.h | ncp_rename_file(struct ncp_server *server, |
server | 100 | fs/ncpfs/ncplib_kernel.h | ncp_create_directory(struct ncp_server *server, |
server | 105 | fs/ncpfs/ncplib_kernel.h | ncp_delete_directory(struct ncp_server *server, |
server | 109 | fs/ncpfs/ncplib_kernel.h | ncp_rename_directory(struct ncp_server *server, |
server | 114 | fs/ncpfs/ncplib_kernel.h | ncp_read(struct ncp_server *server, const char *file_id, |
server | 119 | fs/ncpfs/ncplib_kernel.h | ncp_write(struct ncp_server *server, const char *file_id, |
server | 124 | fs/ncpfs/ncplib_kernel.h | ncp_obtain_info(struct ncp_server *server, |
server | 130 | fs/ncpfs/ncplib_kernel.h | ncp_lookup_volume(struct ncp_server *server, |
server | 136 | fs/ncpfs/ncplib_kernel.h | ncp_modify_file_or_subdir_dos_info(struct ncp_server *server, |
server | 142 | fs/ncpfs/ncplib_kernel.h | ncp_del_file_or_subdir(struct ncp_server *server, |
server | 146 | fs/ncpfs/ncplib_kernel.h | ncp_open_create_file_or_subdir(struct ncp_server *server, |
server | 154 | fs/ncpfs/ncplib_kernel.h | ncp_initialize_search(struct ncp_server *server, |
server | 159 | fs/ncpfs/ncplib_kernel.h | ncp_search_for_file_or_subdir(struct ncp_server *server, |
server | 164 | fs/ncpfs/ncplib_kernel.h | ncp_ren_or_mov_file_or_subdir(struct ncp_server *server, |
server | 122 | fs/ncpfs/sock.c | ncp_catch_watchdog(struct ncp_server *server) |
server | 129 | fs/ncpfs/sock.c | if ( (server == NULL) |
server | 130 | fs/ncpfs/sock.c | || ((file = server->wdog_filp) == NULL) |
server | 135 | fs/ncpfs/sock.c | server->data_ready = NULL; |
server | 144 | fs/ncpfs/sock.c | server->data_ready = NULL; |
server | 153 | fs/ncpfs/sock.c | server->data_ready = NULL; |
server | 159 | fs/ncpfs/sock.c | (unsigned int)(server->data_ready)); |
server | 167 | fs/ncpfs/sock.c | server->data_ready = sk->data_ready; |
server | 174 | fs/ncpfs/sock.c | ncp_dont_catch_watchdog(struct ncp_server *server) |
server | 181 | fs/ncpfs/sock.c | if ( (server == NULL) |
server | 182 | fs/ncpfs/sock.c | || ((file = server->wdog_filp) == NULL) |
server | 207 | fs/ncpfs/sock.c | if (server->data_ready == NULL) |
server | 223 | fs/ncpfs/sock.c | (unsigned int)(server->data_ready)); |
server | 225 | fs/ncpfs/sock.c | sk->data_ready = server->data_ready; |
server | 227 | fs/ncpfs/sock.c | server->data_ready = NULL; |
server | 267 | fs/ncpfs/sock.c | ncp_catch_message(struct ncp_server *server) |
server | 274 | fs/ncpfs/sock.c | if ( (server == NULL) |
server | 275 | fs/ncpfs/sock.c | || ((file = server->msg_filp) == NULL) |
server | 309 | fs/ncpfs/sock.c | sk->protinfo.af_ipx.ncp_server = server; |
server | 318 | fs/ncpfs/sock.c | do_ncp_rpc_call(struct ncp_server *server, int size) |
server | 325 | fs/ncpfs/sock.c | char *start = server->packet; |
server | 341 | fs/ncpfs/sock.c | *((struct ncp_request_header *)(server->packet)); |
server | 346 | fs/ncpfs/sock.c | file = server->ncp_filp; |
server | 355 | fs/ncpfs/sock.c | init_timeout = server->m.time_out; |
server | 357 | fs/ncpfs/sock.c | retrans = server->m.retry_count; |
server | 360 | fs/ncpfs/sock.c | server_name = server->m.server_name; |
server | 366 | fs/ncpfs/sock.c | | ((server->m.flags & NCP_MOUNT_INTR) |
server | 377 | fs/ncpfs/sock.c | htonl(server->m.serv_addr.sipx_network), |
server | 378 | fs/ncpfs/sock.c | server->m.serv_addr.sipx_node[0], |
server | 379 | fs/ncpfs/sock.c | server->m.serv_addr.sipx_node[1], |
server | 380 | fs/ncpfs/sock.c | server->m.serv_addr.sipx_node[2], |
server | 381 | fs/ncpfs/sock.c | server->m.serv_addr.sipx_node[3], |
server | 382 | fs/ncpfs/sock.c | server->m.serv_addr.sipx_node[4], |
server | 383 | fs/ncpfs/sock.c | server->m.serv_addr.sipx_node[5], |
server | 384 | fs/ncpfs/sock.c | ntohs(server->m.serv_addr.sipx_port)); |
server | 394 | fs/ncpfs/sock.c | &(server->m.serv_addr), |
server | 395 | fs/ncpfs/sock.c | sizeof(server->m.serv_addr)); |
server | 434 | fs/ncpfs/sock.c | if (server->m.flags & NCP_MOUNT_SOFT) |
server | 531 | fs/ncpfs/sock.c | result = _recvfrom(sock, (void *)start, server->packet_size, |
server | 556 | fs/ncpfs/sock.c | ncp_do_request(struct ncp_server *server, int size) |
server | 560 | fs/ncpfs/sock.c | if (server->lock == 0) |
server | 566 | fs/ncpfs/sock.c | if (!ncp_conn_valid(server)) |
server | 571 | fs/ncpfs/sock.c | result = do_ncp_rpc_call(server, size); |
server | 579 | fs/ncpfs/sock.c | ncp_invalidate_conn(server); |
server | 588 | fs/ncpfs/sock.c | ncp_request(struct ncp_server *server, int function) |
server | 591 | fs/ncpfs/sock.c | = (struct ncp_request_header *)(server->packet); |
server | 593 | fs/ncpfs/sock.c | = (struct ncp_reply_header *)(server->packet); |
server | 595 | fs/ncpfs/sock.c | int request_size = server->current_size |
server | 600 | fs/ncpfs/sock.c | if (server->has_subfunction != 0) |
server | 607 | fs/ncpfs/sock.c | server->sequence += 1; |
server | 608 | fs/ncpfs/sock.c | h->sequence = server->sequence; |
server | 609 | fs/ncpfs/sock.c | h->conn_low = (server->connection) & 0xff; |
server | 610 | fs/ncpfs/sock.c | h->conn_high = ((server->connection) & 0xff00) >> 8; |
server | 614 | fs/ncpfs/sock.c | if ((result = ncp_do_request(server, request_size + sizeof(*h))) < 0) |
server | 620 | fs/ncpfs/sock.c | server->completion = reply->completion_code; |
server | 621 | fs/ncpfs/sock.c | server->conn_status = reply->connection_state; |
server | 622 | fs/ncpfs/sock.c | server->reply_size = result; |
server | 623 | fs/ncpfs/sock.c | server->ncp_reply_size = result - sizeof(struct ncp_reply_header); |
server | 635 | fs/ncpfs/sock.c | ncp_connect(struct ncp_server *server) |
server | 638 | fs/ncpfs/sock.c | = (struct ncp_request_header *)(server->packet); |
server | 643 | fs/ncpfs/sock.c | server->sequence = 0; |
server | 644 | fs/ncpfs/sock.c | h->sequence = server->sequence; |
server | 650 | fs/ncpfs/sock.c | if ((result = ncp_do_request(server, sizeof(*h))) < 0) |
server | 655 | fs/ncpfs/sock.c | server->sequence = 0; |
server | 656 | fs/ncpfs/sock.c | server->connection = h->conn_low + (h->conn_high * 256); |
server | 661 | fs/ncpfs/sock.c | ncp_disconnect(struct ncp_server *server) |
server | 664 | fs/ncpfs/sock.c | = (struct ncp_request_header *)(server->packet); |
server | 668 | fs/ncpfs/sock.c | server->sequence += 1; |
server | 669 | fs/ncpfs/sock.c | h->sequence = server->sequence; |
server | 670 | fs/ncpfs/sock.c | h->conn_low = (server->connection) & 0xff; |
server | 671 | fs/ncpfs/sock.c | h->conn_high = ((server->connection) & 0xff00) >> 8; |
server | 675 | fs/ncpfs/sock.c | return ncp_do_request(server, sizeof(*h)); |
server | 679 | fs/ncpfs/sock.c | ncp_lock_server(struct ncp_server *server) |
server | 683 | fs/ncpfs/sock.c | if (server->lock != 0) |
server | 688 | fs/ncpfs/sock.c | while (server->lock) |
server | 689 | fs/ncpfs/sock.c | sleep_on(&server->wait); |
server | 690 | fs/ncpfs/sock.c | server->lock = 1; |
server | 694 | fs/ncpfs/sock.c | ncp_unlock_server(struct ncp_server *server) |
server | 696 | fs/ncpfs/sock.c | if (server->lock != 1) |
server | 701 | fs/ncpfs/sock.c | server->lock = 0; |
server | 702 | fs/ncpfs/sock.c | wake_up(&server->wait); |
server | 69 | fs/nfs/file.c | static inline void revalidate_inode(struct nfs_server * server, struct inode * inode) |
server | 73 | fs/nfs/file.c | if (jiffies - NFS_READTIME(inode) < server->acregmax) |
server | 77 | fs/nfs/file.c | if (nfs_proc_getattr(server, NFS_FH(inode), &fattr) == 0) { |
server | 106 | fs/nfs/inode.c | struct nfs_server *server; |
server | 144 | fs/nfs/inode.c | server = &sb->u.nfs_sb.s_server; |
server | 145 | fs/nfs/inode.c | server->file = filp; |
server | 146 | fs/nfs/inode.c | server->lock = 0; |
server | 147 | fs/nfs/inode.c | server->wait = NULL; |
server | 148 | fs/nfs/inode.c | server->flags = data->flags; |
server | 149 | fs/nfs/inode.c | server->rsize = data->rsize; |
server | 150 | fs/nfs/inode.c | if (server->rsize <= 0) |
server | 151 | fs/nfs/inode.c | server->rsize = NFS_DEF_FILE_IO_BUFFER_SIZE; |
server | 152 | fs/nfs/inode.c | else if (server->rsize >= NFS_MAX_FILE_IO_BUFFER_SIZE) |
server | 153 | fs/nfs/inode.c | server->rsize = NFS_MAX_FILE_IO_BUFFER_SIZE; |
server | 154 | fs/nfs/inode.c | server->wsize = data->wsize; |
server | 155 | fs/nfs/inode.c | if (server->wsize <= 0) |
server | 156 | fs/nfs/inode.c | server->wsize = NFS_DEF_FILE_IO_BUFFER_SIZE; |
server | 157 | fs/nfs/inode.c | else if (server->wsize >= NFS_MAX_FILE_IO_BUFFER_SIZE) |
server | 158 | fs/nfs/inode.c | server->wsize = NFS_MAX_FILE_IO_BUFFER_SIZE; |
server | 159 | fs/nfs/inode.c | server->timeo = data->timeo*HZ/10; |
server | 160 | fs/nfs/inode.c | server->retrans = data->retrans; |
server | 161 | fs/nfs/inode.c | server->acregmin = data->acregmin*HZ; |
server | 162 | fs/nfs/inode.c | server->acregmax = data->acregmax*HZ; |
server | 163 | fs/nfs/inode.c | server->acdirmin = data->acdirmin*HZ; |
server | 164 | fs/nfs/inode.c | server->acdirmax = data->acdirmax*HZ; |
server | 165 | fs/nfs/inode.c | strcpy(server->hostname, data->hostname); |
server | 170 | fs/nfs/inode.c | if (((struct sockaddr_in *)(&server->toaddr))->sin_addr.s_addr == INADDR_ANY) { |
server | 184 | fs/nfs/inode.c | sock->ops->getname(sock, &(server->toaddr), &dummylen, 1) ; |
server | 188 | fs/nfs/inode.c | memcpy((char *)&(server->toaddr),(char *)(&data->addr),sizeof(server->toaddr)); |
server | 192 | fs/nfs/inode.c | if ((server->rsock = rpc_makesock(filp)) == NULL) { |
server | 40 | fs/nfs/nfsiod.c | nfsiod_reserve(struct nfs_server *server, nfsiod_done_fn_t callback) |
server | 51 | fs/nfs/nfsiod.c | if (rpc_reserve(server->rsock, &req->rq_rpcreq, 1) < 0) { |
server | 58 | fs/nfs/nfsiod.c | req->rq_server = server; |
server | 123 | fs/nfs/nfsroot.c | static struct sockaddr_in server; /* Server IP address */ |
server | 355 | fs/nfs/nfsroot.c | if (server.sin_addr.s_addr == INADDR_NONE) { |
server | 356 | fs/nfs/nfsroot.c | server.sin_family = dev->family; |
server | 357 | fs/nfs/nfsroot.c | server.sin_addr.s_addr = sip; |
server | 831 | fs/nfs/nfsroot.c | if (server.sin_addr.s_addr==INADDR_NONE) |
server | 832 | fs/nfs/nfsroot.c | server.sin_addr.s_addr = recv_bootp->server_ip; |
server | 986 | fs/nfs/nfsroot.c | in_ntoa(server.sin_addr.s_addr)); |
server | 1068 | fs/nfs/nfsroot.c | server.sin_addr.s_addr = in_aton(name); |
server | 1074 | fs/nfs/nfsroot.c | strncpy(nfs_data.hostname, in_ntoa(server.sin_addr.s_addr), |
server | 1146 | fs/nfs/nfsroot.c | printk("server=%s, ", IN_NTOA(server.sin_addr.s_addr)); |
server | 1192 | fs/nfs/nfsroot.c | myaddr.sin_family = server.sin_family = rarp_serv.sin_family = |
server | 1194 | fs/nfs/nfsroot.c | myaddr.sin_addr.s_addr = server.sin_addr.s_addr = rarp_serv.sin_addr.s_addr = |
server | 1228 | fs/nfs/nfsroot.c | if ((server.sin_addr.s_addr = in_aton(ip)) == INADDR_ANY) |
server | 1229 | fs/nfs/nfsroot.c | server.sin_addr.s_addr = INADDR_NONE; |
server | 1267 | fs/nfs/nfsroot.c | rarp_serv = server; |
server | 1328 | fs/nfs/nfsroot.c | } else if ((server.sin_addr.s_addr ^ myaddr.sin_addr.s_addr) & netmask.sin_addr.s_addr) { |
server | 1369 | fs/nfs/nfsroot.c | server.sin_addr.s_addr == INADDR_NONE || |
server | 1526 | fs/nfs/nfsroot.c | ((struct sockaddr_in *) &s.toaddr)->sin_port = server.sin_port; |
server | 1527 | fs/nfs/nfsroot.c | ((struct sockaddr_in *) &s.toaddr)->sin_family = server.sin_family; |
server | 1528 | fs/nfs/nfsroot.c | ((struct sockaddr_in *) &s.toaddr)->sin_addr.s_addr = server.sin_addr.s_addr; |
server | 1544 | fs/nfs/nfsroot.c | (struct sockaddr *) &server, |
server | 1579 | fs/nfs/nfsroot.c | server.sin_port = htons(NFS_PMAP_PORT); |
server | 1619 | fs/nfs/nfsroot.c | server.sin_port = htons(port); |
server | 1677 | fs/nfs/nfsroot.c | server.sin_port = htons(nfs_port); |
server | 1678 | fs/nfs/nfsroot.c | nfs_data.addr = server; |
server | 1681 | fs/nfs/nfsroot.c | (struct sockaddr *) &server, |
server | 223 | fs/nfs/proc.c | int nfs_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 231 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 236 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 259 | fs/nfs/proc.c | int nfs_proc_setattr(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 267 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 273 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 296 | fs/nfs/proc.c | int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, const char *name, |
server | 308 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 314 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 338 | fs/nfs/proc.c | int nfs_proc_readlink(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 345 | fs/nfs/proc.c | if (!(*p0 = nfs_rpc_alloc(server->rsize))) |
server | 350 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, *p0, p, server->rsize)) < 0) |
server | 373 | fs/nfs/proc.c | int nfs_proc_read(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 382 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 390 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 420 | fs/nfs/proc.c | nfs_proc_read_request(struct rpc_ioreq *req, struct nfs_server *server, |
server | 451 | fs/nfs/proc.c | req->rq_addr = &server->toaddr; |
server | 452 | fs/nfs/proc.c | req->rq_alen = sizeof(server->toaddr); |
server | 500 | fs/nfs/proc.c | struct nfs_server * server = NFS_SERVER(inode); |
server | 504 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 514 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 538 | fs/nfs/proc.c | int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir, |
server | 547 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 554 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 578 | fs/nfs/proc.c | int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
server | 585 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 591 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 613 | fs/nfs/proc.c | int nfs_proc_rename(struct nfs_server *server, |
server | 622 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 630 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 652 | fs/nfs/proc.c | int nfs_proc_link(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 660 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 667 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 689 | fs/nfs/proc.c | int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir, |
server | 697 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 705 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 727 | fs/nfs/proc.c | int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir, |
server | 736 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 743 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 767 | fs/nfs/proc.c | int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, const char *name) |
server | 774 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->wsize))) |
server | 780 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->wsize)) < 0) { |
server | 802 | fs/nfs/proc.c | int nfs_proc_readdir(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 813 | fs/nfs/proc.c | size = server->rsize; |
server | 814 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 821 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 858 | fs/nfs/proc.c | int nfs_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 866 | fs/nfs/proc.c | if (!(p0 = nfs_rpc_alloc(server->rsize))) |
server | 871 | fs/nfs/proc.c | if ((status = nfs_rpc_call(server, p0, p, server->rsize)) < 0) { |
server | 42 | fs/nfs/sock.c | nfs_rpc_call(struct nfs_server *server, int *start, int *end, int size) |
server | 48 | fs/nfs/sock.c | req.rq_addr = &server->toaddr; |
server | 49 | fs/nfs/sock.c | req.rq_alen = sizeof(server->toaddr); |
server | 61 | fs/nfs/sock.c | return nfs_rpc_doio(server, &req, 0); |
server | 65 | fs/nfs/sock.c | nfs_rpc_doio(struct nfs_server *server, struct rpc_ioreq *req, int async) |
server | 72 | fs/nfs/sock.c | timeout.to_initval = server->timeo; |
server | 74 | fs/nfs/sock.c | timeout.to_retries = server->retrans; |
server | 79 | fs/nfs/sock.c | | ((server->flags & NFS_MOUNT_INTR) |
server | 90 | fs/nfs/sock.c | result = rpc_doio(server->rsock, req, &timeout, async); |
server | 91 | fs/nfs/sock.c | rpc_release(server->rsock, req); /* Release slot */ |
server | 98 | fs/nfs/sock.c | if (server->flags & NFS_MOUNT_SOFT) { |
server | 100 | fs/nfs/sock.c | "timed out.\n", server->hostname); |
server | 106 | fs/nfs/sock.c | "still trying.\n", server->hostname); |
server | 115 | fs/nfs/sock.c | } while (result == -ETIMEDOUT && !(server->flags & NFS_MOUNT_SOFT)); |
server | 118 | fs/nfs/sock.c | printk("NFS server %s OK.\n", server->hostname); |
server | 43 | fs/smbfs/dir.c | smb_find_inode(struct smb_server *server, const char *path); |
server | 164 | fs/smbfs/dir.c | struct smb_server *server = SMB_SERVER(inode); |
server | 217 | fs/smbfs/dir.c | result = smb_proc_readdir(server, inode, |
server | 235 | fs/smbfs/dir.c | switch (server->case_handling) |
server | 271 | fs/smbfs/dir.c | ino_info = smb_find_inode(server, complete_path); |
server | 560 | fs/smbfs/dir.c | smb_init_root(struct smb_server *server) |
server | 562 | fs/smbfs/dir.c | struct smb_inode_info *root = &(server->root); |
server | 564 | fs/smbfs/dir.c | root->finfo.path = server->m.root_path; |
server | 576 | fs/smbfs/dir.c | smb_stat_root(struct smb_server *server) |
server | 578 | fs/smbfs/dir.c | struct smb_inode_info *root = &(server->root); |
server | 582 | fs/smbfs/dir.c | result = smb_proc_getattr(server, "\\", 1, &(root->finfo)); |
server | 586 | fs/smbfs/dir.c | result = smb_proc_getattr(server, |
server | 594 | fs/smbfs/dir.c | smb_free_all_inodes(struct smb_server *server) |
server | 600 | fs/smbfs/dir.c | struct smb_inode_info *root = &(server->root); |
server | 621 | fs/smbfs/dir.c | smb_invalidate_all_inodes(struct smb_server *server) |
server | 623 | fs/smbfs/dir.c | struct smb_inode_info *ino = &(server->root); |
server | 628 | fs/smbfs/dir.c | } while (ino != &(server->root)); |
server | 639 | fs/smbfs/dir.c | smb_find_inode(struct smb_server *server, const char *path) |
server | 641 | fs/smbfs/dir.c | struct smb_inode_info *result = &(server->root); |
server | 651 | fs/smbfs/dir.c | } while (result != &(server->root)); |
server | 151 | fs/smbfs/inode.c | struct smb_server *server = &(SMB_SBP(sb)->s_server); |
server | 153 | fs/smbfs/inode.c | smb_proc_disconnect(server); |
server | 154 | fs/smbfs/inode.c | close_fp(server->sock_file); |
server | 158 | fs/smbfs/inode.c | smb_free_all_inodes(server); |
server | 160 | fs/smbfs/inode.c | smb_kfree_s(server->packet, server->max_xmit); |
server | 176 | fs/smbfs/inode.c | struct smb_server *server; |
server | 226 | fs/smbfs/inode.c | server = &(SMB_SBP(sb)->s_server); |
server | 227 | fs/smbfs/inode.c | server->sock_file = filp; |
server | 228 | fs/smbfs/inode.c | server->lock = 0; |
server | 229 | fs/smbfs/inode.c | server->wait = NULL; |
server | 230 | fs/smbfs/inode.c | server->packet = NULL; |
server | 231 | fs/smbfs/inode.c | server->max_xmit = data->max_xmit; |
server | 232 | fs/smbfs/inode.c | if (server->max_xmit <= 0) |
server | 233 | fs/smbfs/inode.c | server->max_xmit = SMB_DEF_MAX_XMIT; |
server | 235 | fs/smbfs/inode.c | server->tid = 0; |
server | 236 | fs/smbfs/inode.c | server->pid = current->pid; |
server | 237 | fs/smbfs/inode.c | server->mid = current->pid + 20; |
server | 239 | fs/smbfs/inode.c | server->m = *data; |
server | 240 | fs/smbfs/inode.c | server->m.file_mode = (server->m.file_mode & |
server | 242 | fs/smbfs/inode.c | server->m.dir_mode = (server->m.dir_mode & |
server | 245 | fs/smbfs/inode.c | smb_init_root(server); |
server | 251 | fs/smbfs/inode.c | error = smb_proc_connect(server); |
server | 262 | fs/smbfs/inode.c | if (server->protocol >= PROTOCOL_LANMAN2) |
server | 263 | fs/smbfs/inode.c | server->case_handling = CASE_DEFAULT; |
server | 265 | fs/smbfs/inode.c | server->case_handling = CASE_LOWER; |
server | 271 | fs/smbfs/inode.c | smb_kfree_s(server->packet, server->max_xmit); |
server | 275 | fs/smbfs/inode.c | if ((error = smb_stat_root(server)) < 0) { |
server | 278 | fs/smbfs/inode.c | smb_kfree_s(server->packet, server->max_xmit); |
server | 290 | fs/smbfs/inode.c | if (!(sb->s_mounted = iget(sb, (int)&(server->root)))) { |
server | 293 | fs/smbfs/inode.c | smb_kfree_s(server->packet, server->max_xmit); |
server | 388 | fs/smbfs/proc.c | smb_lock_server(struct smb_server *server) |
server | 390 | fs/smbfs/proc.c | while (server->lock) |
server | 391 | fs/smbfs/proc.c | sleep_on(&server->wait); |
server | 392 | fs/smbfs/proc.c | server->lock = 1; |
server | 396 | fs/smbfs/proc.c | smb_unlock_server(struct smb_server *server) |
server | 398 | fs/smbfs/proc.c | if (server->lock != 1) { |
server | 402 | fs/smbfs/proc.c | server->lock = 0; |
server | 403 | fs/smbfs/proc.c | wake_up(&server->wait); |
server | 444 | fs/smbfs/proc.c | smb_retry(struct smb_server *server) |
server | 446 | fs/smbfs/proc.c | if (server->state != CONN_INVALID) { |
server | 450 | fs/smbfs/proc.c | if (smb_release(server) < 0) { |
server | 452 | fs/smbfs/proc.c | server->state = CONN_RETRIED; |
server | 455 | fs/smbfs/proc.c | if(smb_proc_reconnect(server) < 0) { |
server | 457 | fs/smbfs/proc.c | server->state = CONN_RETRIED; |
server | 461 | fs/smbfs/proc.c | server->state = CONN_VALID; |
server | 479 | fs/smbfs/proc.c | smb_setup_header(struct smb_server *server, byte command, word wct, word bcc) |
server | 482 | fs/smbfs/proc.c | byte *p = server->packet; |
server | 483 | fs/smbfs/proc.c | byte *buf = server->packet; |
server | 498 | fs/smbfs/proc.c | WSET(buf, smb_tid, server->tid); |
server | 499 | fs/smbfs/proc.c | WSET(buf, smb_pid, server->pid); |
server | 500 | fs/smbfs/proc.c | WSET(buf, smb_uid, server->server_uid); |
server | 501 | fs/smbfs/proc.c | WSET(buf, smb_mid, server->mid); |
server | 503 | fs/smbfs/proc.c | if (server->protocol > PROTOCOL_CORE) { |
server | 519 | fs/smbfs/proc.c | smb_setup_header_exclusive(struct smb_server *server, |
server | 522 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 523 | fs/smbfs/proc.c | return smb_setup_header(server, command, wct, bcc); |
server | 534 | fs/smbfs/proc.c | smb_proc_open(struct smb_server *server, const char *pathname, int len, |
server | 539 | fs/smbfs/proc.c | char* buf = server->packet; |
server | 544 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 547 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
server | 552 | fs/smbfs/proc.c | if ((error = smb_request_ok(server, SMBopen, 7, 0)) != 0) { |
server | 554 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 559 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 563 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBopen, 2, 2 + len); |
server | 568 | fs/smbfs/proc.c | if ((error = smb_request_ok(server, SMBopen, 7, 0)) != 0) { |
server | 569 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 572 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 586 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 596 | fs/smbfs/proc.c | smb_proc_close(struct smb_server *server, struct smb_dirent *finfo) |
server | 598 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 600 | fs/smbfs/proc.c | smb_setup_header_exclusive(server, SMBclose, 3, 0); |
server | 604 | fs/smbfs/proc.c | return smb_request_ok_unlock(server, SMBclose, 0, 0); |
server | 614 | fs/smbfs/proc.c | smb_proc_read(struct smb_server *server, struct smb_dirent *finfo, |
server | 618 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 621 | fs/smbfs/proc.c | smb_setup_header_exclusive(server, SMBread, 5, 0); |
server | 628 | fs/smbfs/proc.c | if ((error = smb_request_ok(server, SMBread, 5, -1)) < 0) { |
server | 629 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 635 | fs/smbfs/proc.c | smb_decode_data(SMB_BUF(server->packet), data, &data_len, fs); |
server | 637 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 652 | fs/smbfs/proc.c | smb_proc_read_raw(struct smb_server *server, struct smb_dirent *finfo, |
server | 655 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 662 | fs/smbfs/proc.c | smb_setup_header_exclusive(server, SMBreadbraw, 8, 0); |
server | 670 | fs/smbfs/proc.c | result = smb_request_read_raw(server, data, count); |
server | 671 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 676 | fs/smbfs/proc.c | smb_proc_write(struct smb_server *server, struct smb_dirent *finfo, |
server | 680 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 683 | fs/smbfs/proc.c | p = smb_setup_header_exclusive(server, SMBwrite, 5, count + 3); |
server | 693 | fs/smbfs/proc.c | if ((res = smb_request_ok(server, SMBwrite, 1, 0)) >= 0) { |
server | 697 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 704 | fs/smbfs/proc.c | smb_proc_write_raw(struct smb_server *server, struct smb_dirent *finfo, |
server | 707 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 714 | fs/smbfs/proc.c | smb_setup_header_exclusive(server, SMBwritebraw, 11, 0); |
server | 726 | fs/smbfs/proc.c | result = smb_request_ok(server, SMBwritebraw, 1, 0); |
server | 731 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 735 | fs/smbfs/proc.c | result = smb_request_write_raw(server, data, count); |
server | 741 | fs/smbfs/proc.c | if (smb_valid_packet(server->packet) != 0) { |
server | 744 | fs/smbfs/proc.c | } else if (server->rcls != 0) { |
server | 745 | fs/smbfs/proc.c | result = -smb_errno(server->rcls, server->err); |
server | 746 | fs/smbfs/proc.c | } else if (smb_verify(server->packet, SMBwritec,1,0) != 0) { |
server | 752 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 760 | fs/smbfs/proc.c | smb_proc_do_create(struct smb_server *server, const char *path, int len, |
server | 765 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 767 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 769 | fs/smbfs/proc.c | p = smb_setup_header(server, command, 3, len + 2); |
server | 774 | fs/smbfs/proc.c | if ((error = smb_request_ok(server, command, 1, 0)) < 0) { |
server | 775 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 778 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 784 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 786 | fs/smbfs/proc.c | smb_proc_close(server, entry); |
server | 792 | fs/smbfs/proc.c | smb_proc_create(struct smb_server *server, const char *path, int len, |
server | 795 | fs/smbfs/proc.c | return smb_proc_do_create(server, path, len, entry, SMBcreate); |
server | 799 | fs/smbfs/proc.c | smb_proc_mknew(struct smb_server *server, const char *path, int len, |
server | 802 | fs/smbfs/proc.c | return smb_proc_do_create(server, path, len, entry, SMBmknew); |
server | 806 | fs/smbfs/proc.c | smb_proc_mv(struct smb_server *server, |
server | 811 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 814 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 817 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBmv, 1, olen + nlen + 4); |
server | 822 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBmv, 0, 0)) < 0) { |
server | 823 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 827 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 832 | fs/smbfs/proc.c | smb_proc_mkdir(struct smb_server *server, const char *path, const int len) |
server | 837 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 840 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBmkdir, 0, 2 + len); |
server | 843 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBmkdir, 0, 0)) < 0) { |
server | 844 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 848 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 853 | fs/smbfs/proc.c | smb_proc_rmdir(struct smb_server *server, const char *path, const int len) |
server | 858 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 861 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBrmdir, 0, 2 + len); |
server | 864 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBrmdir, 0, 0)) < 0) { |
server | 865 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 869 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 874 | fs/smbfs/proc.c | smb_proc_unlink(struct smb_server *server, const char *path, const int len) |
server | 877 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 880 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 883 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBunlink, 1, 2 + len); |
server | 887 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBunlink, 0, 0)) < 0) { |
server | 888 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 892 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 897 | fs/smbfs/proc.c | smb_proc_trunc(struct smb_server *server, word fid, dword length) |
server | 900 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 903 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 906 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBwrite, 5, 3); |
server | 913 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBwrite, 1, 0)) < 0) { |
server | 914 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 918 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 940 | fs/smbfs/proc.c | smb_proc_readdir_short(struct smb_server *server, struct inode *dir, int fpos, |
server | 953 | fs/smbfs/proc.c | int entries_asked = (server->max_xmit - 100) / SMB_DIRINFO_SIZE; |
server | 963 | fs/smbfs/proc.c | buf = server->packet; |
server | 965 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 974 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsearch, 2, |
server | 982 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsearch, 2, |
server | 990 | fs/smbfs/proc.c | if ((error = smb_request_ok(server, SMBsearch, 1, -1)) < 0) { |
server | 991 | fs/smbfs/proc.c | if ( (server->rcls == ERRDOS) |
server | 992 | fs/smbfs/proc.c | && (server->err == ERRnofiles)) { |
server | 998 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 1006 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
server | 1025 | fs/smbfs/proc.c | SMB_BUF(server->packet) + 3 + |
server | 1054 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1144 | fs/smbfs/proc.c | smb_proc_readdir_long(struct smb_server *server, struct inode *dir, int fpos, |
server | 1185 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 1196 | fs/smbfs/proc.c | unsigned char *outbuf = server->packet; |
server | 1206 | fs/smbfs/proc.c | smb_setup_header(server, SMBtrans2, 15, |
server | 1257 | fs/smbfs/proc.c | result = smb_trans2_request(server, |
server | 1262 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 1270 | fs/smbfs/proc.c | if (server->rcls != 0) |
server | 1366 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1372 | fs/smbfs/proc.c | smb_proc_readdir(struct smb_server *server, struct inode *dir, int fpos, |
server | 1375 | fs/smbfs/proc.c | if (server->protocol >= PROTOCOL_LANMAN2) |
server | 1376 | fs/smbfs/proc.c | return smb_proc_readdir_long(server, dir, fpos, cache_size, |
server | 1379 | fs/smbfs/proc.c | return smb_proc_readdir_short(server, dir, fpos, cache_size, |
server | 1384 | fs/smbfs/proc.c | smb_proc_getattr_core(struct smb_server *server, const char *path, int len, |
server | 1389 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 1391 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 1396 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBgetatr, 0, 2 + len); |
server | 1399 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBgetatr, 10, 0)) < 0) { |
server | 1400 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 1403 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1412 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1419 | fs/smbfs/proc.c | smb_proc_getattrE(struct smb_server *server, struct smb_dirent *entry) |
server | 1421 | fs/smbfs/proc.c | char* buf = server->packet; |
server | 1424 | fs/smbfs/proc.c | smb_setup_header_exclusive(server, SMBgetattrE, 1, 0); |
server | 1427 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBgetattrE, 11, 0)) != 0) { |
server | 1428 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1438 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1443 | fs/smbfs/proc.c | smb_proc_getattr(struct smb_server *server, const char *path, int len, |
server | 1446 | fs/smbfs/proc.c | if (server->protocol >= PROTOCOL_LANMAN1) { |
server | 1451 | fs/smbfs/proc.c | if ((result=smb_proc_open(server,path,len, |
server | 1455 | fs/smbfs/proc.c | return smb_proc_getattr_core(server,path,len,entry); |
server | 1458 | fs/smbfs/proc.c | if ((result=smb_proc_getattrE(server, &temp_entry)) >= 0) { |
server | 1466 | fs/smbfs/proc.c | smb_proc_close(server, &temp_entry); |
server | 1470 | fs/smbfs/proc.c | return smb_proc_getattr_core(server, path, len, entry); |
server | 1478 | fs/smbfs/proc.c | smb_proc_setattr_core(struct smb_server *server, |
server | 1483 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 1486 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 1489 | fs/smbfs/proc.c | p = smb_setup_header(server, SMBsetatr, 8, 4 + len); |
server | 1495 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBsetatr, 0, 0)) < 0) { |
server | 1496 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 1500 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1507 | fs/smbfs/proc.c | smb_proc_setattrE(struct smb_server *server, word fid, |
server | 1510 | fs/smbfs/proc.c | char *buf = server->packet; |
server | 1513 | fs/smbfs/proc.c | smb_setup_header_exclusive(server, SMBsetattrE, 7, 0); |
server | 1529 | fs/smbfs/proc.c | return smb_request_ok_unlock(server, SMBsetattrE, 0, 0); |
server | 1535 | fs/smbfs/proc.c | smb_proc_setattr(struct smb_server *server, struct inode *inode, |
server | 1541 | fs/smbfs/proc.c | if (server->protocol >= PROTOCOL_LANMAN1) { |
server | 1544 | fs/smbfs/proc.c | return smb_proc_setattrE(server, finfo->fileid, new_finfo); |
server | 1546 | fs/smbfs/proc.c | return smb_proc_setattr_core(server, finfo->path, finfo->len, |
server | 1556 | fs/smbfs/proc.c | struct smb_server *server = &(SMB_SBP(super)->s_server); |
server | 1558 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 1561 | fs/smbfs/proc.c | smb_setup_header(server, SMBdskattr, 0, 0); |
server | 1563 | fs/smbfs/proc.c | if ((error = smb_request_ok(server, SMBdskattr, 5, 0)) < 0) { |
server | 1564 | fs/smbfs/proc.c | if (smb_retry(server)) { |
server | 1567 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1571 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
server | 1576 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1597 | fs/smbfs/proc.c | smb_proc_reconnect(struct smb_server *server) |
server | 1617 | fs/smbfs/proc.c | int given_max_xmit = server->m.max_xmit; |
server | 1621 | fs/smbfs/proc.c | if ((result = smb_connect(server)) < 0) { |
server | 1627 | fs/smbfs/proc.c | server->state = CONN_VALID; |
server | 1629 | fs/smbfs/proc.c | if (server->packet != NULL) { |
server | 1630 | fs/smbfs/proc.c | smb_kfree_s(server->packet, server->max_xmit); |
server | 1633 | fs/smbfs/proc.c | server->packet = smb_kmalloc(max_xmit, GFP_KERNEL); |
server | 1635 | fs/smbfs/proc.c | if (server->packet == NULL) { |
server | 1641 | fs/smbfs/proc.c | server->max_xmit = max_xmit; |
server | 1646 | fs/smbfs/proc.c | p = server->packet + 4; |
server | 1648 | fs/smbfs/proc.c | p = smb_name_mangle(p, server->m.server_name); |
server | 1649 | fs/smbfs/proc.c | p = smb_name_mangle(p, server->m.client_name); |
server | 1651 | fs/smbfs/proc.c | smb_encode_smb_length(server->packet, |
server | 1652 | fs/smbfs/proc.c | (void *)p - (void *)(server->packet)); |
server | 1654 | fs/smbfs/proc.c | server->packet[0] = 0x81; /* SESSION REQUEST */ |
server | 1656 | fs/smbfs/proc.c | if (smb_catch_keepalive(server) < 0) { |
server | 1660 | fs/smbfs/proc.c | if ((result = smb_request(server)) < 0) { |
server | 1662 | fs/smbfs/proc.c | smb_dont_catch_keepalive(server); |
server | 1666 | fs/smbfs/proc.c | if (server->packet[0] != 0x82) { |
server | 1669 | fs/smbfs/proc.c | server->packet[0]); |
server | 1670 | fs/smbfs/proc.c | smb_dont_catch_keepalive(server); |
server | 1672 | fs/smbfs/proc.c | smb_dump_packet(server->packet); |
server | 1681 | fs/smbfs/proc.c | memset(server->packet, 0, SMB_HEADER_LEN); |
server | 1688 | fs/smbfs/proc.c | smb_setup_header(server, SMBnegprot, 0, plength); |
server | 1690 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
server | 1696 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBnegprot, 1, -1)) < 0) { |
server | 1698 | fs/smbfs/proc.c | smb_dont_catch_keepalive(server); |
server | 1706 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
server | 1708 | fs/smbfs/proc.c | server->protocol = prots[i].prot; |
server | 1713 | fs/smbfs/proc.c | if (server->protocol > PROTOCOL_LANMAN1) { |
server | 1715 | fs/smbfs/proc.c | word passlen = strlen(server->m.password); |
server | 1716 | fs/smbfs/proc.c | word userlen = strlen(server->m.username); |
server | 1719 | fs/smbfs/proc.c | server->m.password); |
server | 1721 | fs/smbfs/proc.c | server->m.username); |
server | 1723 | fs/smbfs/proc.c | WVAL(server->packet, smb_vwv5)); |
server | 1725 | fs/smbfs/proc.c | if (server->protocol >= PROTOCOL_NT1) { |
server | 1726 | fs/smbfs/proc.c | server->maxxmt = DVAL(server->packet,smb_vwv3+1); |
server | 1727 | fs/smbfs/proc.c | server->maxmux = WVAL(server->packet, smb_vwv1+1); |
server | 1728 | fs/smbfs/proc.c | server->maxvcs = WVAL(server->packet, smb_vwv2+1); |
server | 1729 | fs/smbfs/proc.c | server->blkmode= DVAL(server->packet, smb_vwv9+1); |
server | 1730 | fs/smbfs/proc.c | server->sesskey= DVAL(server->packet, smb_vwv7+1); |
server | 1732 | fs/smbfs/proc.c | server->maxxmt = WVAL(server->packet, smb_vwv2); |
server | 1733 | fs/smbfs/proc.c | server->maxmux = WVAL(server->packet, smb_vwv3); |
server | 1734 | fs/smbfs/proc.c | server->maxvcs = WVAL(server->packet, smb_vwv4); |
server | 1735 | fs/smbfs/proc.c | server->blkmode= WVAL(server->packet, smb_vwv5); |
server | 1736 | fs/smbfs/proc.c | server->sesskey= DVAL(server->packet, smb_vwv6); |
server | 1740 | fs/smbfs/proc.c | if (server->protocol >= PROTOCOL_NT1) { |
server | 1745 | fs/smbfs/proc.c | smb_setup_header(server, SMBsesssetupX, 13, |
server | 1750 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv0, 0x00ff); |
server | 1751 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv1, 0); |
server | 1752 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv2, given_max_xmit); |
server | 1753 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv3, 2); |
server | 1754 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv4, server->pid); |
server | 1755 | fs/smbfs/proc.c | DSET(server->packet, smb_vwv5, server->sesskey); |
server | 1756 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv7, passlen + 1); |
server | 1757 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv8, 0); |
server | 1758 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv9, 0); |
server | 1760 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
server | 1761 | fs/smbfs/proc.c | strcpy(p, server->m.password); |
server | 1763 | fs/smbfs/proc.c | strcpy(p, server->m.username); |
server | 1771 | fs/smbfs/proc.c | smb_setup_header(server, SMBsesssetupX, 10, |
server | 1774 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv0, 0x00ff); |
server | 1775 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv1, 0); |
server | 1776 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv2, given_max_xmit); |
server | 1777 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv3, 2); |
server | 1778 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv4, server->pid); |
server | 1779 | fs/smbfs/proc.c | DSET(server->packet, smb_vwv5, server->sesskey); |
server | 1780 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv7, passlen + 1); |
server | 1781 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv8, 0); |
server | 1782 | fs/smbfs/proc.c | WSET(server->packet, smb_vwv9, 0); |
server | 1784 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
server | 1785 | fs/smbfs/proc.c | strcpy(p, server->m.password); |
server | 1787 | fs/smbfs/proc.c | strcpy(p, server->m.username); |
server | 1790 | fs/smbfs/proc.c | if ((result = smb_request_ok(server,SMBsesssetupX,3,0)) < 0) { |
server | 1792 | fs/smbfs/proc.c | smb_dont_catch_keepalive(server); |
server | 1795 | fs/smbfs/proc.c | smb_decode_word(server->packet+32, &(server->server_uid)); |
server | 1800 | fs/smbfs/proc.c | server->maxxmt = 0; |
server | 1801 | fs/smbfs/proc.c | server->maxmux = 0; |
server | 1802 | fs/smbfs/proc.c | server->maxvcs = 0; |
server | 1803 | fs/smbfs/proc.c | server->blkmode = 0; |
server | 1804 | fs/smbfs/proc.c | server->sesskey = 0; |
server | 1809 | fs/smbfs/proc.c | smb_setup_header(server, SMBtcon, 0, |
server | 1810 | fs/smbfs/proc.c | 6 + strlen(server->m.service) + |
server | 1811 | fs/smbfs/proc.c | strlen(server->m.password) + strlen(dev)); |
server | 1812 | fs/smbfs/proc.c | p = SMB_BUF(server->packet); |
server | 1813 | fs/smbfs/proc.c | p = smb_encode_ascii(p, server->m.service, strlen(server->m.service)); |
server | 1814 | fs/smbfs/proc.c | p = smb_encode_ascii(p,server->m.password, strlen(server->m.password)); |
server | 1817 | fs/smbfs/proc.c | if ((result = smb_request_ok(server, SMBtcon, 2, 0)) < 0) { |
server | 1819 | fs/smbfs/proc.c | smb_dont_catch_keepalive(server); |
server | 1825 | fs/smbfs/proc.c | p = SMB_VWV(server->packet); |
server | 1826 | fs/smbfs/proc.c | p = smb_decode_word(p, &server->max_xmit); |
server | 1828 | fs/smbfs/proc.c | if (server->max_xmit > given_max_xmit) |
server | 1829 | fs/smbfs/proc.c | server->max_xmit = given_max_xmit; |
server | 1831 | fs/smbfs/proc.c | p = smb_decode_word(p, &server->tid); |
server | 1835 | fs/smbfs/proc.c | server->max_xmit += 4; |
server | 1837 | fs/smbfs/proc.c | DPRINTK("max_xmit = %d, tid = %d\n", server->max_xmit, server->tid); |
server | 1840 | fs/smbfs/proc.c | smb_kfree_s(server->packet, max_xmit); |
server | 1842 | fs/smbfs/proc.c | server->packet = smb_kmalloc(server->max_xmit, GFP_KERNEL); |
server | 1843 | fs/smbfs/proc.c | if (server->packet == NULL) { |
server | 1846 | fs/smbfs/proc.c | smb_dont_catch_keepalive(server); |
server | 1854 | fs/smbfs/proc.c | server->state = CONN_INVALID; |
server | 1861 | fs/smbfs/proc.c | smb_proc_connect(struct smb_server *server) |
server | 1864 | fs/smbfs/proc.c | smb_lock_server(server); |
server | 1865 | fs/smbfs/proc.c | result = smb_proc_reconnect(server); |
server | 1866 | fs/smbfs/proc.c | if ((result < 0) && (server->packet != NULL)) { |
server | 1867 | fs/smbfs/proc.c | smb_kfree_s(server->packet, server->max_xmit); |
server | 1868 | fs/smbfs/proc.c | server->packet = NULL; |
server | 1870 | fs/smbfs/proc.c | smb_unlock_server(server); |
server | 1875 | fs/smbfs/proc.c | smb_proc_disconnect(struct smb_server *server) |
server | 1877 | fs/smbfs/proc.c | smb_setup_header_exclusive(server, SMBtdis, 0, 0); |
server | 1878 | fs/smbfs/proc.c | return smb_request_ok_unlock(server, SMBtdis, 0, 0); |
server | 107 | fs/smbfs/sock.c | smb_catch_keepalive(struct smb_server *server) |
server | 114 | fs/smbfs/sock.c | if ( (server == NULL) |
server | 115 | fs/smbfs/sock.c | || ((file = server->sock_file) == NULL) |
server | 120 | fs/smbfs/sock.c | server->data_ready = NULL; |
server | 128 | fs/smbfs/sock.c | server->data_ready = NULL; |
server | 136 | fs/smbfs/sock.c | server->data_ready = NULL; |
server | 142 | fs/smbfs/sock.c | (unsigned int)(server->data_ready)); |
server | 149 | fs/smbfs/sock.c | server->data_ready = sk->data_ready; |
server | 155 | fs/smbfs/sock.c | smb_dont_catch_keepalive(struct smb_server *server) |
server | 162 | fs/smbfs/sock.c | if ( (server == NULL) |
server | 163 | fs/smbfs/sock.c | || ((file = server->sock_file) == NULL) |
server | 186 | fs/smbfs/sock.c | if (server->data_ready == NULL) { |
server | 200 | fs/smbfs/sock.c | (unsigned int)(server->data_ready)); |
server | 202 | fs/smbfs/sock.c | sk->data_ready = server->data_ready; |
server | 203 | fs/smbfs/sock.c | server->data_ready = NULL; |
server | 294 | fs/smbfs/sock.c | smb_receive(struct smb_server *server, struct socket *sock) |
server | 298 | fs/smbfs/sock.c | result = smb_receive_raw(sock, server->packet, |
server | 299 | fs/smbfs/sock.c | server->max_xmit - 4, /* max_xmit in server |
server | 308 | fs/smbfs/sock.c | server->rcls = *((unsigned char *)(server->packet+9)); |
server | 309 | fs/smbfs/sock.c | server->err = *((unsigned short *)(server->packet+11)); |
server | 311 | fs/smbfs/sock.c | if (server->rcls != 0) { |
server | 313 | fs/smbfs/sock.c | server->rcls, server->err); |
server | 324 | fs/smbfs/sock.c | smb_receive_trans2(struct smb_server *server, struct socket *sock, |
server | 331 | fs/smbfs/sock.c | unsigned char *inbuf = server->packet; |
server | 337 | fs/smbfs/sock.c | if ((result = smb_receive(server, sock)) < 0) { |
server | 341 | fs/smbfs/sock.c | if (server->rcls != 0) { |
server | 412 | fs/smbfs/sock.c | if ((result = smb_receive(server, sock)) < 0) { |
server | 415 | fs/smbfs/sock.c | if (server->rcls != 0) { |
server | 434 | fs/smbfs/sock.c | server_sock(struct smb_server *server) |
server | 439 | fs/smbfs/sock.c | if (server == NULL) |
server | 441 | fs/smbfs/sock.c | if ((file = server->sock_file) == NULL) |
server | 449 | fs/smbfs/sock.c | smb_release(struct smb_server *server) |
server | 451 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
server | 471 | fs/smbfs/sock.c | smb_connect(struct smb_server *server) |
server | 473 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
server | 480 | fs/smbfs/sock.c | return sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr), |
server | 491 | fs/smbfs/sock.c | smb_request(struct smb_server *server) |
server | 498 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
server | 499 | fs/smbfs/sock.c | unsigned char *buffer = (server == NULL) ? NULL : server->packet; |
server | 506 | fs/smbfs/sock.c | if (server->state != CONN_VALID) |
server | 509 | fs/smbfs/sock.c | if ((result = smb_dont_catch_keepalive(server)) != 0) { |
server | 510 | fs/smbfs/sock.c | server->state = CONN_INVALID; |
server | 511 | fs/smbfs/sock.c | smb_invalidate_all_inodes(server); |
server | 529 | fs/smbfs/sock.c | result = smb_receive(server, sock); |
server | 538 | fs/smbfs/sock.c | if ((result2 = smb_catch_keepalive(server)) < 0) { |
server | 543 | fs/smbfs/sock.c | server->state = CONN_INVALID; |
server | 544 | fs/smbfs/sock.c | smb_invalidate_all_inodes(server); |
server | 557 | fs/smbfs/sock.c | smb_trans2_request(struct smb_server *server, |
server | 566 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
server | 567 | fs/smbfs/sock.c | unsigned char *buffer = (server == NULL) ? NULL : server->packet; |
server | 574 | fs/smbfs/sock.c | if (server->state != CONN_VALID) |
server | 577 | fs/smbfs/sock.c | if ((result = smb_dont_catch_keepalive(server)) != 0) { |
server | 578 | fs/smbfs/sock.c | server->state = CONN_INVALID; |
server | 579 | fs/smbfs/sock.c | smb_invalidate_all_inodes(server); |
server | 597 | fs/smbfs/sock.c | result = smb_receive_trans2(server, sock, |
server | 608 | fs/smbfs/sock.c | if ((result2 = smb_catch_keepalive(server)) < 0) { |
server | 613 | fs/smbfs/sock.c | server->state = CONN_INVALID; |
server | 614 | fs/smbfs/sock.c | smb_invalidate_all_inodes(server); |
server | 624 | fs/smbfs/sock.c | smb_request_read_raw(struct smb_server *server, |
server | 632 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
server | 633 | fs/smbfs/sock.c | unsigned char *buffer = (server == NULL) ? NULL : server->packet; |
server | 640 | fs/smbfs/sock.c | if (server->state != CONN_VALID) |
server | 643 | fs/smbfs/sock.c | if ((result = smb_dont_catch_keepalive(server)) != 0) { |
server | 644 | fs/smbfs/sock.c | server->state = CONN_INVALID; |
server | 645 | fs/smbfs/sock.c | smb_invalidate_all_inodes(server); |
server | 680 | fs/smbfs/sock.c | if ((result2 = smb_catch_keepalive(server)) < 0) { |
server | 685 | fs/smbfs/sock.c | server->state = CONN_INVALID; |
server | 686 | fs/smbfs/sock.c | smb_invalidate_all_inodes(server); |
server | 698 | fs/smbfs/sock.c | smb_request_write_raw(struct smb_server *server, |
server | 707 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
server | 708 | fs/smbfs/sock.c | unsigned char *buffer = (server == NULL) ? NULL : server->packet; |
server | 715 | fs/smbfs/sock.c | if (server->state != CONN_VALID) |
server | 718 | fs/smbfs/sock.c | if ((result = smb_dont_catch_keepalive(server)) != 0) { |
server | 719 | fs/smbfs/sock.c | server->state = CONN_INVALID; |
server | 720 | fs/smbfs/sock.c | smb_invalidate_all_inodes(server); |
server | 744 | fs/smbfs/sock.c | result = smb_receive(server, sock); |
server | 754 | fs/smbfs/sock.c | if ((result2 = smb_catch_keepalive(server)) < 0) { |
server | 759 | fs/smbfs/sock.c | server->state = CONN_INVALID; |
server | 760 | fs/smbfs/sock.c | smb_invalidate_all_inodes(server); |
server | 128 | include/linux/ncp_fs.h | void ncp_free_all_inodes(struct ncp_server *server); |
server | 129 | include/linux/ncp_fs.h | void ncp_init_root(struct ncp_server *server); |
server | 130 | include/linux/ncp_fs.h | int ncp_conn_logged_in(struct ncp_server *server); |
server | 134 | include/linux/ncp_fs.h | ino_t ncp_info_ino(struct ncp_server *server, struct ncp_inode_info *info); |
server | 148 | include/linux/ncp_fs.h | void ncp_trigger_message(struct ncp_server *server); |
server | 151 | include/linux/ncp_fs.h | int ncp_request(struct ncp_server *server, int function); |
server | 152 | include/linux/ncp_fs.h | int ncp_connect(struct ncp_server *server); |
server | 153 | include/linux/ncp_fs.h | int ncp_disconnect(struct ncp_server *server); |
server | 154 | include/linux/ncp_fs.h | int ncp_catch_watchdog(struct ncp_server *server); |
server | 155 | include/linux/ncp_fs.h | int ncp_dont_catch_watchdog(struct ncp_server *server); |
server | 156 | include/linux/ncp_fs.h | int ncp_catch_message(struct ncp_server *server); |
server | 157 | include/linux/ncp_fs.h | void ncp_lock_server(struct ncp_server *server); |
server | 158 | include/linux/ncp_fs.h | void ncp_unlock_server(struct ncp_server *server); |
server | 61 | include/linux/ncp_fs_sb.h | ncp_conn_valid(struct ncp_server *server) |
server | 63 | include/linux/ncp_fs_sb.h | return ((server->conn_status & 0x11) == 0); |
server | 67 | include/linux/ncp_fs_sb.h | ncp_invalidate_conn(struct ncp_server *server) |
server | 69 | include/linux/ncp_fs_sb.h | server->conn_status |= 0x01; |
server | 60 | include/linux/nfs_fs.h | extern int nfs_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 62 | include/linux/nfs_fs.h | extern int nfs_proc_setattr(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 64 | include/linux/nfs_fs.h | extern int nfs_proc_lookup(struct nfs_server *server, struct nfs_fh *dir, |
server | 67 | include/linux/nfs_fs.h | extern int nfs_proc_readlink(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 70 | include/linux/nfs_fs.h | extern int nfs_proc_read(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 75 | include/linux/nfs_fs.h | extern int nfs_proc_create(struct nfs_server *server, struct nfs_fh *dir, |
server | 78 | include/linux/nfs_fs.h | extern int nfs_proc_remove(struct nfs_server *server, struct nfs_fh *dir, |
server | 80 | include/linux/nfs_fs.h | extern int nfs_proc_rename(struct nfs_server *server, |
server | 83 | include/linux/nfs_fs.h | extern int nfs_proc_link(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 85 | include/linux/nfs_fs.h | extern int nfs_proc_symlink(struct nfs_server *server, struct nfs_fh *dir, |
server | 87 | include/linux/nfs_fs.h | extern int nfs_proc_mkdir(struct nfs_server *server, struct nfs_fh *dir, |
server | 90 | include/linux/nfs_fs.h | extern int nfs_proc_rmdir(struct nfs_server *server, struct nfs_fh *dir, |
server | 92 | include/linux/nfs_fs.h | extern int nfs_proc_readdir(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 94 | include/linux/nfs_fs.h | extern int nfs_proc_statfs(struct nfs_server *server, struct nfs_fh *fhandle, |
server | 106 | include/linux/nfs_fs.h | extern int nfs_rpc_call(struct nfs_server *server, int *start, |
server | 108 | include/linux/nfs_fs.h | extern int nfs_rpc_doio(struct nfs_server *server, struct rpc_ioreq *, |
server | 102 | include/linux/smb_fs.h | void smb_free_all_inodes(struct smb_server *server); |
server | 103 | include/linux/smb_fs.h | void smb_init_root(struct smb_server *server); |
server | 104 | include/linux/smb_fs.h | int smb_stat_root(struct smb_server *server); |
server | 107 | include/linux/smb_fs.h | void smb_invalidate_all_inodes(struct smb_server *server); |
server | 119 | include/linux/smb_fs.h | void smb_invalidate_connection(struct smb_server *server); |
server | 120 | include/linux/smb_fs.h | int smb_conn_is_valid(struct smb_server *server); |
server | 125 | include/linux/smb_fs.h | int smb_proc_open(struct smb_server *server, const char *pathname, |
server | 127 | include/linux/smb_fs.h | int smb_proc_close(struct smb_server *server, struct smb_dirent *finfo); |
server | 128 | include/linux/smb_fs.h | int smb_proc_read(struct smb_server *server, struct smb_dirent *finfo, |
server | 130 | include/linux/smb_fs.h | int smb_proc_read_raw(struct smb_server *server, struct smb_dirent *finfo, |
server | 132 | include/linux/smb_fs.h | int smb_proc_write(struct smb_server *server, struct smb_dirent *finfo, |
server | 134 | include/linux/smb_fs.h | int smb_proc_write_raw(struct smb_server *server, struct smb_dirent *finfo, |
server | 136 | include/linux/smb_fs.h | int smb_proc_create(struct smb_server *server, const char *path, |
server | 138 | include/linux/smb_fs.h | int smb_proc_mknew(struct smb_server *server, const char *path, int len, |
server | 140 | include/linux/smb_fs.h | int smb_proc_mv(struct smb_server *server, const char *opath, const int olen, |
server | 142 | include/linux/smb_fs.h | int smb_proc_mkdir(struct smb_server *server, const char *path, const int len); |
server | 143 | include/linux/smb_fs.h | int smb_proc_rmdir(struct smb_server *server, const char *path, const int len); |
server | 144 | include/linux/smb_fs.h | int smb_proc_unlink(struct smb_server *server, const char *path, |
server | 146 | include/linux/smb_fs.h | int smb_proc_readdir(struct smb_server *server, struct inode *dir, |
server | 149 | include/linux/smb_fs.h | int smb_proc_getattr(struct smb_server *server, const char *path, |
server | 151 | include/linux/smb_fs.h | int smb_proc_setattr(struct smb_server *server, |
server | 154 | include/linux/smb_fs.h | int smb_proc_chkpath(struct smb_server *server, char *path, int len, |
server | 157 | include/linux/smb_fs.h | int smb_proc_reconnect(struct smb_server *server); |
server | 158 | include/linux/smb_fs.h | int smb_proc_connect(struct smb_server *server); |
server | 159 | include/linux/smb_fs.h | int smb_proc_disconnect(struct smb_server *server); |
server | 160 | include/linux/smb_fs.h | int smb_proc_trunc(struct smb_server *server, word fid, dword length); |
server | 163 | include/linux/smb_fs.h | int smb_release(struct smb_server *server); |
server | 164 | include/linux/smb_fs.h | int smb_connect(struct smb_server *server); |
server | 165 | include/linux/smb_fs.h | int smb_request(struct smb_server *server); |
server | 166 | include/linux/smb_fs.h | int smb_request_read_raw(struct smb_server *server, |
server | 168 | include/linux/smb_fs.h | int smb_request_write_raw(struct smb_server *server, |
server | 170 | include/linux/smb_fs.h | int smb_catch_keepalive(struct smb_server *server); |
server | 171 | include/linux/smb_fs.h | int smb_dont_catch_keepalive(struct smb_server *server); |
server | 172 | include/linux/smb_fs.h | int smb_trans2_request(struct smb_server *server, |