Patchwork [1/2] UBUNTU: ubuntu: dm-raid45: Adapt to upstream interface changes

login
register
mail settings
Submitter Stefan Bader
Date Dec. 5, 2012, 1:16 p.m.
Message ID <1354713373-2950-2-git-send-email-stefan.bader@canonical.com>
Download mbox | patch
Permalink /patch/203863/
State New
Headers show

Comments

Stefan Bader - Dec. 5, 2012, 1:16 p.m.
Device-mapper interface has renamed one element in the mapped
device structure and added one argument to the status function.
This fixes the FTBS in Raring.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
---
 ubuntu/dm-raid4-5/dm-raid4-5.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/ubuntu/dm-raid4-5/dm-raid4-5.c b/ubuntu/dm-raid4-5/dm-raid4-5.c
index e05b0e1..9f55f58 100644
--- a/ubuntu/dm-raid4-5/dm-raid4-5.c
+++ b/ubuntu/dm-raid4-5/dm-raid4-5.c
@@ -4073,7 +4073,7 @@  static int raid_ctr(struct dm_target *ti, unsigned argc, char **argv)
 	 * Make sure that dm core only hands maximum io size
 	 * length down and pays attention to io boundaries.
 	 */
-	ti->split_io = rs->set.io_size;
+	ti->max_io_len = rs->set.io_size;
 	ti->private = rs;
 
 	/* Initialize work queue to handle this RAID set's io. */
@@ -4246,7 +4246,7 @@  static void raid_devel_stats(struct dm_target *ti, char *result,
 }
 
 static int raid_status(struct dm_target *ti, status_type_t type,
-		       char *result, unsigned maxlen)
+		       unsigned status_flags, char *result, unsigned maxlen)
 {
 	unsigned p, sz = 0;
 	char buf[BDEVNAME_SIZE];