svn commit: r189364 - head/sys/fs/udf
Andriy Gapon
avg at FreeBSD.org
Wed Mar 4 05:54:11 PST 2009
Author: avg
Date: Wed Mar 4 13:54:10 2009
New Revision: 189364
URL: http://svn.freebsd.org/changeset/base/189364
Log:
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
Modified:
head/sys/fs/udf/udf_vnops.c
Modified: head/sys/fs/udf/udf_vnops.c
==============================================================================
--- head/sys/fs/udf/udf_vnops.c Wed Mar 4 13:53:57 2009 (r189363)
+++ head/sys/fs/udf/udf_vnops.c Wed Mar 4 13:54:10 2009 (r189364)
@@ -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 {
More information about the svn-src-head
mailing list