mount.c (1cd26987051de60ed78409e382b3fbac12198fd3) | mount.c (5ddc8ded1dbe650b7d83240a1f86a1eb6e2b9b5a) |
---|---|
1/*- 2 * Copyright (c) 1980, 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95"; 43#else 44static const char rcsid[] = | 1/*- 2 * Copyright (c) 1980, 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95"; 43#else 44static const char rcsid[] = |
45 "$Id: mount.c,v 1.23 1998/03/08 09:56:02 julian Exp $"; | 45 "$Id: mount.c,v 1.24 1998/03/27 10:52:13 peter Exp $"; |
46#endif 47#endif /* not lint */ 48 49#include <sys/param.h> 50#include <sys/mount.h> 51#include <sys/stat.h> 52#include <sys/wait.h> 53 --- 32 unchanged lines hidden (view full) --- 86} optnames[] = { 87 { MNT_ASYNC, "asynchronous" }, 88 { MNT_EXPORTED, "NFS exported" }, 89 { MNT_LOCAL, "local" }, 90 { MNT_NOATIME, "noatime" }, 91 { MNT_NODEV, "nodev" }, 92 { MNT_NOEXEC, "noexec" }, 93 { MNT_NOSUID, "nosuid" }, | 46#endif 47#endif /* not lint */ 48 49#include <sys/param.h> 50#include <sys/mount.h> 51#include <sys/stat.h> 52#include <sys/wait.h> 53 --- 32 unchanged lines hidden (view full) --- 86} optnames[] = { 87 { MNT_ASYNC, "asynchronous" }, 88 { MNT_EXPORTED, "NFS exported" }, 89 { MNT_LOCAL, "local" }, 90 { MNT_NOATIME, "noatime" }, 91 { MNT_NODEV, "nodev" }, 92 { MNT_NOEXEC, "noexec" }, 93 { MNT_NOSUID, "nosuid" }, |
94 { MNT_NOSYMFOLLOW, "nosymfollow" }, |
|
94 { MNT_QUOTA, "with quotas" }, 95 { MNT_RDONLY, "read-only" }, 96 { MNT_SYNCHRONOUS, "synchronous" }, 97 { MNT_UNION, "union" }, 98 { MNT_NOCLUSTERR, "noclusterr" }, 99 { MNT_NOCLUSTERW, "noclusterw" }, 100 { MNT_SUIDDIR, "suiddir" }, 101 { MNT_SOFTDEP, "soft-updates" }, --- 500 unchanged lines hidden (view full) --- 602 if (ent->f_flags & MNT_ASYNC) 603 printf(",async"); 604 if (ent->f_flags & MNT_NOATIME) 605 printf(",noatime"); 606 if (ent->f_flags & MNT_NOCLUSTERR) 607 printf(",noclusterr"); 608 if (ent->f_flags & MNT_NOCLUSTERW) 609 printf(",noclusterw"); | 95 { MNT_QUOTA, "with quotas" }, 96 { MNT_RDONLY, "read-only" }, 97 { MNT_SYNCHRONOUS, "synchronous" }, 98 { MNT_UNION, "union" }, 99 { MNT_NOCLUSTERR, "noclusterr" }, 100 { MNT_NOCLUSTERW, "noclusterw" }, 101 { MNT_SUIDDIR, "suiddir" }, 102 { MNT_SOFTDEP, "soft-updates" }, --- 500 unchanged lines hidden (view full) --- 603 if (ent->f_flags & MNT_ASYNC) 604 printf(",async"); 605 if (ent->f_flags & MNT_NOATIME) 606 printf(",noatime"); 607 if (ent->f_flags & MNT_NOCLUSTERR) 608 printf(",noclusterr"); 609 if (ent->f_flags & MNT_NOCLUSTERW) 610 printf(",noclusterw"); |
611 if (ent->f_flags & MNT_NOSYMFOLLOW) 612 printf (",nosymfollow"); |
|
610 if (ent->f_flags & MNT_SUIDDIR) 611 printf(",suiddir"); 612 613 if ((fst = getfsspec(ent->f_mntfromname))) 614 printf("\t%u %u\n", fst->fs_freq, fst->fs_passno); 615 else if ((fst = getfsfile(ent->f_mntonname))) 616 printf("\t%u %u\n", fst->fs_freq, fst->fs_passno); 617 else if (strcmp(ent->f_fstypename, "ufs") == 0) 618 printf("\t1 1\n"); 619 else 620 printf("\t0 0\n"); 621} | 613 if (ent->f_flags & MNT_SUIDDIR) 614 printf(",suiddir"); 615 616 if ((fst = getfsspec(ent->f_mntfromname))) 617 printf("\t%u %u\n", fst->fs_freq, fst->fs_passno); 618 else if ((fst = getfsfile(ent->f_mntonname))) 619 printf("\t%u %u\n", fst->fs_freq, fst->fs_passno); 620 else if (strcmp(ent->f_fstypename, "ufs") == 0) 621 printf("\t1 1\n"); 622 else 623 printf("\t0 0\n"); 624} |