mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
Don't print the 'writes: sync & async' stuff if we're mounted readonly
or if the fs isn't keeping the stats..
This commit is contained in:
parent
c6bcf724da
commit
1cd2698705
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34910
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||
#else
|
||||
static const char rcsid[] =
|
||||
"$Id: mount.c,v 1.22 1998/02/13 04:54:27 bde Exp $";
|
||||
"$Id: mount.c,v 1.23 1998/03/08 09:56:02 julian Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -496,8 +496,11 @@ prmount(sfp)
|
||||
else
|
||||
(void)printf("%d", sfp->f_owner);
|
||||
}
|
||||
(void)printf("%swrites: sync %d async %d)\n", !f++ ? " (" : ", ",
|
||||
sfp->f_syncwrites, sfp->f_asyncwrites);
|
||||
if ((sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0) &&
|
||||
(sfp->f_flags & MNT_RDONLY) == 0)
|
||||
(void)printf("%swrites: sync %d async %d)",
|
||||
!f++ ? " (" : ", ", sfp->f_syncwrites, sfp->f_asyncwrites);
|
||||
(void)printf("%s\n", f ? ")" : "");
|
||||
}
|
||||
|
||||
struct statfs *
|
||||
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||
#else
|
||||
static const char rcsid[] =
|
||||
"$Id: mount.c,v 1.22 1998/02/13 04:54:27 bde Exp $";
|
||||
"$Id: mount.c,v 1.23 1998/03/08 09:56:02 julian Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -496,8 +496,11 @@ prmount(sfp)
|
||||
else
|
||||
(void)printf("%d", sfp->f_owner);
|
||||
}
|
||||
(void)printf("%swrites: sync %d async %d)\n", !f++ ? " (" : ", ",
|
||||
sfp->f_syncwrites, sfp->f_asyncwrites);
|
||||
if ((sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0) &&
|
||||
(sfp->f_flags & MNT_RDONLY) == 0)
|
||||
(void)printf("%swrites: sync %d async %d)",
|
||||
!f++ ? " (" : ", ", sfp->f_syncwrites, sfp->f_asyncwrites);
|
||||
(void)printf("%s\n", f ? ")" : "");
|
||||
}
|
||||
|
||||
struct statfs *
|
||||
|
Loading…
Reference in New Issue
Block a user