linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] unify stat and fstat checking blkdev into functions
@ 2017-05-04 12:16 Zhilong Liu
  2017-05-04 12:16 ` [PATCH v1 1/2] mdadm/util: unify fstat checking blkdev into function Zhilong Liu
  2017-05-04 12:16 ` [PATCH v1 2/2] mdadm/util: unify stat " Zhilong Liu
  0 siblings, 2 replies; 6+ messages in thread
From: Zhilong Liu @ 2017-05-04 12:16 UTC (permalink / raw)
  To: Jes.Sorensen; +Cc: linux-raid, Zhilong Liu

Hi, Jes;

This two patches declared two functions named fstat_is_blkdev()
and stat_is_blkdev() to integrate repeated checking block device
operations, decreased the repeated codes via to utility function.
And fix a bug in WaitClean(), it forgot to check block device.

This patchset depends on patchset
"[mdadm PATCH 0/2] unify stat and fstat into functions"

Changes:
 - modified the return value of them, return true/1 if it is a
   block device, return false/0 when it isn't.
 - rename the functions and make their name shorter.

Thanks,
Zhilong

Zhilong Liu (2):
  util: unify fstat checking blkdev into function
  util: unify stat checking blkdev into function

 Assemble.c    | 26 +++++++++-----------------
 Build.c       | 30 +++++++-----------------------
 Create.c      | 23 ++++++++++-------------
 Grow.c        | 10 ++++------
 Incremental.c | 52 +++++++++++++++-------------------------------------
 Manage.c      | 13 ++-----------
 Monitor.c     | 16 ++++------------
 bitmap.c      | 13 ++++---------
 mdadm.h       |  2 ++
 super-ddf.c   | 10 ++++------
 super-intel.c | 23 +++++++----------------
 util.c        | 34 ++++++++++++++++++++++++++++++++++
 12 files changed, 102 insertions(+), 150 deletions(-)

-- 
2.10.2


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

end of thread, other threads:[~2017-05-05 15:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-04 12:16 [PATCH v1 0/2] unify stat and fstat checking blkdev into functions Zhilong Liu
2017-05-04 12:16 ` [PATCH v1 1/2] mdadm/util: unify fstat checking blkdev into function Zhilong Liu
2017-05-04 12:16 ` [PATCH v1 2/2] mdadm/util: unify stat " Zhilong Liu
2017-05-04 15:33   ` Jes Sorensen
2017-05-05  3:09     ` [PATCH v2 " Zhilong Liu
2017-05-05 15:06       ` Jes Sorensen

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).