linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] I want to add percent to output used/maximum files and blocks
@ 2023-04-23  8:23 Oscar Megia López
  2023-04-23  8:23 ` [PATCH 1/1] e2fsck: Add percent to files and blocks feature Oscar Megia López
  0 siblings, 1 reply; 5+ messages in thread
From: Oscar Megia López @ 2023-04-23  8:23 UTC (permalink / raw)
  To: linux-ext4; +Cc: Oscar Megia López

I think this is good information because
numbers alone are not enough for people.

I check that the denominator is zero for safety,
may never be zero, but I prefer to check.

Same for copying in char pointers. I prefer to use snprintf,
than sprintf or strcpy, because this way it won't never
overrun the pointer size.

My experience says that there is to check all possibilities,
even if I think that never will happen (error free).

Oscar Megia López (1):
  e2fsck: Add percent to files and blocks feature

 e2fsck/unix.c | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)


base-commit: 25ad8a431331b4d1d444a70b6079456cc612ac40
-- 
2.40.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-28  7:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-23  8:23 [PATCH 0/1] I want to add percent to output used/maximum files and blocks Oscar Megia López
2023-04-23  8:23 ` [PATCH 1/1] e2fsck: Add percent to files and blocks feature Oscar Megia López
2023-07-26 16:15   ` Andreas Dilger
2023-07-27  7:15     ` Oscar Megia López
     [not found]   ` <73bfa972-1f3a-3a74-c511-4255eae91806@web.de>
2023-07-28  7:05     ` [PATCH] " Oscar Megia López

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).