eba.c (3d7a96f5a485b7d06c2379f343d7312af89ec9e2) eba.c (025dfdafe77f20b3890981a394774baab7b9c827)
1/*
2 * Copyright (c) International Business Machines Corp., 2006
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

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

712 * @vol. The @used_ebs argument should contain total number of logical
713 * eraseblock in this static volume.
714 *
715 * When writing to the last logical eraseblock, the @len argument doesn't have
716 * to be aligned to the minimal I/O unit size. Instead, it has to be equivalent
717 * to the real data size, although the @buf buffer has to contain the
718 * alignment. In all other cases, @len has to be aligned.
719 *
1/*
2 * Copyright (c) International Business Machines Corp., 2006
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

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

712 * @vol. The @used_ebs argument should contain total number of logical
713 * eraseblock in this static volume.
714 *
715 * When writing to the last logical eraseblock, the @len argument doesn't have
716 * to be aligned to the minimal I/O unit size. Instead, it has to be equivalent
717 * to the real data size, although the @buf buffer has to contain the
718 * alignment. In all other cases, @len has to be aligned.
719 *
720 * It is prohibited to write more then once to logical eraseblocks of static
720 * It is prohibited to write more than once to logical eraseblocks of static
721 * volumes. This function returns zero in case of success and a negative error
722 * code in case of failure.
723 */
724int ubi_eba_write_leb_st(struct ubi_device *ubi, struct ubi_volume *vol,
725 int lnum, const void *buf, int len, int dtype,
726 int used_ebs)
727{
728 int err, pnum, tries = 0, data_size = len, vol_id = vol->vol_id;

--- 502 unchanged lines hidden ---
721 * volumes. This function returns zero in case of success and a negative error
722 * code in case of failure.
723 */
724int ubi_eba_write_leb_st(struct ubi_device *ubi, struct ubi_volume *vol,
725 int lnum, const void *buf, int len, int dtype,
726 int used_ebs)
727{
728 int err, pnum, tries = 0, data_size = len, vol_id = vol->vol_id;

--- 502 unchanged lines hidden ---