Comment 3 for bug 663672

Revision history for this message
Tim White (timwhite88) wrote :

From my poking around, it appears the bug will be in both this package, and nfs-common.
showmount's output doesn't allow for parsing as it uses spaces to separate the fields (exportname and the ipaddress of who can mount it). Ideally it needs to use a : between the fields not whitespace.
If showmount is modified, then auto.net will also need to be modified. Maybe another switch can be added to showmount that outputs parsable output. e.g.

$ showmount -e ubuntu
Export list for ubuntu:
/mnt/DVD_rip 192.168.8.0/16

becomes

$ showmount -m -e ubuntu
Export list for ubuntu:
/mnt/DVD_rip:192.168.8.0/16

and the korby mount options become
$ showmount -e korby
Export list for korby:
/Qweb:
/Qusb:
/Qrecordings:
/Qmultimedia;
/Qdownload:
/Public:
/Photos:
/Network Recycle Bin 4:
/Network Recycle Bin 3:
/Network Recycle Bin 1:
/Media:
/Documents:
/DVD_rip:

As you can see, the output of showmount varies depending on the server. Korby doesn't give the second field that shows what ip's can mount it. Below is the output of a WD MyBook World Edition II, which doesn't even give consistent output!

$ showmount -e max
Export list for max:
/DataVolume/Photos *
/DataVolume/Public *
/DataVolume/Download *
/ExtendVolume/Media (everyone)