dm-table.c (08cd84c81f27d5bd22ba958b7cae6d566c509280) | dm-table.c (cf222b3769c3759488579441ab724ed33a2da5f4) |
---|---|
1/* 2 * Copyright (C) 2001 Sistina Software (UK) Limited. 3 * Copyright (C) 2004 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm.h" --- 855 unchanged lines hidden (view full) --- 864 ti->type->presuspend(ti); 865 866 ti++; 867 } 868} 869 870void dm_table_presuspend_targets(struct dm_table *t) 871{ | 1/* 2 * Copyright (C) 2001 Sistina Software (UK) Limited. 3 * Copyright (C) 2004 Red Hat, Inc. All rights reserved. 4 * 5 * This file is released under the GPL. 6 */ 7 8#include "dm.h" --- 855 unchanged lines hidden (view full) --- 864 ti->type->presuspend(ti); 865 866 ti++; 867 } 868} 869 870void dm_table_presuspend_targets(struct dm_table *t) 871{ |
872 if (!t) 873 return; 874 |
|
872 return suspend_targets(t, 0); 873} 874 875void dm_table_postsuspend_targets(struct dm_table *t) 876{ | 875 return suspend_targets(t, 0); 876} 877 878void dm_table_postsuspend_targets(struct dm_table *t) 879{ |
880 if (!t) 881 return; 882 |
|
877 return suspend_targets(t, 1); 878} 879 880void dm_table_resume_targets(struct dm_table *t) 881{ 882 int i; 883 884 for (i = 0; i < t->num_targets; i++) { --- 67 unchanged lines hidden --- | 883 return suspend_targets(t, 1); 884} 885 886void dm_table_resume_targets(struct dm_table *t) 887{ 888 int i; 889 890 for (i = 0; i < t->num_targets; i++) { --- 67 unchanged lines hidden --- |