mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Print the write counts if they are nonzero even if we're mounted
readonly, since they tell us about previous write activity. Use the correct format to print the write counts.
This commit is contained in:
parent
414c93f3aa
commit
677b9b3f7c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36772
@ -42,7 +42,7 @@ static const char copyright[] =
|
|||||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||||
#else
|
#else
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: mount.c,v 1.25 1998/04/08 18:31:18 wosch Exp $";
|
"$Id: mount.c,v 1.26 1998/05/17 21:57:17 dt Exp $";
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -497,9 +497,8 @@ prmount(sfp)
|
|||||||
else
|
else
|
||||||
(void)printf("%d", sfp->f_owner);
|
(void)printf("%d", sfp->f_owner);
|
||||||
}
|
}
|
||||||
if ((sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0) &&
|
if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0)
|
||||||
(sfp->f_flags & MNT_RDONLY) == 0)
|
(void)printf("%swrites: sync %ld async %ld",
|
||||||
(void)printf("%swrites: sync %d async %d",
|
|
||||||
!f++ ? " (" : ", ", sfp->f_syncwrites, sfp->f_asyncwrites);
|
!f++ ? " (" : ", ", sfp->f_syncwrites, sfp->f_asyncwrites);
|
||||||
(void)printf("%s\n", f ? ")" : "");
|
(void)printf("%s\n", f ? ")" : "");
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
|||||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||||
#else
|
#else
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: mount.c,v 1.25 1998/04/08 18:31:18 wosch Exp $";
|
"$Id: mount.c,v 1.26 1998/05/17 21:57:17 dt Exp $";
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -497,9 +497,8 @@ prmount(sfp)
|
|||||||
else
|
else
|
||||||
(void)printf("%d", sfp->f_owner);
|
(void)printf("%d", sfp->f_owner);
|
||||||
}
|
}
|
||||||
if ((sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0) &&
|
if (sfp->f_syncwrites != 0 || sfp->f_asyncwrites != 0)
|
||||||
(sfp->f_flags & MNT_RDONLY) == 0)
|
(void)printf("%swrites: sync %ld async %ld",
|
||||||
(void)printf("%swrites: sync %d async %d",
|
|
||||||
!f++ ? " (" : ", ", sfp->f_syncwrites, sfp->f_asyncwrites);
|
!f++ ? " (" : ", ", sfp->f_syncwrites, sfp->f_asyncwrites);
|
||||||
(void)printf("%s\n", f ? ")" : "");
|
(void)printf("%s\n", f ? ")" : "");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user