vtbl.c (a9de18eb761f7c1c860964b2e5addc1a35c7e861) | vtbl.c (025dfdafe77f20b3890981a394774baab7b9c827) |
---|---|
1/* 2 * Copyright (c) International Business Machines Corp., 2006 3 * Copyright (c) Nokia Corporation, 2006, 2007 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 563 unchanged lines hidden (view full) --- 572 vol->usable_leb_size = ubi->leb_size - vol->data_pad; 573 memcpy(vol->name, vtbl[i].name, vol->name_len); 574 vol->name[vol->name_len] = '\0'; 575 vol->vol_id = i; 576 577 if (vtbl[i].flags & UBI_VTBL_AUTORESIZE_FLG) { 578 /* Auto re-size flag may be set only for one volume */ 579 if (ubi->autoresize_vol_id != -1) { | 1/* 2 * Copyright (c) International Business Machines Corp., 2006 3 * Copyright (c) Nokia Corporation, 2006, 2007 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 563 unchanged lines hidden (view full) --- 572 vol->usable_leb_size = ubi->leb_size - vol->data_pad; 573 memcpy(vol->name, vtbl[i].name, vol->name_len); 574 vol->name[vol->name_len] = '\0'; 575 vol->vol_id = i; 576 577 if (vtbl[i].flags & UBI_VTBL_AUTORESIZE_FLG) { 578 /* Auto re-size flag may be set only for one volume */ 579 if (ubi->autoresize_vol_id != -1) { |
580 ubi_err("more then one auto-resize volume (%d " | 580 ubi_err("more than one auto-resize volume (%d " |
581 "and %d)", ubi->autoresize_vol_id, i); 582 kfree(vol); 583 return -EINVAL; 584 } 585 586 ubi->autoresize_vol_id = i; 587 } 588 --- 293 unchanged lines hidden --- | 581 "and %d)", ubi->autoresize_vol_id, i); 582 kfree(vol); 583 return -EINVAL; 584 } 585 586 ubi->autoresize_vol_id = i; 587 } 588 --- 293 unchanged lines hidden --- |