ncp_get_fs_info(struct ncp_server* server, struct inode* inode, struct ncp_fs_info __user *arg) 
ncp_get_fs_info(struct ncp_server * server, struct file *file, struct ncp_fs_info __user *arg) 
ncp_get_fs_info(struct ncp_server* server, struct inode* inode, struct ncp_fs_info __user *arg){	struct ncp_fs_info info;	if ((permission(inode, MAY_WRITE, NULL) != 0)	    && (current->uid != server->m.mounted_uid)) {		return -EACCES;	}	if (copy_from_user(&info, arg, sizeof(info)))		return -EFAULT;	if (info.version != NCP_GET_FS_INFO_VERSION) {		DPRINTK("info.version invalid: %d\n", info.version);		return -EINVAL;	}	/* TODO: info.addr = server->m.serv_addr; */	SET_UID(info.mounted_uid, server->m.mounted_uid);	info.connection		= server->connection;	info.buffer_size	= server->buffer_size;	info.volume_number	= NCP_FINFO(inode)->volNumber;	info.directory_id	= NCP_FINFO(inode)->DosDirNum;	if (copy_to_user(arg, &info, sizeof(info)))		return -EFAULT;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/8c744fb83da0771afa04695028e3550b798dad90/ioctl.c/buggy/fs/ncpfs/ioctl.c