git: sys/dev/disk/dm: Don't implement "status" as a subset of "table" [2/2]

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Oct 19 07:12:35 PDT 2015


commit 54b60c60ffdea2cbf93a1e98ebd607d30e79c4dc
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Oct 19 21:52:25 2015 +0900

    sys/dev/disk/dm: Don't implement "status" as a subset of "table" [2/2]
    
    struct dm_target's "char *(*status)(void *);"
    handler should be "char *(*table)(void *);"
    given that it now has "char *(*info)(void *);"
    to be compatible with Linux dm behavior.
    
    This breaks API compatibility with NetBSD's dm, but the
    previous commit already broke compatibility with NetBSD,
    in order to implement it right.

Summary of changes:
 sys/dev/disk/dm/dm.h                                  |  4 ++--
 sys/dev/disk/dm/dm_ioctl.c                            |  2 +-
 sys/dev/disk/dm/dm_target_error.c                     |  6 +++---
 sys/dev/disk/dm/dm_target_zero.c                      |  6 +++---
 sys/dev/disk/dm/targets/crypt/dm_target_crypt.c       |  6 +++---
 sys/dev/disk/dm/targets/delay/dm_target_delay.c       | 12 ++++++------
 sys/dev/disk/dm/targets/linear/dm_target_linear.c     |  8 ++++----
 sys/dev/disk/dm/targets/mirror/dm_target_mirror.c     |  6 +++---
 sys/dev/disk/dm/targets/snapshot/dm_target_snapshot.c | 16 ++++++++--------
 sys/dev/disk/dm/targets/striped/dm_target_striped.c   |  6 +++---
 10 files changed, 36 insertions(+), 36 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/54b60c60ffdea2cbf93a1e98ebd607d30e79c4dc


-- 
DragonFly BSD source repository



More information about the Commits mailing list