CVS log for xfs-cmds/xfsprogs/libxfs/xfs_dir2_node.c

[BACK] Up to [Development] / xfs-cmds / xfsprogs / libxfs

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 8 06:18:43 2008 UTC (9 years, 1 month ago) by bnaujok.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +431 -336 lines
Diff to previous 1.19 (unified)

Update xfsprogs to latest kernel headers and functions
Merge of master-melb:xfs-cmds:32070a by kenmcd.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Nov 11 14:27:22 2005 UTC (11 years, 11 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.18: +12 -26 lines
Diff to previous 1.18 (unified)

Update copyright/license notices to match SGI legal prefered boilerplate.
Merge of master-melb:xfs-cmds:24374a by kenmcd.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Apr 19 03:57:24 2005 UTC (12 years, 6 months ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN
Changes since 1.17: +11 -11 lines
Diff to previous 1.17 (unified)

Merge back kernel changes into libxfs, mainly endian stuff.
Merge of master-melb:xfs-cmds:22256a by kenmcd.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Apr 16 15:56:34 2004 UTC (13 years, 6 months ago) by cattelan
Branch: MAIN
Changes since 1.16: +22 -1 lines
Diff to previous 1.16 (unified)

libxfs fix for the dir2 rebalance bug
So this was a fun one to track down.
This bug has existed  since version 1.1 of the dir2 code.


xfs_dir2_leafn_rebalance splits a directory tree block into 
2 balanced blocks and then calculates the new index in either the
old block or the new block relying on the hash value.
This doesn't work in the case of a new to be inserted elements hash value
being the same as an already existing elements hash value.

This resulted in a negative index being returned and then passed to 
xfs_dir2_leafn_add, which it then used as a starting address in
the elements array. 

The address (which is now pointing to somebody else's memory) was then
passed to memmove to move the tail of the array down 8 bytes.

Depending on the size of the array this would move all sorts of
possibly important info belong to somebody else 8 bytes down.


As part of the fix add a sanity check to xfs_dir2_leafn_add 
to make nobody else is passing in a negative index.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jan 20 00:41:43 2004 UTC (13 years, 9 months ago) by nathans
Branch: MAIN
Changes since 1.15: +8 -7 lines
Diff to previous 1.15 (unified)

xfsprogs update - Debian installer support, sync user/kernel stuff.
Fix some compiler warnings.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Dec 5 06:33:47 2003 UTC (13 years, 10 months ago) by nathans
Branch: MAIN
Changes since 1.14: +46 -71 lines
Diff to previous 1.14 (unified)

Sync up userspace and kernel code, noop for userspace.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Apr 16 18:29:10 2003 UTC (14 years, 6 months ago) by cattelan
Branch: MAIN
CVS Tags: XFS-1_3_0pre1
Changes since 1.13: +11 -12 lines
Diff to previous 1.13 (unified)

Merge whitespace changes over

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 6 06:59:34 2003 UTC (14 years, 7 months ago) by nathans
Branch: MAIN
Changes since 1.12: +93 -75 lines
Diff to previous 1.12 (unified)

New xfsprogs version - enabled unwritten extents by default, new commands
in xfs_db and xfs_admin to manipulate the version extflg bit on unmounted
filesystems, make xfs_db check for a dirty log before zeroing it in the
uuid command, man page updates, sync'd up user/kernel code and headers.
Add stripe information into xfs_bmap output.
Sync with recent kernel changes.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 31 11:24:20 2002 UTC (14 years, 11 months ago) by nathans
Branch: MAIN
Changes since 1.11: +4 -0 lines
Diff to previous 1.11 (unified)

xfsprogs updates - initial sync up with recent kernel changes (not quite
complete yet); bump version; move some common headers to a common place;
fix several compiler warnings with recent gcc versions (3.2+).
Sync up with recent kernel source changes (esp. dir/ea block split change).

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 10 06:29:03 2002 UTC (15 years ago) by nathans
Branch: MAIN
Changes since 1.10: +12 -12 lines
Diff to previous 1.10 (unified)

Fix libxfs device flush ioctl, sync with kernel source.
CONTRIBUTED: Anton Blanchard <anton@samba.org>
Sync with kernel source (replace b* with mem* memory api).

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 20 08:28:52 2002 UTC (15 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.9: +0 -4 lines
Diff to previous 1.9 (unified)

Undoes mod:     xfs-cmds:slinx:127952a
Undo extended attribute/directory block splitting change.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 20 06:12:16 2002 UTC (15 years, 1 month ago) by nathans
Branch: MAIN
Changes since 1.8: +4 -0 lines
Diff to previous 1.8 (unified)

Sync up userspace with some recent kernel changes, no functional change.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 12 21:24:23 2002 UTC (15 years, 3 months ago) by lord
Branch: MAIN
Changes since 1.7: +26 -26 lines
Diff to previous 1.7 (unified)

white space cleanup

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 4 23:07:56 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (unified)

Update copyright dates (again)

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 4 22:53:09 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (unified)

Undoes mod:     xfs-cmds:slinx:120772a
Undo xfs-cmds:slinx:120772a, inadvertently whacked a previous mod.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 4 17:58:21 2002 UTC (15 years, 4 months ago) by sandeen
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (unified)

Update copyright dates

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 17 05:34:30 2002 UTC (15 years, 6 months ago) by nathans
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (unified)

bump minor version for minor change - sync with recent kernel changes
(mainly do less endian swabbing on some code paths).

Revision 1.3 / (download) - annotate - [select for diffs], Fri Apr 13 00:04:55 2001 UTC (16 years, 6 months ago) by nathans
Branch: MAIN
CVS Tags: Linux-2_4_5-merge
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (unified)

newer version of gcc picks up a couple more warnings.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 12 23:30:32 2001 UTC (16 years, 6 months ago) by nathans
Branch: MAIN
Changes since 1.1: +35 -68 lines
Diff to previous 1.1 (unified)

sync with Russells changes to get the kernel version of this code
compiling without warnings.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jan 15 05:36:03 2001 UTC (16 years, 9 months ago) by nathans
Branch: MAIN
CVS Tags: Release-1_0_0

cmd/xfs/libxfs/xfs_dir2_node.c 1.3 Renamed to cmd/xfsprogs/libxfs/xfs_dir2_node.c

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>