patch-1.3.78 linux/fs/ncpfs/ioctl.c
Next file: linux/fs/ncpfs/ncplib_kernel.c
Previous file: linux/fs/isofs/inode.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Fri Mar 22 12:58:41 1996
- Orig file:
v1.3.77/linux/fs/ncpfs/ioctl.c
- Orig date:
Tue Mar 5 10:11:07 1996
diff -u --recursive --new-file v1.3.77/linux/fs/ncpfs/ioctl.c linux/fs/ncpfs/ioctl.c
@@ -23,6 +23,26 @@
struct ncp_fs_info info;
struct ncp_server *server = NCP_SERVER(inode);
+ /*
+ * Binary compatible with 1.3.XX releases.
+ * Take this out in 2.1.0 development series.
+ * <mec@duracef.shout.net> 12 Mar 1996
+ */
+ switch(cmd) {
+ case _IOR('n', 1, unsigned char *):
+ cmd = NCP_IOC_NCPREQUEST;
+ break;
+ case _IOR('u', 1, uid_t):
+ cmd = NCP_IOC_GETMOUNTUID;
+ break;
+ case _IO('l', 1):
+ cmd = NCP_IOC_CONN_LOGGED_IN;
+ break;
+ case _IOWR('i', 1, unsigned char *):
+ cmd = NCP_IOC_GET_FS_INFO;
+ break;
+ }
+
switch(cmd) {
case NCP_IOC_NCPREQUEST:
@@ -106,10 +126,12 @@
return -EINVAL;
}
- info.addr = server->m.serv_addr;
- info.mounted_uid = server->m.mounted_uid;
- info.connection = server->connection;
- info.buffer_size = server->buffer_size;
+ info.addr = server->m.serv_addr;
+ info.mounted_uid = server->m.mounted_uid;
+ info.connection = server->connection;
+ info.buffer_size = server->buffer_size;
+ info.volume_number = NCP_ISTRUCT(inode)->volNumber;
+ info.directory_id = NCP_ISTRUCT(inode)->DosDirNum;
memcpy_tofs((struct ncp_fs_info *)arg, &info, sizeof(info));
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this