Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167667
b: refs/heads/master
c: 3f2412d
h: refs/heads/master
i:
  167665: 6f2a671
  167663: c0c4c34
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Oct 16, 2009
1 parent 21ebb83 commit 0a90d2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f88fb981183e71daf40bbd84bc8251bbf7b59e19
refs/heads/master: 3f2412dc85260e5aae7ebb03bf50d5b1407e3083
5 changes: 5 additions & 0 deletions trunk/drivers/md/dm-snap.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,11 @@ static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv)
bio_list_init(&s->queued_bios);
INIT_WORK(&s->queued_bios_work, flush_queued_bios);

if (!s->store->chunk_size) {
ti->error = "Chunk size not set";
goto bad_load_and_register;
}

/* Add snapshot to the list of snapshots for this origin */
/* Exceptions aren't triggered till snapshot_resume() is called */
if (register_snapshot(s)) {
Expand Down

0 comments on commit 0a90d2d

Please sign in to comment.