Since we do not change semantics of seek(), changing the file
pointer while updating does not make much sense.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
*/
count = err;
+ vol->updating = 0;
err = ubi_check_volume(ubi, vol->vol_id);
if (err < 0)
return err;
revoke_exclusive(desc, UBI_READWRITE);
}
- *offp += count;
return count;
}
err = ubi_start_update(ubi, vol->vol_id, bytes);
if (bytes == 0)
revoke_exclusive(desc, UBI_READWRITE);
-
- file->f_pos = 0;
break;
}
if (err == 0) {
err = to_write;
vfree(vol->upd_buf);
- vol->updating = 0;
}
}