namei.c (df9b42963f2d010ae3163a894ce22cf6b27cd344) | namei.c (94e07a7590ae855bae0536c42b3086fadc7c83a8) |
---|---|
1/* 2 * namei.c 3 * 4 * PURPOSE 5 * Inode name handling routines for the OSTA-UDF(tm) filesystem. 6 * 7 * COPYRIGHT 8 * This file is distributed under the terms of the GNU General Public --- 1256 unchanged lines hidden (view full) --- 1265{ 1266 int len = *lenp; 1267 struct kernel_lb_addr location = UDF_I(inode)->i_location; 1268 struct fid *fid = (struct fid *)fh; 1269 int type = FILEID_UDF_WITHOUT_PARENT; 1270 1271 if (parent && (len < 5)) { 1272 *lenp = 5; | 1/* 2 * namei.c 3 * 4 * PURPOSE 5 * Inode name handling routines for the OSTA-UDF(tm) filesystem. 6 * 7 * COPYRIGHT 8 * This file is distributed under the terms of the GNU General Public --- 1256 unchanged lines hidden (view full) --- 1265{ 1266 int len = *lenp; 1267 struct kernel_lb_addr location = UDF_I(inode)->i_location; 1268 struct fid *fid = (struct fid *)fh; 1269 int type = FILEID_UDF_WITHOUT_PARENT; 1270 1271 if (parent && (len < 5)) { 1272 *lenp = 5; |
1273 return 255; | 1273 return FILEID_INVALID; |
1274 } else if (len < 3) { 1275 *lenp = 3; | 1274 } else if (len < 3) { 1275 *lenp = 3; |
1276 return 255; | 1276 return FILEID_INVALID; |
1277 } 1278 1279 *lenp = 3; 1280 fid->udf.block = location.logicalBlockNum; 1281 fid->udf.partref = location.partitionReferenceNum; 1282 fid->udf.parent_partref = 0; 1283 fid->udf.generation = inode->i_generation; 1284 --- 35 unchanged lines hidden --- | 1277 } 1278 1279 *lenp = 3; 1280 fid->udf.block = location.logicalBlockNum; 1281 fid->udf.partref = location.partitionReferenceNum; 1282 fid->udf.parent_partref = 0; 1283 fid->udf.generation = inode->i_generation; 1284 --- 35 unchanged lines hidden --- |