io.c (ead5d1f4d877e92c051e1a1ade623d0d30e71619) | io.c (b8f1da98a219ab8c371fae5c3efb4b90b8594f3b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * This file is part of UBIFS. 4 * 5 * Copyright (C) 2006-2008 Nokia Corporation. 6 * Copyright (C) 2006, 2007 University of Szeged, Hungary 7 * 8 * Authors: Artem Bityutskiy (Битюцкий Артём) --- 1032 unchanged lines hidden (view full) --- 1041 * ubifs_read_node - read node. 1042 * @c: UBIFS file-system description object 1043 * @buf: buffer to read to 1044 * @type: node type 1045 * @len: node length (not aligned) 1046 * @lnum: logical eraseblock number 1047 * @offs: offset within the logical eraseblock 1048 * | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * This file is part of UBIFS. 4 * 5 * Copyright (C) 2006-2008 Nokia Corporation. 6 * Copyright (C) 2006, 2007 University of Szeged, Hungary 7 * 8 * Authors: Artem Bityutskiy (Битюцкий Артём) --- 1032 unchanged lines hidden (view full) --- 1041 * ubifs_read_node - read node. 1042 * @c: UBIFS file-system description object 1043 * @buf: buffer to read to 1044 * @type: node type 1045 * @len: node length (not aligned) 1046 * @lnum: logical eraseblock number 1047 * @offs: offset within the logical eraseblock 1048 * |
1049 * This function reads a node of known type and and length, checks it and | 1049 * This function reads a node of known type and length, checks it and |
1050 * stores in @buf. Returns zero in case of success, %-EUCLEAN if CRC mismatched 1051 * and a negative error code in case of failure. 1052 */ 1053int ubifs_read_node(const struct ubifs_info *c, void *buf, int type, int len, 1054 int lnum, int offs) 1055{ 1056 int err, l; 1057 struct ubifs_ch *ch = buf; --- 168 unchanged lines hidden --- | 1050 * stores in @buf. Returns zero in case of success, %-EUCLEAN if CRC mismatched 1051 * and a negative error code in case of failure. 1052 */ 1053int ubifs_read_node(const struct ubifs_info *c, void *buf, int type, int len, 1054 int lnum, int offs) 1055{ 1056 int err, l; 1057 struct ubifs_ch *ch = buf; --- 168 unchanged lines hidden --- |