| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
gcc -Wmemset-elt-size diagnosed this. The code was only initializing
1/4 of the array. However, it was actually harmless, as the only caller
had done an M_ZERO allocation anyway.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D45701
|
|
|
|
| |
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
|
|
|
|
|
|
|
|
| |
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix
|
|
|
|
| |
PR: 265071
|
|
|
|
| |
Sponsored by: Rubicon Communications, LLC ("Netgate")
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add functionality for extents validation inside the filesystem
extents block. The main logic is implemented under
ext4_validate_extent_entries() function, which verifies extents
or extents indexes depending of extent depth value.
PR: 259112
Reported by: Robert Morris
Reviewed by: pfg
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D33375
|
|
|
|
| |
Sponsored by: Rubicon Communications, LLC ("Netgate")
|
|
|
|
|
|
|
|
| |
PR: 259112
Reported by: Robert Morris <rtm@lcs.mit.edu>
Reviewed by: fsu
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D33030
|
|
|
|
|
|
|
|
|
| |
It is needed to invalidate cache in case of inode space removal
to avoid situation, when extents cache returns not exist extent.
Reviewed by: pfg
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D29931
|
|
|
|
|
|
|
|
|
|
| |
It is possible to walk thru inode extents if EXT2FS_PRINT_EXTENTS
macro is defined. The extents headers magics and physical blocks
ranges are checked during extents walk.
Reviewed by: pfg
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D29932
|
|
|
|
| |
Notes:
svn path=/head/; revision=365070
|
|
|
|
|
|
|
|
|
|
|
| |
PR: 240545
Submitted by: Andrew Reiter <arr@watson.org>
Reviewed by: fsu
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25707
Notes:
svn path=/head/; revision=363367
|
|
|
|
|
|
|
|
|
|
|
|
| |
Author of most initial version: pfg (https://reviews.freebsd.org/D23259)
Reviewed by: pfg
MFC after: 3 months
Differential Revision: https://reviews.freebsd.org/D24685
Notes:
svn path=/head/; revision=361136
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Coccinelle:
@ rule1 @
identifier __error;
@@
...
int __error;
...
@ rule2 depends on rule1 @
identifier rule1.__error;
identifier __bp;
@@
__error =
(
bread
|
bread_gb
|
breadn
|
breadn_flags
)
(..., &__bp);
if (
(
__error
|
__error != 0
)
) {
...
- brelse(__bp);
...
}
No functional change.
Notes:
svn path=/head/; revision=351926
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commit forgotten file.
Reviewed by: pfg, gnn
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D19848
Notes:
svn path=/head/; revision=346269
|
|
|
|
|
|
|
|
|
|
| |
Reviewed by: pfg
MFC after: 3 months
Differential Revision: https://reviews.freebsd.org/D15394
Notes:
svn path=/head/; revision=333584
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Delay the initialization of variables until the are needed.
In the case of ext4_ext_rm_leaf(), make sure 'error' value is not
undefined.
Reported by: Clang's static analyzer
Differential Revision: https://reviews.freebsd.org/D14193
Notes:
svn path=/head/; revision=328882
|
|
|
|
|
|
|
|
|
| |
Found by: scan-build
Reviewed by: fsu
Differential Revision: https://reviews.freebsd.org/D14017
Notes:
svn path=/head/; revision=328280
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewed by: pfg (mentor)
Approved by: pfg (mentor)
MFC after: 6 months
Differential Revision: https://reviews.freebsd.org/D13810
Notes:
svn path=/head/; revision=327977
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewed by: kevlo, pfg (mentor)
Approved by: pfg (mentor)
MFC after: 6 months
Differential Revision: https://reviews.freebsd.org/D11530
Notes:
svn path=/head/; revision=327584
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
Notes:
svn path=/head/; revision=326268
|
|
|
|
|
|
|
|
| |
Approved by: pfg (mentor)
MFC after: 6 months
Notes:
svn path=/head/; revision=324961
|
|
|
|
|
|
|
|
|
|
| |
Approved by: pfg (mentor)
Reported by: Coverity
CID: 1381754
MFC after: 6 months
Notes:
svn path=/head/; revision=324759
|
|
|
|
|
|
|
|
|
|
|
| |
Approved by: pfg (mentor)
MFC after: 6 months
RelNotes: Yes
Differential Revision: https://reviews.freebsd.org/D12087
Notes:
svn path=/head/; revision=324706
|
|
|
|
|
|
|
|
|
| |
Just to reduce some of the issues found with indent(1).
MFC after: 1 week
Notes:
svn path=/head/; revision=310705
|
|
|
|
|
|
|
|
|
| |
There are precedents of uses of bool in the kernel and
it is incorrect style to use integers as replacement for
a boolean type.
Notes:
svn path=/head/; revision=295523
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is ongoing work from Damjan Jovanovic to improve ext4 read support
with sparse files:
Keep track of the first and last block in each extent as it descends down
the extent tree, thus being able to work out that some blocks are sparse
earlier. This solves an issue on r293680.
In ext4_bmapext() start supporting the runb parameter, which appears to be
the number of adjacent blocks prior to the block being converted in the
same way that runp is the number of blocks after, speding up random access
to mmaped files.
PR: 206652
Notes:
svn path=/head/; revision=295494
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for sparse files in ext4. Also implement read-ahead, which
greatly increases the performance when transferring files from ext4.
Both features implemented by Damjan Jovanovic.
PR: 205816
MFC after: 1 week
Notes:
svn path=/head/; revision=293680
|
|
|
|
|
|
|
|
| |
Reported by: clang static analysis
MFC after: 2 weeks
Notes:
svn path=/head/; revision=277354
|
|
Basic support for extents was implemented by Zheng Liu as part
of his Google Summer of Code in 2010. This support is read-only
at this time.
In addition to extents we also support the huge_file extension
for read-only purposes. This works nicely with the additional
support for birthtime/nanosec timestamps and dir_index that
have been added lately.
The implementation may not work for all ext4 filesystems as
it doesn't support some features that are being enabled by
default on recent linux like flex_bg. Nevertheless, the feature
should be very useful for migration or simple access in
filesystems that have been converted from ext2/3 or don't use
incompatible features.
Special thanks to Zheng Liu for his dedication and continued
work to support ext2 in FreeBSD.
Submitted by: Zheng Liu (lz@)
Reviewed by: Mike Ma, Christoph Mallon (previous version)
Sponsored by: Google Inc.
MFC after: 3 weeks
Notes:
svn path=/head/; revision=254260
|