Lines Matching full:volume
69 * ubi_do_get_volume_info - get information about UBI volume.
71 * @vol: volume description object
92 * ubi_get_volume_info - get information about UBI volume.
93 * @desc: volume descriptor
104 * ubi_open_volume - open UBI volume.
106 * @vol_id: volume ID
109 * The @mode parameter specifies if the volume should be opened in read-only
111 * nobody else will be able to open this volume. UBI allows to have many volume
114 * If a static volume is being opened for the first time since boot, it will be
118 * This function returns volume descriptor in case of success and a negative
128 dbg_gen("open device %d, volume %d, mode %d", ubi_num, vol_id, mode); in ubi_open_volume()
200 /* This is the first open - check the volume */ in ubi_open_volume()
208 ubi_warn(ubi, "volume %d on UBI device %d is corrupted", in ubi_open_volume()
225 ubi_err(ubi, "cannot open device %d, volume %d, error %d", in ubi_open_volume()
232 * ubi_open_volume_nm - open UBI volume by name.
234 * @name: volume name
237 * This function is similar to 'ubi_open_volume()', but opens a volume by name.
246 dbg_gen("open device %d, volume %s, mode %d", ubi_num, name, mode); in ubi_open_volume_nm()
290 * ubi_open_volume_path - open UBI volume by its character device node path.
291 * @pathname: volume character device node path
294 * This function is similar to 'ubi_open_volume()', but opens a volume the path
303 dbg_gen("open volume %s, mode %d", pathname, mode); in ubi_open_volume_path()
328 * ubi_close_volume - close UBI volume.
329 * @desc: volume descriptor
336 dbg_gen("close device %d, volume %d, mode %d", in ubi_close_volume()
366 * @desc: volume descriptor
388 /* Empty static UBI volume */ in leb_read_sanity_check()
403 * @desc: volume descriptor
425 * If the volume is damaged because of an interrupted update this function just
446 ubi_warn(ubi, "mark volume %d as corrupted", vol_id); in ubi_leb_read()
457 * @desc: volume descriptor
486 ubi_warn(ubi, "mark volume %d as corrupted", vol_id); in ubi_leb_read_sg()
497 * @desc: volume descriptor
517 * If the volume is damaged because of an interrupted update this function just
552 * @desc: volume descriptor
596 * @desc: volume descriptor
603 * If the volume is damaged because of an interrupted update this function just
633 * @desc: volume descriptor
664 * case of failure. If the volume is damaged because of an interrupted update
689 * @desc: volume descriptor
698 * This function returns zero in case of success, %-EBADF if the volume is
728 * @desc: volume descriptor
738 * error code in case of failure. If the volume is damaged because of an
783 * @vol_id: volume id to flush for
786 * This function executes all pending works for a particular volume id / logical
788 * a wildcard for all of the corresponding volume numbers or logical
811 * ubi_register_volume_notifier - register a volume notifier.
816 * This function registers a volume notifier, which means that
817 * 'nb->notifier_call()' will be invoked when an UBI volume is created,
821 * Using UBI API from the volume notifier is prohibited.
852 * ubi_unregister_volume_notifier - unregister the volume notifier.
855 * This function unregisters volume notifier @nm and returns zero in case of