Triode wrote: 
> I'm reasonably sure I am passing the selected type to mount, but then it
> stores and displays what mount returns.  Can you run soa-web.lua
> manually with --debug and see what it is doing? (killall luajit then
> start it manually from the command line with --debug)




Running soa-web.lua manually with --debug. Data entered on screen was:


Code:
--------------------
    
  Mountpoint: /mnt/disk1
  Network Share: 192.168.0.20:/media/allmusic/Test
  Type: nfs
  Options: ro
  
--------------------



Debug output when a NFS share is added:



Code:
--------------------
    
  D 2014/07/14 21:12:01] execute: sudo systemctl enable nfs-client.target
  [D 2014/07/14 21:12:05] execute: sudo systemctl start nfs-client.target
  [D 2014/07/14 21:12:06] capture: sudo mount -t nfs -o ro 
192.168.0.20:/media/allmusic/Test /mnt/disk1
  [D 2014/07/14 21:12:07] capture: mount
  [D 2014/07/14 21:12:07] execute: sudo cp /tmp/config.tmp-luagui /etc/fstab
  [D 2014/07/14 21:12:07] execute: rm /tmp/config.tmp-luagui
  [D 2014/07/14 21:12:07] wrote and updated fstab
  [D 2014/07/14 21:12:07] capture: mount
  [S 2014/07/14 21:12:08] [web.lua] 200 OK POST /storage.html (192.168.0.20) 
6422ms
  
--------------------


the output from mount includes this:


Code:
--------------------
    
  192.168.0.20:/media/allmusic/Test on /mnt/disk1 type nfs4 
(ro,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.204,local_lock=none,addr=192.168.0.20)
  
--------------------


and /etc/fstab is this:


Code:
--------------------
    
  [root@alarm ~]# cat /etc/fstab
  # 
  # /etc/fstab: static file system information
  #
  # <file system> <dir>   <type>  <options>       <dump>  <pass>
  # start added by soa-web
  192.168.0.20:/media/allmusic/Test       /mnt/disk1      nfs4    ro      0     
  0
  # end added by soa-web
  
--------------------


Note NFS is mounted as NFS4. Only when vers-3 is entered as an option do
you actaully get a nfs mount when you select share type nfs.


------------------------------------------------------------------------
Krisbee's Profile: http://forums.slimdevices.com/member.php?userid=59080
View this thread: http://forums.slimdevices.com/showthread.php?t=101624

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to