root/include/linux/ncp_mount.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  *  ncp_mount.h
   3  *
   4  *  Copyright (C) 1995, 1996 by Volker Lendecke
   5  *
   6  */
   7 
   8 #ifndef _LINUX_NCP_MOUNT_H
   9 #define _LINUX_NCP_MOUNT_H
  10 
  11 #include <linux/types.h>
  12 #include <linux/ipx.h>
  13 #include <linux/ncp.h>
  14 #include <linux/ncp_fs_i.h>
  15 
  16 #define NCP_MOUNT_VERSION 2
  17 
  18 #define NCP_USERNAME_LEN (NCP_BINDERY_NAME_LEN)
  19 #define NCP_PASSWORD_LEN 20
  20 
  21 /* Values for flags */
  22 #define NCP_MOUNT_SOFT 0x0001
  23 #define NCP_MOUNT_INTR 0x0002
  24 
  25 struct ncp_mount_data {
  26         int version;
  27         unsigned int ncp_fd;    /* The socket to the ncp port */
  28         unsigned int wdog_fd;   /* Watchdog packets come here */
  29         unsigned int message_fd; /* Message notifications come here */
  30         uid_t mounted_uid;      /* Who may umount() this filesystem? */
  31 
  32         struct sockaddr_ipx serv_addr;
  33         unsigned char server_name[NCP_BINDERY_NAME_LEN];
  34 
  35         unsigned char mount_point[PATH_MAX+1];
  36         unsigned char mounted_vol[NCP_VOLNAME_LEN+1];
  37 
  38         unsigned int time_out;  /* How long should I wait after
  39                                    sending a NCP request? */
  40         unsigned int retry_count; /* And how often should I retry? */
  41         unsigned int flags;
  42 
  43         uid_t uid;
  44         gid_t gid;
  45         mode_t file_mode;
  46         mode_t dir_mode;
  47 };
  48 
  49 #endif

/* [previous][next][first][last][top][bottom][index][help] */