Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38081
b: refs/heads/master
c: ab17ffa
h: refs/heads/master
i:
  38079: e5482c7
v: v3
  • Loading branch information
Milan Broz authored and Linus Torvalds committed Oct 3, 2006
1 parent ff28090 commit 3e35be4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa129a2247b164173d45da8ad43cca5de9211403
refs/heads/master: ab17ffa440cb54ca64111fa4922ba12496fcc8af
13 changes: 12 additions & 1 deletion trunk/drivers/md/dm-linear.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,25 @@ static int linear_status(struct dm_target *ti, status_type_t type,
return 0;
}

static int linear_ioctl(struct dm_target *ti, struct inode *inode,
struct file *filp, unsigned int cmd,
unsigned long arg)
{
struct linear_c *lc = (struct linear_c *) ti->private;
struct block_device *bdev = lc->dev->bdev;

return blkdev_ioctl(bdev->bd_inode, filp, cmd, arg);
}

static struct target_type linear_target = {
.name = "linear",
.version= {1, 0, 1},
.version= {1, 0, 2},
.module = THIS_MODULE,
.ctr = linear_ctr,
.dtr = linear_dtr,
.map = linear_map,
.status = linear_status,
.ioctl = linear_ioctl,
};

int __init dm_linear_init(void)
Expand Down

0 comments on commit 3e35be4

Please sign in to comment.