dm-table.c (169e2cc279c443085f7e423561eb1fe6158ade44) dm-table.c (00c4fc3b1f590288cb3c42f36da50f49a513cfcf)
1/*
2 * Copyright (C) 2001 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 874 unchanged lines hidden (view full) ---

883 }
884
885 if (hybrid && !bio_based && !request_based) {
886 /*
887 * The targets can work either way.
888 * Determine the type from the live device.
889 * Default to bio-based if device is new.
890 */
1/*
2 * Copyright (C) 2001 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 874 unchanged lines hidden (view full) ---

883 }
884
885 if (hybrid && !bio_based && !request_based) {
886 /*
887 * The targets can work either way.
888 * Determine the type from the live device.
889 * Default to bio-based if device is new.
890 */
891 dm_lock_md_type(t->md);
892 live_md_type = dm_get_md_type(t->md);
891 live_md_type = dm_get_md_type(t->md);
893 dm_unlock_md_type(t->md);
894 if (live_md_type == DM_TYPE_REQUEST_BASED)
895 request_based = 1;
896 else
897 bio_based = 1;
898 }
899
900 if (bio_based) {
901 /* We must use this table as bio-based */

--- 753 unchanged lines hidden ---
892 if (live_md_type == DM_TYPE_REQUEST_BASED)
893 request_based = 1;
894 else
895 bio_based = 1;
896 }
897
898 if (bio_based) {
899 /* We must use this table as bio-based */

--- 753 unchanged lines hidden ---