search for: dmu_flag_wr

Displaying 1 result from an estimated 1 matches for "dmu_flag_wr".

2006 Aug 21
1
[PATCH 3 of 6] dm-userspace internal libdmu support for userspace tool
...dev; +} + +void dmu_map_set_copy_src_dev(struct dmu_map_data *data, dev_t dev) +{ + data->copy_src_dev = dev; + dmu_set_flag(&data->flags, DMU_FLAG_COPY_FIRST); +} + +void dmu_map_set_writable(struct dmu_map_data *data, int writable) +{ + if (writable) + dmu_set_flag(&data->flags, DMU_FLAG_WR); + else + dmu_clr_flag(&data->flags, DMU_FLAG_WR); +} + +int dmu_map_is_write(struct dmu_map_data *data) +{ + return dmu_get_flag(&data->flags, DMU_FLAG_WR); +} + +void dmu_map_set_sync(struct dmu_map_data *data) +{ + dmu_set_flag(&data->flags, DMU_FLAG_SYNC); +} + +/* + * Ge...