History log of /freebsd-10-stable/sys/fs/ext2fs/ext2_alloc.c
Revision Date Author Comments
# 325750 13-Nov-2017 pfg

MFC r324962 (by fsu@):

Set doreallocblks sysctl value to zero by default because of
possibility of filesystem corruption.

Fedor has found some weird behavior in his tests.


# 311232 04-Jan-2017 pfg

MFC r310705, r310706:
style(9) cleanups.

Just to reduce some of the issues found with indent(1).


# 298557 24-Apr-2016 pfg

MFC r297796:
ext2fs: replace 0 with NULL for pointers.

While here do late initialization of ebap, similar as was
done in UFS.

Found with devel/coccinelle.


# 297950 13-Apr-2016 kevlo

MFC r297479, r297695:

Update comment: Linux does set a randomized generation number of an inode
on ext2/3/4. While here use arc4random() instead of random().

Reviewed by: pfg


# 296992 17-Mar-2016 pfg

MFC r294504, r294652, r294653, r294655:

ext2fs: Bring back the htree dir_index implementation.

The htree dir_index is perhaps one of the most characteristic
features of the linux ext3 implementation. It was removed
in r281670, due to repeated bug reports.

Damjan Jovanic detected and fixed three bugs and did some
stress testing by building Apache OpenOffice on top of it
so it is now in good shape to bring back.

Differential Revision: https://reviews.freebsd.org/D5007

Submitted by: Damjan Jovanovic
Reviewed by: pfg
RelNotes: yes


# 277832 28-Jan-2015 pfg

MFC r277340, r277349:

Remove dead code.
After the ext2 variant of the "orlov allocator" was implemented,
the case for a negative or zero dirsize disappeared.

Drop the dead code and unsign dirsize given that it can't be
negative anyways.

ext2fs: fix for uninitialized pointer read.
path.ep_bp was being used uninitialized in ext4_ext_find_extent().

CID: 1062344
CID: 1008669


# 262723 04-Mar-2014 pfg

MFC r262623, r262667:

ext2fs: use of tab vs spaces.

Consistently use a single tab after a #define as mentioned in style(9).
Use tabs instead of space for indenting.
Fix a typo: "hash_vesion".

No functional change.


# 261313 31-Jan-2014 pfg

MFC r261136:

ext2fs: Re-enable reallocblk.

The major corruption issues affecting this code have been fixed.

Tested by: Mike Ma


# 277832 28-Jan-2015 pfg

MFC r277340, r277349:

Remove dead code.
After the ext2 variant of the "orlov allocator" was implemented,
the case for a negative or zero dirsize disappeared.

Drop the dead code and unsign dirsize given that it can't be
negative anyways.

ext2fs: fix for uninitialized pointer read.
path.ep_bp was being used uninitialized in ext4_ext_find_extent().

CID: 1062344
CID: 1008669


# 262723 04-Mar-2014 pfg

MFC r262623, r262667:

ext2fs: use of tab vs spaces.

Consistently use a single tab after a #define as mentioned in style(9).
Use tabs instead of space for indenting.
Fix a typo: "hash_vesion".

No functional change.


# 261313 31-Jan-2014 pfg

MFC r261136:

ext2fs: Re-enable reallocblk.

The major corruption issues affecting this code have been fixed.

Tested by: Mike Ma