mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Report realpath() canonicalization error
Rather than just reporting the failure include the passed mount point and error number. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1153
This commit is contained in:
		
							parent
							
								
									761394b3af
								
							
						
					
					
						commit
						87bdc45ccb
					
				| @ -372,7 +372,8 @@ main(int argc, char **argv) | ||||
| 	/* canonicalize the mount point */ | ||||
| 	if (realpath(argv[1], mntpoint) == NULL) { | ||||
| 		(void) fprintf(stderr, gettext("filesystem '%s' cannot be " | ||||
| 		    "mounted due to a canonicalization failure.\n"), dataset); | ||||
| 		    "mounted at '%s' due to canonicalization error %d.\n"), | ||||
| 		    dataset, argv[1], errno); | ||||
| 		return (MOUNT_SYSERR); | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Brian Behlendorf
						Brian Behlendorf