Deleted Added
full compact
mount.c (56038) mount.c (65023)
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#endif
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#endif
44static const char rcsid[] =
45 "$FreeBSD: head/sbin/mount/mount.c 56038 2000-01-15 14:28:14Z green $";
45 "$FreeBSD: head/sbin/mount/mount.c 65023 2000-08-23 09:59:25Z sheldonh $";
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/mount.h>
50#include <sys/stat.h>
51#include <sys/wait.h>
52
53#include <err.h>

--- 463 unchanged lines hidden (view full) ---

517 }
518 if (sfp->f_owner) {
519 (void)printf(", mounted by ");
520 if ((pw = getpwuid(sfp->f_owner)) != NULL)
521 (void)printf("%s", pw->pw_name);
522 else
523 (void)printf("%d", sfp->f_owner);
524 }
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/mount.h>
50#include <sys/stat.h>
51#include <sys/wait.h>
52
53#include <err.h>

--- 463 unchanged lines hidden (view full) ---

517 }
518 if (sfp->f_owner) {
519 (void)printf(", mounted by ");
520 if ((pw = getpwuid(sfp->f_owner)) != NULL)
521 (void)printf("%s", pw->pw_name);
522 else
523 (void)printf("%d", sfp->f_owner);
524 }
525 if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0)
526 (void)printf(", writes: sync %ld async %ld",
527 sfp->f_syncwrites, sfp->f_asyncwrites);
528 if (sfp->f_syncreads != 0 || sfp->f_asyncreads != 0)
529 (void)printf(", reads: sync %ld async %ld",
530 sfp->f_syncreads, sfp->f_asyncreads);
525 if (verbose) {
526 if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0)
527 (void)printf(", writes: sync %ld async %ld",
528 sfp->f_syncwrites, sfp->f_asyncwrites);
529 if (sfp->f_syncreads != 0 || sfp->f_asyncreads != 0)
530 (void)printf(", reads: sync %ld async %ld",
531 sfp->f_syncreads, sfp->f_asyncreads);
532 }
531 (void)printf(")\n");
532}
533
534struct statfs *
535getmntpt(name)
536 const char *name;
537{
538 struct statfs *mntbuf;

--- 207 unchanged lines hidden ---
533 (void)printf(")\n");
534}
535
536struct statfs *
537getmntpt(name)
538 const char *name;
539{
540 struct statfs *mntbuf;

--- 207 unchanged lines hidden ---