Opened 15 years ago

Closed 15 years ago

#304 closed defect (fixed)

-n options unable to discover NFS mount by hostname instead of IP

Reported by: clotho Owned by: Bruno Cornec
Priority: normal Milestone: 2.2.9
Component: mondo Version: 2.2.7
Severity: normal Keywords:


I have a machine with hostname "node01" and IP ""

The command "mondoarchive -On" fails with error "NFS share is not mounted. Please mount it." while "mondoarchive -On node01:/mnt/nfs" successes.

From source code, I find that at line 646 of mondo-cli.c

At the fail case, the code grep " .*" from output of mount. However, As I mount the export by hostname, the output of mount is

node01:/mnt/nfs on /mnt/nfs type nfs (rw,addr=

Therefore the grep fails.

Change History (3)

comment:1 by Bruno Cornec, 15 years ago

Status: newassigned

comment:2 by clotho, 15 years ago

Moreover, if there is a '/' at end of the export, mondorescue also fails to detect it. For example,

node01:/mnt/nfs/ on /mnt/nfs type nfs (rw,addr= on /mnt/nfs type nfs (rw,addr=

comment:3 by Bruno Cornec, 15 years ago

Resolution: fixed
Status: assignedclosed

Should be fixed (at least partly) with rev [2223], even if in your case it would mount the NFS dir twice then probably.

Note: See TracTickets for help on using tickets.