SmbFs & NcpFs on 2.1.xx - how ?

SmbFs & NcpFs on 2.1.xx - how ?

Post by Yarick Rastrig » Sun, 09 Nov 1997 04:00:00



Hi !
Well, I'm working now with 2.1.62 . And some ( maybe stupid, maybe they are
FAQ, but ) questions are appearing . First, who succeeded in compiling
smbmount and smbumount with new kernels ? They are complaining about some
missing members in structure. Looking at *.h files - this members are, really,
not present. So, how to compile smbmount from smbfs-2.0.2 or where to get
new smbfs package for the new kernel ? May be, this can be done with new mount ?
( SmbClient from samba 1.9.17pl2 compiles fine, but interface is ugly and
unfriendly. May be, I'm a lamer, but I want to have it all mounted normal way ;)
Then , ncpfs pack. The problem is roughly the same - problems with compilation.
Something undefined, something can't be found - and such an errors are all
the way ( errors take about 20 kb , routed in a file ). So, again, how to
compile or where to get binaries ?

 
 
 

SmbFs & NcpFs on 2.1.xx - how ?

Post by Yarick Rastrig » Sun, 09 Nov 1997 04:00:00


Hi !
Well, I'm working now with 2.1.62 . And some ( maybe stupid, maybe they are
FAQ, but ) questions are appearing . First, who succeeded in compiling
smbmount and smbumount with new kernels ? They are complaining about some
missing members in structure. Looking at *.h files - this members are, really,
not present. So, how to compile smbmount from smbfs-2.0.2 or where to get
new smbfs package for the new kernel ? May be, this can be done with new mount ?
( SmbClient from samba 1.9.17pl2 compiles fine, but interface is ugly and
unfriendly. May be, I'm a lamer, but I want to have it all mounted normal way ;)
Then , ncpfs pack. The problem is roughly the same - problems with compilation.
Something undefined, something can't be found - and such an errors are all
the way ( errors take about 20 kb , routed in a file ). So, again, how to
compile or where to get binaries ?


 
 
 

SmbFs & NcpFs on 2.1.xx - how ?

Post by Yarick Rastrig » Sun, 09 Nov 1997 04:00:00


Hi !
Well, I'm working now with 2.1.62 . And some ( maybe stupid, maybe they are
FAQ, but ) questions are appearing . First, who succeeded in compiling
smbmount and smbumount with new kernels ? They are complaining about some
missing members in structure. Looking at *.h files - this members are, really,
not present. So, how to compile smbmount from smbfs-2.0.2 or where to get
new smbfs package for the new kernel ? May be, this can be done with new mount ?
( SmbClient from samba 1.9.17pl2 compiles fine, but interface is ugly and
unfriendly. May be, I'm a lamer, but I want to have it all mounted normal way ;)
Then , ncpfs pack. The problem is roughly the same - problems with compilation.
Something undefined, something can't be found - and such an errors are all
the way ( errors take about 20 kb , routed in a file ). So, again, how to
compile or where to get binaries ?

 
 
 

SmbFs & NcpFs on 2.1.xx - how ?

Post by Yarick Rastrig » Sun, 09 Nov 1997 04:00:00


Hi !
Well, I'm working now with 2.1.62 . And some ( maybe stupid, maybe they are
FAQ, but ) questions are appearing . First, who succeeded in compiling
smbmount and smbumount with new kernels ? They are complaining about some
missing members in structure. Looking at *.h files - this members are, really,
not present. So, how to compile smbmount from smbfs-2.0.2 or where to get
new smbfs package for the new kernel ? May be, this can be done with new mount ?
( SmbClient from samba 1.9.17pl2 compiles fine, but interface is ugly and
unfriendly. May be, I'm a lamer, but I want to have it all mounted normal way ;)
Then , ncpfs pack. The problem is roughly the same - problems with compilation.
Something undefined, something can't be found - and such an errors are all
the way ( errors take about 20 kb , routed in a file ). So, again, how to
compile or where to get binaries ?


 
 
 

1. Modem and linux 2.0.xx / 2.1.xx

I've built a routine to detect if the modem is currently dialing:

#define OPEN_MODEM(M)       open(M, O_RDONLY | O_NONBLOCK | O_NOCTTY)
#define MAGIC_SERIAL_FLAG 000200000000

int is_modem_dialing(char* modem_device)
{
   struct serial_struct ss;
   int    fd;

   if((fd = OPEN_MODEM(modem_device)) < 0)
      log_fatal("is_modem_dialing: error opening %s", modem_device);

   if(ioctl(fd, TIOCGSERIAL, &ss) < 0)
      log_fatal("is_modem_dialing: ioctl (TIOGSERIAL)");

   log_debug("%s is %s", modem_device, (ss.flags & MAGIC_SERIAL_FLAG) == 0
? "dialing" : "not dialing");

   close(fd);
   return (ss.flags & MAGIC_SERIAL_FLAG) == 0;  /* magic flag */

The magic serial flag is something I found while hacking around with serial
structs, and is not defined in kernel 2.0.xx (as far as I know).

The problem occurs when I try to compile on 2.1.xx, which does define those
values, thus breaking my code (I know, I know, it's a bad idea to be messig
around like this in the first place)

I could put in a check that looks in /proc for something that gives me a
clue about the kernel version so I can change the magic serial flag checked
for at runtime, but I would prefer if there was some other more compatible
way to check the modem.

In the end, I need to know either if the modem is dialing, or if the modem
is off-hook.

Any ideas?

2. sendmail problem

3. firewall kernel: martian source 196.xx.xx.xx from 165,146.xx.xx on dev eth0 ???

4. question on quotas

5. PPP & 2.1.XX kernal problem

6. 5.0 RC 3 !!!

7. Schneider & Koch network card on series 2.1.xx kernels

8. how does MS beta-test?

9. Could not reverse map address xx.xx.xx.xx???

10. connection was refused when connect to xx.xx.xx.xx

11. Linux Kernel 2.0.X + ncpfs + smbfs + masquerade

12. mounting smbfs in 2.1.6x

13. Smbfs with 2.1.6x