Import ncpfs 0.8

This commit is contained in:
ncpfs archive import
2026-04-28 20:39:57 +02:00
parent f2bcb2c71e
commit c6124785a9
10 changed files with 62 additions and 22 deletions

View File

@@ -220,7 +220,7 @@ ncp_readdir(struct inode *inode, struct file *filp,
}
if (entry == NULL) {
DPRINTK("ncp_readdir: Not found in cache.\n");
DDPRINTK("ncp_readdir: Not found in cache.\n");
if (inode->i_ino == (int)&(server->root)) {
@@ -580,7 +580,7 @@ ncp_find_inode(struct inode *dir, const char *name)
}
do {
if ( (result->finfo.i.DosDirNum == dir_info->DosDirNum)
if ( (result->dir->finfo.i.DosDirNum == dir_info->DosDirNum)
&& (strcmp(result->finfo.i.entryName, name) == 0))
return result;
result = result->next;
@@ -619,7 +619,13 @@ ncp_lookup(struct inode *dir, const char *__name, int len,
/* ..and for .. */
if (len == 2 && __name[0] == '.' && __name[1] == '.') {
*result = iget(dir->i_sb, (int)(NCP_INOP(dir)->dir));
struct ncp_inode_info *parent = NCP_INOP(dir)->dir;
if (parent->state == INODE_CACHED) {
parent->state = INODE_LOOKED_UP;
}
*result = iget(dir->i_sb, (int)parent);
iput(dir);
if (*result == 0)
return -EACCES;

View File

@@ -149,6 +149,9 @@ ncp_put_inode(struct inode *inode)
printk("ncp_put_inode: could not close\n");
}
}
DDPRINTK("ncp_put_inode: put %s\n",
finfo->i.entryName);
ncp_free_inode_info(NCP_INOP(inode));

View File

@@ -71,8 +71,8 @@ ncp_wdog_data_ready(struct sock *sk, int len)
} else {
int result;
DPRINTK("ncpfs: got watchdog from:\n");
DPRINTK("ncpfs: %08lX:%02X%02X%02X%02X%02X%02X:%04X,"
DDPRINTK("ncpfs: got watchdog from:\n");
DDPRINTK("ncpfs: %08lX:%02X%02X%02X%02X%02X%02X:%04X,"
" conn:%02X,type:%c\n",
htonl(sender.sipx_network),
sender.sipx_node[0], sender.sipx_node[1],
@@ -86,7 +86,7 @@ ncp_wdog_data_ready(struct sock *sk, int len)
2, 1, 0,
(struct sockaddr *)&sender,
sizeof(sender));
DPRINTK("send result: %d\n", result);
DDPRINTK("send result: %d\n", result);
}
set_fs(fs);
}