udf: use truly unique directory cookie

'off' is an offset within current block, so there is a good chance
it can be non-unique, so use complete offset.

Submitted by:	bde
Approved by:	jhb
This commit is contained in:
Andriy Gapon 2009-03-04 13:54:10 +00:00
parent 9cd835bba9
commit 159da68b48
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189364

View File

@ -738,7 +738,7 @@ udf_getfid(struct udf_dirstream *ds)
* Update the offset. Align on a 4 byte boundary because the
* UDF spec says so.
*/
ds->this_off = ds->off;
ds->this_off = ds->offset + ds->off;
if (!ds->fid_fragment) {
ds->off += (total_fid_size + 3) & ~0x03;
} else {