Page MenuHomeFreeBSD
Feed Advanced Search

Jan 28 2018

pfg committed rS328506: Revert r328492:.
Revert r328492:
Jan 28 2018, 3:17 AM

Jan 27 2018

pfg committed rS328497: pfctl(8): Fix two wrong conditions..
pfctl(8): Fix two wrong conditions.
Jan 27 2018, 10:57 PM
pfg closed D14083: pfctl(8): Fix two wrong conditions..
Jan 27 2018, 10:57 PM
pfg created D14083: pfctl(8): Fix two wrong conditions..
Jan 27 2018, 10:34 PM
pfg committed rS328493: libthr: Fix missing break in switch..
libthr: Fix missing break in switch.
Jan 27 2018, 10:28 PM
pfg committed rS328492: Fix gcc80 -Wsizeof-pointer-memaccess warning..
Fix gcc80 -Wsizeof-pointer-memaccess warning.
Jan 27 2018, 10:16 PM
pfg committed rS328487: pax(1): Honour the restrict in sigaction()..
pax(1): Honour the restrict in sigaction().
Jan 27 2018, 6:24 PM
pfg committed rS328486: fortune(6): Fix gcc80 -Wbool-operation warnings..
fortune(6): Fix gcc80 -Wbool-operation warnings.
Jan 27 2018, 5:43 PM
pfg committed rS328480: Revert r328479:.
Revert r328479:
Jan 27 2018, 4:34 PM
pfg committed rS328479: {ext2|ufs}_readdir: Set limit on valid ncookies values..
{ext2|ufs}_readdir: Set limit on valid ncookies values.
Jan 27 2018, 3:34 PM

Jan 25 2018

pfg committed rS328406: Minor style issue introduced in r328346..
Minor style issue introduced in r328346.
Jan 25 2018, 6:01 PM
pfg accepted D14051: Remove K&R stuff: never use it in new code..
Jan 25 2018, 5:07 PM

Jan 24 2018

pfg committed rS328346: ext2fs|ufs:Unsign some values related to allocation..
ext2fs|ufs:Unsign some values related to allocation.
Jan 24 2018, 5:59 PM
pfg committed rS328340: Revert r327781, r328093, r328056:.
Revert r327781, r328093, r328056:
Jan 24 2018, 4:45 PM
pfg committed rS328308: MFC r328221:.
MFC r328221:
Jan 24 2018, 12:12 AM

Jan 23 2018

pfg committed rS328280: extfs: Remove unused variables..
extfs: Remove unused variables.
Jan 23 2018, 2:17 PM
pfg closed D14017: Remove some apparently unused variables..
Jan 23 2018, 2:17 PM

Jan 22 2018

pfg created D14017: Remove some apparently unused variables..
Jan 22 2018, 5:43 PM
pfg closed D13835: Make use of mallocarray(9) in drm drivers..
Jan 22 2018, 3:56 PM
pfg committed rS328261: drm2: Basic use of mallocarray(9)..
drm2: Basic use of mallocarray(9).
Jan 22 2018, 3:56 PM
pfg accepted D13835: Make use of mallocarray(9) in drm drivers..

This is small enough that shouldn't affect upstream merging (also the code is very FreeBSD-specific).
It also respects the general objective of the code.

Jan 22 2018, 2:35 AM
pfg committed rS328239: Forgot to sort here in r328238..
Forgot to sort here in r328238.
Jan 22 2018, 2:26 AM
pfg committed rS328238: Unsign some values related to allocation..
Unsign some values related to allocation.
Jan 22 2018, 2:08 AM
pfg committed rS328237: Use the __alloc_size2 attribute where relevant..
Use the __alloc_size2 attribute where relevant.
Jan 22 2018, 1:50 AM

Jan 21 2018

pfg committed rS328221: Define a new __alloc_size2 attribute to complement the exiting support..
Define a new __alloc_size2 attribute to complement the exiting support.
Jan 21 2018, 8:28 PM
pfg committed rS328218: Revert r327828, r327949, r327953, r328016-r328026, r328041:.
Revert r327828, r327949, r327953, r328016-r328026, r328041:
Jan 21 2018, 3:42 PM

Jan 19 2018

pfg added a comment to D13964: Add flex_bg/meta_bg features RW support. .
In D13964#293442, @fsu wrote:
In D13964#293380, @pfg wrote:
In D13964#293266, @fsu wrote:
In D13964#293256, @pfg wrote:

Hmm.. it seems like we are getting to a rather complete ext4 implementation, which is positive. On the downside the code is diverging from UFS. We just can't have both I guess.

There are another features like RO_COMPAT_QUOTA, INCOMPAT_INLINE_DATA, etc, but from my current point of view, it is not so, important, if it will be required to implement it. I think it a not a problem.
The only feature, which will be difficult to implement is RO_COMPAT_BIGALLOC, but I hope it will be not widely used by linux.

I haven't looked at ext4 for a while but most of those features seem to require some obscure collaboration from the kernel, that is out of the scope of the driver. There's also the issue that most of the interesting enhancements in linux assume there is journalling.

I am not sure, that journal feature is required for non-native file system, also it will be difficult to test it.

Jan 19 2018, 7:26 PM
pfg added a comment to D13964: Add flex_bg/meta_bg features RW support. .
In D13964#293266, @fsu wrote:
In D13964#293256, @pfg wrote:

Hmm.. it seems like we are getting to a rather complete ext4 implementation, which is positive. On the downside the code is diverging from UFS. We just can't have both I guess.

There are another features like RO_COMPAT_QUOTA, INCOMPAT_INLINE_DATA, etc, but from my current point of view, it is not so, important, if it will be required to implement it. I think it a not a problem.
The only feature, which will be difficult to implement is RO_COMPAT_BIGALLOC, but I hope it will be not widely used by linux.

Jan 19 2018, 3:46 PM
pfg committed rS328164: libnv: Use mallocarray(9) for the nv_calloc..
libnv: Use mallocarray(9) for the nv_calloc.
Jan 19 2018, 2:50 PM
pfg added a comment to D13964: Add flex_bg/meta_bg features RW support. .

A sidenote: I just noticed META_BG is supported on ext3 too.

Jan 19 2018, 3:56 AM
pfg accepted D13964: Add flex_bg/meta_bg features RW support. .

Hmm.. it seems like we are getting to a rather complete ext4 implementation, which is positive. On the downside the code is diverging from UFS. We just can't have both I guess.
In any case , let me mention that EXT4F_RO_INCOMPAT_SUPP was created as a dirty hack: to workaround for features that we were not planning to support at all but that we needed to fake in order to read the partition.
We should remove EXT4F_RO_INCOMPAT_SUPP as it has fulfilled its purpose.

Jan 19 2018, 3:41 AM

Jan 17 2018

pfg committed rS328093: ufs: use mallocarray(9)..
ufs: use mallocarray(9).
Jan 17 2018, 6:18 PM

Jan 16 2018

pfg committed rS328070: SPDX: finish tagging sys/cam..
SPDX: finish tagging sys/cam.
Jan 16 2018, 11:20 PM
pfg committed rS328067: scsi_ch.c: Small cleanups to the comments..
scsi_ch.c: Small cleanups to the comments.
Jan 16 2018, 11:08 PM
pfg committed rS328056: ext2fs: use mallocarray(9)..
ext2fs: use mallocarray(9).
Jan 16 2018, 7:29 PM
pfg committed rS328041: Fix build after r328020..
Fix build after r328020.
Jan 16 2018, 6:05 AM

Jan 15 2018

pfg added a comment to D13837: Wider adoption of mallocarray(9)..

For the record: the changes were committed by parts in a series of commits from r328016 to r328026.

Jan 15 2018, 10:44 PM
pfg committed rS328026: misc geom and gnu: make some use of mallocarray(9)..
misc geom and gnu: make some use of mallocarray(9).
Jan 15 2018, 9:23 PM
pfg closed D13837: Wider adoption of mallocarray(9)..
Jan 15 2018, 9:23 PM
pfg committed rS328025: net*: make some use of mallocarray(9)..
net*: make some use of mallocarray(9).
Jan 15 2018, 9:22 PM
pfg committed rS328024: netgraph: make some use of mallocarray(9)..
netgraph: make some use of mallocarray(9).
Jan 15 2018, 9:19 PM
pfg committed rS328023: kern: make some use of mallocarray(9)..
kern: make some use of mallocarray(9).
Jan 15 2018, 9:18 PM
pfg committed rS328022: cam: make some use of mallocarray(9)..
cam: make some use of mallocarray(9).
Jan 15 2018, 9:15 PM
pfg committed rS328021: nfsclient: make some use of mallocarray(9)..
nfsclient: make some use of mallocarray(9).
Jan 15 2018, 9:15 PM
pfg committed rS328020: mips: make some use of mallocarray(9)..
mips: make some use of mallocarray(9).
Jan 15 2018, 9:13 PM
pfg committed rS328019: ndis: make some use of mallocarray(9)..
ndis: make some use of mallocarray(9).
Jan 15 2018, 9:11 PM
pfg committed rS328018: powerpc: make some use of mallocarray(9)..
powerpc: make some use of mallocarray(9).
Jan 15 2018, 9:11 PM
pfg committed rS328017: arm: make some use of mallocarray(9)..
arm: make some use of mallocarray(9).
Jan 15 2018, 9:10 PM
pfg committed rS328016: x86: make some use of mallocarray(9)..
x86: make some use of mallocarray(9).
Jan 15 2018, 9:08 PM

Jan 14 2018

pfg committed rS327978: Free Fedor Uporov from mentorship..
Free Fedor Uporov from mentorship.
Jan 14 2018, 9:21 PM
pfg committed rS327953: Fix build after r327949..
Fix build after r327949.
Jan 14 2018, 12:31 AM

Jan 13 2018

pfg updated the diff for D13837: Wider adoption of mallocarray(9)..

I committed sys/dev in rr327949 so drop those from the Revision.

Jan 13 2018, 10:36 PM
pfg committed rS327949: dev: make some use of mallocarray(9)..
dev: make some use of mallocarray(9).
Jan 13 2018, 10:30 PM
pfg committed rS327940: zstd: Use mallocarray(9) for calloc macro..
zstd: Use mallocarray(9) for calloc macro.
Jan 13 2018, 7:03 PM
pfg committed rS327937: Revert r327934 to fix the log message..
Revert r327934 to fix the log message.
Jan 13 2018, 6:56 PM
pfg committed rS327935: Add SPDX identifier for the example license..
Add SPDX identifier for the example license.
Jan 13 2018, 6:28 PM
pfg committed rS327934: zstd: Use memalloc(9) for calloc macro..
zstd: Use memalloc(9) for calloc macro.
Jan 13 2018, 6:09 PM

Jan 12 2018

pfg committed rS327898: libalias: small memory allocation cleanups..
libalias: small memory allocation cleanups.
Jan 12 2018, 11:12 PM
pfg committed rS327883: MFC r327697, r327699:.
MFC r327697, r327699:
Jan 12 2018, 5:36 PM
pfg updated the diff for D13835: Make use of mallocarray(9) in drm drivers..

This should be a minimal and more straightforward replacement.

Jan 12 2018, 4:44 PM

Jan 11 2018

pfg removed reviewers for D13837: Wider adoption of mallocarray(9).: O3: Kernel Random Numbers Generator, jmg, slm, shurd.
Jan 11 2018, 7:23 PM
pfg updated the diff for D13837: Wider adoption of mallocarray(9)..

Drop the arc4random change for now as to unblock this change.

Jan 11 2018, 3:52 PM
pfg committed rS327831: dev/bhnd: Make use of mallocarray(9)..
dev/bhnd: Make use of mallocarray(9).
Jan 11 2018, 3:44 PM
pfg committed rS327829: netpfil/ipfw: Make some use of mallocarray(9)..
netpfil/ipfw: Make some use of mallocarray(9).
Jan 11 2018, 3:29 PM
pfg closed D13834: Make use of mallocarray in sys/netpfil/ipfw.
Jan 11 2018, 3:29 PM
pfg committed rS327828: dev/(e1000,ixl): Make some use of mallocarray(9)..
dev/(e1000,ixl): Make some use of mallocarray(9).
Jan 11 2018, 3:25 PM
pfg closed D13833: Make use of the newly introduce mallocarray(9)..
Jan 11 2018, 3:25 PM
pfg accepted D13738: patch(1): Don't check for NUL bytes in Plan A.
Jan 11 2018, 2:28 PM
pfg added a comment to D13837: Wider adoption of mallocarray(9)..
In D13837#290289, @cem wrote:
In D13837#290288, @pfg wrote:

It is now the case that it panics right

Right.

(OpenBSD panics also, I think)?

No idea.

Can we have it return NULL for M_NOWAIT and panic for M_WAITOK?

No, I don't think that makes any sense.

Jan 11 2018, 12:25 AM
pfg added a comment to D13837: Wider adoption of mallocarray(9)..

When I started this changes, mallocarray(9) would return NULL on overflow, and for the M_WAITOK case the code was not prepared to handle that, so I avoided M_WAITOK changes for this revision (I was not going to do it at all).

Jan 11 2018, 12:22 AM

Jan 10 2018

pfg added a comment to D13837: Wider adoption of mallocarray(9)..
In D13837#290278, @cem wrote:

Was this mechanical (with e.g. coccinelle)?

Nope ... I checked it on opengrok and then by hand.

Jan 10 2018, 11:56 PM
pfg added a comment to D13835: Make use of mallocarray(9) in drm drivers..

Hi!

What is the benefit of using mallocarray() here?

Jan 10 2018, 11:52 PM
pfg added a reviewer for D13837: Wider adoption of mallocarray(9).: cem.
Jan 10 2018, 11:44 PM
pfg committed rS327793: MFC r327289:.
MFC r327289:
Jan 10 2018, 9:24 PM
pfg committed rS327791: MFC r327289:.
MFC r327289:
Jan 10 2018, 9:17 PM
pfg created D13837: Wider adoption of mallocarray(9)..
Jan 10 2018, 8:56 PM
pfg committed rS327788: linuxkpi: Simplify kmalloc_array..
linuxkpi: Simplify kmalloc_array.
Jan 10 2018, 8:50 PM
pfg accepted D13834: Make use of mallocarray in sys/netpfil/ipfw.
Jan 10 2018, 8:48 PM
pfg retitled D13834: Make use of mallocarray in sys/netpfil/ipfw from Make use of mallocarray in sys/netpfil/ipfs to Make use of mallocarray in sys/netpfil/ipfw.
Jan 10 2018, 8:47 PM
pfg created D13835: Make use of mallocarray(9) in drm drivers..
Jan 10 2018, 8:40 PM
pfg updated the summary of D13834: Make use of mallocarray in sys/netpfil/ipfw.
Jan 10 2018, 8:31 PM
pfg created D13834: Make use of mallocarray in sys/netpfil/ipfw.
Jan 10 2018, 8:30 PM
pfg created D13833: Make use of the newly introduce mallocarray(9)..
Jan 10 2018, 8:15 PM
pfg committed rS327782: dev/bxe: make use of mallocarray(9)..
dev/bxe: make use of mallocarray(9).
Jan 10 2018, 8:05 PM
pfg committed rS327781: Use mallocarray(9) in dirhash..
Use mallocarray(9) in dirhash.
Jan 10 2018, 7:45 PM
pfg added a comment to D13810: Add metadata_csum feature support..
In D13810#289917, @fsu wrote:
In D13810#289909, @pfg wrote:
In D13810#289828, @fsu wrote:
In D13810#289543, @pfg wrote:

A thought : would it be possible to checksum only what we are going to write to disk?
Data will not, generally, corrupt in memory and the kernel has no use for the checksums at runtime so we only need to write stuff when it's going to be converted to the on-disk format in ext2_inode_cnv.c.

All fields, which are mentioned in SUMMERY, should be written to disk. If it will not be updated, we will have errors reported by e2fsck, or bunch of error messages from driver on linux side.

I am not complaining at all about what is being checksummed: I understand you want to checksum everything that is needed. The main doubt is when to checksum.

There are two possibilities: you either checksum everything as soon as you get it or you checksum at the last moment before writing to disk. Both options have their advantages It seems like the checksumming is happening all over the filesystem so you are doing the former, I was only wondering if we could do all the checksums in a single place, right when we are converting to the ext2fs format for writing.

I am not sure if such thing is poosible though, and your change is not incorrect so I'll let you think about it but I'll approve the patch.

I use second approach, checksum every field before bwrite() call.

OK, I see ...

Jan 10 2018, 6:30 PM
pfg accepted D13810: Add metadata_csum feature support..
In D13810#289828, @fsu wrote:
In D13810#289543, @pfg wrote:

A thought : would it be possible to checksum only what we are going to write to disk?
Data will not, generally, corrupt in memory and the kernel has no use for the checksums at runtime so we only need to write stuff when it's going to be converted to the on-disk format in ext2_inode_cnv.c.

All fields, which are mentioned in SUMMERY, should be written to disk. If it will not be updated, we will have errors reported by e2fsck, or bunch of error messages from driver on linux side.

Jan 10 2018, 3:44 PM

Jan 9 2018

pfg committed rS327751: Use the __result_use_check attribute also for reallocf(3)..
Use the __result_use_check attribute also for reallocf(3).
Jan 9 2018, 10:48 PM
pfg added a comment to D13810: Add metadata_csum feature support..

A thought : would it be possible to checksum only what we are going to write to disk?
Data will not, generally, corrupt in memory and the kernel has no use for the checksums at runtime so we only need to write stuff when it's going to be converted to the on-disk format in ext2_inode_cnv.c.

Jan 9 2018, 8:36 PM

Jan 8 2018

pfg committed rS327699: Revert r327697:.
Revert r327697:
Jan 8 2018, 3:54 PM
pfg committed rS327697: malloc(9): drop the __result_use_check attribute for the kernel allocator..
malloc(9): drop the __result_use_check attribute for the kernel allocator.
Jan 8 2018, 3:41 PM

Jan 6 2018

pfg accepted D13737: fuse extattrs: fix issue when neither uio nor size were not passed to VOP_* (cosmetic only)..
Jan 6 2018, 4:17 PM
pfg accepted D13766: Introduce mallocarray() in the kernel.

OK, thanks.

Jan 6 2018, 4:11 PM
pfg added inline comments to D13766: Introduce mallocarray() in the kernel.
Jan 6 2018, 1:55 PM
pfg added inline comments to D13766: Introduce mallocarray() in the kernel.
Jan 6 2018, 3:46 AM
pfg requested changes to D13766: Introduce mallocarray() in the kernel.

For the record: I never liked adding reallocarray to stdlib.h because it is a nonstandard funtion. In the case of the kernel, of course, I think it is not an issue.

Jan 6 2018, 3:34 AM

Jan 5 2018

pfg committed rS327590: MFC r327329:.
MFC r327329:
Jan 5 2018, 5:23 PM
pfg committed rS327589: MFC r327329:.
MFC r327329:
Jan 5 2018, 5:21 PM

Jan 4 2018

pfg committed rS327550: MFC r327295:.
MFC r327295:
Jan 4 2018, 3:58 PM
pfg committed rS327549: MFC r327295:.
MFC r327295:
Jan 4 2018, 3:55 PM