NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rump vs. smbfs



On Fri, Jun 26, 2009 at 11:01:15AM +0100, Matthias Scheler wrote:
> On Fri, Jun 26, 2009 at 10:55:26AM +0100, Matthias Scheler wrote:
> > That patch works for me as well:
> > 
> > tron@lyssa:~tron#mount_smbfs //xxxx/babylon4 /mnt
> > Password:
> > tron@lyssa:~tron#ls -l /mnt/backups 
> > total 127
> > -rwxr-xr-x  1 root  wheel  15364 Jun 13 05:44 .DS_Store
> > drwxr-xr-x  1 root  wheel  16384 Jun 20 04:41 colwyn-20090620-040316
> > drwxr-xr-x  1 root  wheel  16384 Jun 21 04:40 colwyn-20090621-040317
> > drwxr-xr-x  1 root  wheel  16384 Jun 22 04:39 colwyn-20090622-040247
> > drwxr-xr-x  1 root  wheel  16384 Jun 23 04:40 colwyn-20090623-040237
> > drwxr-xr-x  1 root  wheel  16384 Jun 24 04:42 colwyn-20090624-040429
> > drwxr-xr-x  1 root  wheel  16384 Jun 25 04:38 colwyn-20090625-040150
> > drwxr-xr-x  1 root  wheel  16384 Jun 26 04:39 colwyn-20090626-040230
> > 
> > I can even read files without problems:

Even without the patch it works ... You only need to know where files
are located ;-)

> > tron@lyssa:~tron#gzip -tv 
> > /mnt/backups/colwyn-20090626-040230/root-20090626-040230.dump.gz
> > /mnt/backups/colwyn-20090626-040230/root-20090626-040230.dump.gz:       OK
> > 
> > Can you please ask for a review on "tech-kern" and eventually commit
> > this change?
> 
> No there is another problem which might or might not be related to
> your patch: the machine kernel crashed during unmount.

I do see some other crashes, ... Even mount_smbfs(8) will need some
work, as it does properly restore the used device on authentification
error.


njoly@lanfeust [~]> sudo ktrace -di mount_smbfs -I silo.pasteur.fr 
//njoly@silo/sis /mnt
Password: [WRONG PASSWORD]
mount_smbfs: unable to open connection
mount_smbfs: mount error for /mnt: Bad file descriptor

   587      1 mount_smbfs CALL  open(0x7f7fffffcf50,2,0)
   587      1 mount_smbfs NAMI  "/dev/nsmb0"
   587      1 mount_smbfs RET   open 3
   587      1 mount_smbfs CALL  ioctl(3,_IOW('n',0x6a,0x318),0x7f7fffffcfa0)
   587      1 mount_smbfs GIO   fd 3 wrote 792 bytes
   587      1 mount_smbfs RET   ioctl -1 errno 72 RPC struct is bad

njoly@lanfeust [~]> sudo ktrace -di mount_smbfs -I silo.pasteur.fr 
//njoly@silo/sis /mnt
Password: [WRONG PASSWORD]
mount_smbfs: unable to open connection
mount_smbfs: mount error for /mnt: Bad file descriptor

  1295      1 mount_smbfs CALL  open(0x7f7fffffcf50,2,0)
  1295      1 mount_smbfs NAMI  "/dev/nsmb0"
  1295      1 mount_smbfs RET   open -1 errno 16 Device busy
  1295      1 mount_smbfs CALL  open(0x7f7fffffcf50,2,0)
  1295      1 mount_smbfs NAMI  "/dev/nsmb1"
  1295      1 mount_smbfs RET   open 3
  1295      1 mount_smbfs CALL  ioctl(3,_IOW('n',0x6a,0x318),0x7f7fffffcfa0)
  1295      1 mount_smbfs GIO   fd 3 wrote 792 bytes
  1295      1 mount_smbfs RET   ioctl -1 errno 72 RPC struct is bad

I'll try to have a closer look.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index