Skip to contentSkip to conversation

Target needs access to mapped device

DISCUSSION Abhishek Gupta 1 participant 1 message Apr 5, 2006 1 message not in the archive Device mapper

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi everyone,

I need to be able to set a logical device to read-only from the target of the logical device. In other words, I need the following function in dm-table.c:

void dm_table_set_mode(struct dm_table *t, int mode)

{
	t->mode = mode;
}

There is already a function dm-table.c:dm_table_get_mode(). Will it be feasible to include its counterpart too?

Thanks

Abhishek