Project

General

Profile

Bug #847 ยป mount_nfs01.diff

tuxillo, 02/24/2014 08:36 AM

View differences:

sbin/mount_nfs/mount_nfs.c
nfsproto = IPPROTO_UDP;
nfsargsp->sotype = SOCK_DGRAM;
}
/* INTR by default */
nfsargsp->flags |= NFSMNT_INT;
while ((c = getopt(argc, argv,
"23a:bcdD:g:I:iKlm:No:PR:r:sTt:w:x:U")) != -1)
"23a:bcdD:g:I:iKlm:No:PR:r:sTt:w:x:uU")) != -1)
switch (c) {
case '2':
mountmode = V2;
......
case 'i':
nfsargsp->flags |= NFSMNT_INT;
break;
case 'u':
nfsargsp->flags &= ~NFSMNT_INT;
break;
#ifdef NFSKERB
case 'K':
nfsargsp->flags |= NFSMNT_KERB;
......
usage(void)
{
fprintf(stderr, "%s\n%s\n%s\n%s\n",
"usage: mount_nfs [-23KNPTUbcdils] [-D deadthresh] [-I readdirsize]",
"usage: mount_nfs [-23KNPTUbcdilus] [-D deadthresh] [-I readdirsize]",
" [-R retrycnt] [-a maxreadahead]",
" [-g maxgroups] [-m realm] [-o options] [-r readsize]",
" [-t timeout] [-w writesize] [-x retrans] rhost:path node");
    (1-1/1)