From 14f4a50b4b51bc4bdf56cfd43d8ae598579c4e6d Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Mon, 16 Jul 2007 16:29:01 -0400 Subject: mount.nfs: No need to return nfs_mount_data structs Refactor mount processing slightly to remove an output parameter and an unnecessary type cast. The mount syscall is now made from inside nfs_mount or nfs4mount, rather than in common code after those are called. Code review suggests that EX_BG was never returned by mount.nfs because the logic I just replaced was always returning EX_FAIL. The new logic should properly return EX_BG when appropriate. However, it is unclear whether /bin/mount handles backgrounding the mount request, or whether mount.nfs should. Signed-off-by: Chuck Lever Signed-off-by: Neil Brown --- utils/mount/nfs_mount.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'utils/mount/nfs_mount.h') diff --git a/utils/mount/nfs_mount.h b/utils/mount/nfs_mount.h index e566083..169f12e 100644 --- a/utils/mount/nfs_mount.h +++ b/utils/mount/nfs_mount.h @@ -80,7 +80,6 @@ struct nfs_mount_data { #define AUTH_GSS_SPKMP 390011 #endif -int nfsmount(const char *, const char *, int *, char **, char **, - int, int); +int nfsmount(const char *, const char *, int *, char **, int, int); #endif /* _NFS_MOUNT_H */ -- cgit