Page MenuHomeFreeBSD

pjd (Pawel Jakub Dawidek)
User

Projects

User Details

User Since
Sep 26 2014, 6:56 AM (453 w, 5 d)

Recent Activity

Apr 17 2023

pjd committed rG068913e4ba3d: zfs: Add vfs.zfs.bclone_enabled sysctl. (authored by pjd).
zfs: Add vfs.zfs.bclone_enabled sysctl.
Apr 17 2023, 10:40 AM
pjd closed D39613: zfs: Add vfs.zfs.bclone_enabled sysctl..
Apr 17 2023, 10:39 AM
pjd requested review of D39613: zfs: Add vfs.zfs.bclone_enabled sysctl..
Apr 17 2023, 9:53 AM
pjd committed rG1959e122d932: zfs: Merge https://github.com/openzfs/zfs/pull/14739 (authored by pjd).
zfs: Merge https://github.com/openzfs/zfs/pull/14739
Apr 17 2023, 9:26 AM
pjd committed rGe0bb19992556: zfs: cherry-pick openzfs/zfs@c71fe7164 (authored by pjd).
zfs: cherry-pick openzfs/zfs@c71fe7164
Apr 17 2023, 9:26 AM

Apr 5 2023

pjd added a comment to D39419: zfs: Call vn_generic_copy_file_range() if block_cloning disabled.

We shouldn't make the code more complex and less readable just to optimize for some rare edge cases. If someone disables block cloning, they are most likely not too concerned with performance and trying to avoid an extra vnode lock at the expense of code readability is, in my opinion, the wrong approach.

Apr 5 2023, 8:43 AM
pjd accepted D39418: zfs: Fix null ap->a_fsizetd NULL pointer derefernce.

Thank you for the fix!

Apr 5 2023, 7:05 AM

Mar 13 2023

pjd added a comment to D38814: Call VOP_COPY_FILE_RANGE() for the same file system type..
In D38814#884116, @mjg wrote:

I think this is a step backwards and it is not what I suggested.

For example now any fs which does not provide it's own primitive will take a trip through returning EOPNOTSUPP when it can be avoided.

I suggested everyone handling as much as they can and otherwise punting to vn_generic_copy_file_range or a differently named fallback with the same result.

To further illustrate the win in nullfs case, consider the following with 2 nullfs mount points:

  1. we land in null_copy_file_range or whatever
  2. both target vnodes get "unwrapped"
  3. the vop gets invoked in vnode1 with both as arguments and we are done here

With the proposed patch it will be instead:

  1. we land in null_copy_file_range or whatever
  2. both target vnodes get found + refed
  3. the vop returns EOPNOTSUPP
  4. the routine unrefs vnodes and returns
  5. ... now vn_generic_copy_file_range will keep calling VOP_READ and VOP_WRITE while looking up + refing (and unrefing) vnodes for each call
Mar 13 2023, 9:59 AM

Mar 1 2023

pjd added a comment to D38814: Call VOP_COPY_FILE_RANGE() for the same file system type..

LGTM. But is there any file system that you expect to support cross-mountpoint copy_file_range ?

Mar 1 2023, 11:32 AM

Feb 27 2023

pjd requested review of D38814: Call VOP_COPY_FILE_RANGE() for the same file system type..
Feb 27 2023, 10:13 PM
pjd added a comment to D38803: vfs: Allow VOP_COPY_FILE_RANGE() to work across mount points..
In D38803#883156, @mjg wrote:

My grep fails to find any existing custom routines, I'm guessing one for zfs will be showing up later. I think this also means there is no worry of any backwards-incompatible breakage.

Feb 27 2023, 9:44 PM
pjd requested review of D38803: vfs: Allow VOP_COPY_FILE_RANGE() to work across mount points..
Feb 27 2023, 2:44 AM

Feb 3 2023

pjd accepted D35767: hastd: use zlib's crc32 implementation..
Feb 3 2023, 1:04 AM
pjd committed rGc54d240eb1a0: kern_prot.c p_candebug(): Remove single-use variable. (authored by pjd).
kern_prot.c p_candebug(): Remove single-use variable.
Feb 3 2023, 1:01 AM
pjd committed rG14ba79255be8: nv.9: Improve style in one of the examples. (authored by pjd).
nv.9: Improve style in one of the examples.
Feb 3 2023, 1:01 AM
pjd closed D38288: Remove single-use variable..
Feb 3 2023, 1:01 AM
pjd closed D38287: Improve the style in one of the examples..
Feb 3 2023, 1:01 AM

Jan 31 2023

pjd updated the diff for D38288: Remove single-use variable..

Use larger context for the diff to include the entire function.

Jan 31 2023, 12:21 AM
pjd requested review of D38288: Remove single-use variable..
Jan 31 2023, 12:16 AM
pjd requested review of D38287: Improve the style in one of the examples..
Jan 31 2023, 12:11 AM

Dec 23 2022

pjd accepted D37779: GEOM: Remove redundant NULL pointer check before g_free().
Dec 23 2022, 12:10 AM

Dec 13 2020

pjd committed R9:7baaa54158b5: Hmm, it looks I'm committer now. Add myself to committers list. (authored by pjd).
Hmm, it looks I'm committer now. Add myself to committers list.
Dec 13 2020, 6:51 PM
pjd committed R9:b662b2d53858: Added my PGP key. (authored by pjd).
Added my PGP key.
Dec 13 2020, 6:51 PM
pjd committed R9:f60f8a88e444: Inform the world about this special day. (authored by pjd).
Inform the world about this special day.
Dec 13 2020, 6:51 PM
pjd committed R9:d4004db38ea5: Add my entity (should be done in first place...). (authored by pjd).
Add my entity (should be done in first place...).
Dec 13 2020, 6:51 PM
pjd committed R9:3ad146de3fec: Put my PGP key into handbook. (authored by pjd).
Put my PGP key into handbook.
Dec 13 2020, 6:51 PM
pjd committed R9:8c2df31736d0: Ok, I really need some SCSI HW to do real-life tests for my GEOM classes. (authored by pjd).
Ok, I really need some SCSI HW to do real-life tests for my GEOM classes.
Dec 13 2020, 6:44 PM
pjd committed R9:4f70913f8b9f: Daniel Seuffert is going to send me even better hardware. (authored by pjd).
Daniel Seuffert is going to send me even better hardware.
Dec 13 2020, 6:41 PM
pjd committed R9:b6b2d959a916: Force commit to note, that Daniel Seuffert was the one who send me this great HW (authored by pjd).
Force commit to note, that Daniel Seuffert was the one who send me this great HW
Dec 13 2020, 6:41 PM
pjd committed R9:238e6f1feac9: - Fix newfs(8) name (there is no newfs_ffs(8)). (authored by pjd).
- Fix newfs(8) name (there is no newfs_ffs(8)).
Dec 13 2020, 6:34 PM
pjd committed R9:98ea8dbbbc9a: - Rename 'pjd' to 'zooguest'. We should find an animal for this box. (authored by pjd).
- Rename 'pjd' to 'zooguest'. We should find an animal for this box.
Dec 13 2020, 6:06 PM
pjd committed R9:ad0b05182bf3: Rename 'zooguest' to 'camel':) (authored by pjd).
Rename 'zooguest' to 'camel':)
Dec 13 2020, 6:06 PM

Sep 29 2020

pjd added inline comments to D26546: bspatch: enter capability mode after dropping fd rights.
Sep 29 2020, 9:48 AM

Jun 18 2020

pjd accepted D25312: Relax the rule against declaring variables in nested scopes..
Jun 18 2020, 9:18 AM

Apr 25 2020

pjd committed rS360325: Avoid the GEOM topology lock recursion when we automatically expand a pool..
Avoid the GEOM topology lock recursion when we automatically expand a pool.
Apr 25 2020, 9:45 PM
pjd committed rS360323: Add g_topology_locked() macro that returns true if we already hold the GEOM.
Add g_topology_locked() macro that returns true if we already hold the GEOM
Apr 25 2020, 9:41 PM

Feb 1 2020

pjd committed rS357363: The error variable is not really needed. Remove it..
The error variable is not really needed. Remove it.
Feb 1 2020, 10:15 AM
pjd committed rS357362: Restore previous usage presentation (without "pwait: " prefix)..
Restore previous usage presentation (without "pwait: " prefix).
Feb 1 2020, 9:13 AM

Jan 26 2020

pjd committed rS357143: Style changes, mostly usage of braces around single line statements -.
Style changes, mostly usage of braces around single line statements -
Jan 26 2020, 11:13 AM
pjd committed rS357142: Implement tests for the newly added -o flag..
Implement tests for the newly added -o flag.
Jan 26 2020, 11:03 AM
pjd committed rS357141: Implement -o flag which tells pwait(1) to exit if any of the given processes.
Implement -o flag which tells pwait(1) to exit if any of the given processes
Jan 26 2020, 11:03 AM
pjd committed rS357140: Don't setup a timeout if we are exiting..
Don't setup a timeout if we are exiting.
Jan 26 2020, 10:54 AM
pjd committed rS357139: Check for duplicated PID without using additional variable..
Check for duplicated PID without using additional variable.
Jan 26 2020, 10:52 AM
pjd committed rS357138: - Be consistent with using sysexits(3) codes..
- Be consistent with using sysexits(3) codes.
Jan 26 2020, 10:49 AM

Jan 22 2020

pjd committed rS356962: MFC r342873:.
MFC r342873:
Jan 22 2020, 1:10 AM

Nov 19 2019

pjd added inline comments to D22306: zfs: add option for forcible unmounting dataset while receiving snapshot..
Nov 19 2019, 6:55 AM

Oct 12 2019

pjd updated the diff for D21807: VirtIO SCSI online disk resize.

After discussion with mav@, add ASCQs for PARAMETERS CHANGED and MODE PARAMETERS CHANGED, similar to Linux and Windows. Also add a comment describing those values.

Oct 12 2019, 7:16 AM

Oct 7 2019

pjd added a comment to D21807: VirtIO SCSI online disk resize.
In D21807#476635, @mav wrote:
In D21807#476430, @pjd wrote:

I see. Though they both handle 3 statuses, not just one.

Oct 7 2019, 6:01 PM

Sep 27 2019

pjd added a comment to D21807: VirtIO SCSI online disk resize.
In D21807#476253, @mav wrote:
In D21807#476160, @pjd wrote:

What do you mean by 'too strict parsing of ASC/ASCQ'?

I mean that considering the codes are passed and they are called ASC/ASCQ in specification, there potentially may be other ones too, for which CAM may have own more specific handling ideas, and I believe it is not a SIM driver duty to handle details of SCSI protocol. I don't object your implementation, just thinking out loud whether it could it be done better/otherwise.

Sep 27 2019, 6:27 PM
pjd added a comment to D21807: VirtIO SCSI online disk resize.
In D21807#476017, @mav wrote:

This virtio API looks ugly. They conform themselves that device should also report normal UNIT ATTENTION with the same status, which is already handled by CAM DA driver. If we assume that device does generate UNIT ATTENTION, then we should be able to make cam send TUR request to see it by using AC_SCSI_AEN async. Alternatively, it is possible to simulate UNIT ATTENTION receive by using AC_UNIT_ATTENTION with fake CCB, including ASC/ASCQ received from virtio API. Your method should also work, but what I don\t very like it too strict parsing ASC/ASCQ and sending not exactly correct async.

Sep 27 2019, 5:39 AM

Sep 26 2019

pjd created D21807: VirtIO SCSI online disk resize.
Sep 26 2019, 7:23 PM

Apr 9 2019

pjd added a comment to D19854: Fix geli device cleanup.
In D19854#426191, @ngie wrote:
In D19854#426189, @pjd wrote:

Do you mind elaborating why cleaning up like that is wrong? The reason I did it was to avoid creating multiple md devices. Here we only have 8 iterations of the loop, but I could easly imagine tests were I'd have hundreds and cleaning as I go would be a good thing then, IMHO. But maybe I'm missing something obvious here, so if you could explain that would be great. Thanks.

PS. The patch is fine.

Long story short is that it was doubling up the cleanup process.

It would allocate the device in body function, clean it up in the body function, then try to clean up the same device in the cleanup function, failing because it didn't exist in a state that could be deallocated/detached.

Apr 9 2019, 7:20 AM
pjd accepted D19854: Fix geli device cleanup.

Do you mind elaborating why cleaning up like that is wrong? The reason I did it was to avoid creating multiple md devices. Here we only have 8 iterations of the loop, but I could easly imagine tests were I'd have hundreds and cleaning as I go would be a good thing then, IMHO. But maybe I'm missing something obvious here, so if you could explain that would be great. Thanks.

Apr 9 2019, 5:44 AM

Apr 4 2019

pjd committed rS345864: Implement tests for online expansion:.
Implement tests for online expansion:
Apr 4 2019, 12:05 AM

Apr 3 2019

pjd committed rS345863: Update configure tests after addition of the online expansion..
Update configure tests after addition of the online expansion.
Apr 3 2019, 11:59 PM
pjd committed rS345862: Implement automatic online expansion of GELI providers - if the underlying.
Implement automatic online expansion of GELI providers - if the underlying
Apr 3 2019, 11:57 PM
pjd committed rS345861: - Add missing -T (notrim) option to the label subcommand..
- Add missing -T (notrim) option to the label subcommand.
Apr 3 2019, 11:51 PM

Mar 30 2019

pjd committed rS345728: If the autoexpand pool property is turned on and vdev is healthy try to.
If the autoexpand pool property is turned on and vdev is healthy try to
Mar 30 2019, 7:29 AM
pjd committed rS345727: Introduce new event SIZECHANGE within GEOM system to inform about GEOM.
Introduce new event SIZECHANGE within GEOM system to inform about GEOM
Mar 30 2019, 7:24 AM
pjd committed rS345726: Implement support for online disk capacity changes..
Implement support for online disk capacity changes.
Mar 30 2019, 7:20 AM

Mar 1 2019

pjd committed rS344690: Improve readability of the code by making it explicit where the 'c' variable.
Improve readability of the code by making it explicit where the 'c' variable
Mar 1 2019, 5:54 AM

Feb 20 2019

pjd committed rS344325: Simplify the code. No functional changes..
Simplify the code. No functional changes.
Feb 20 2019, 12:25 AM

Feb 19 2019

pjd committed rS344320: Simplify the code..
Simplify the code.
Feb 19 2019, 11:53 PM
pjd committed rS344319: Correct typo in the comment..
Correct typo in the comment.
Feb 19 2019, 11:44 PM
pjd committed rS344318: Change assertion to log the incorrect io_type we've got..
Change assertion to log the incorrect io_type we've got.
Feb 19 2019, 11:43 PM
pjd committed rS344317: Grabage-collect no longer used variable..
Grabage-collect no longer used variable.
Feb 19 2019, 11:41 PM
pjd committed rS344316: The way ZFS searches for its vdevs is the following: first it looks for.
The way ZFS searches for its vdevs is the following: first it looks for
Feb 19 2019, 11:36 PM
pjd committed rS344314: In the vdev_geom_open_by_path() function we assume that vdev path starts.
In the vdev_geom_open_by_path() function we assume that vdev path starts
Feb 19 2019, 11:22 PM

Jan 9 2019

pjd committed rS342873: In r316006 the getstrfromtype_locked() function was modified to return.
In r316006 the getstrfromtype_locked() function was modified to return
Jan 9 2019, 1:16 AM

Dec 7 2018

pjd committed rS341675: Consider the following situation:.
Consider the following situation:
Dec 7 2018, 3:14 AM

Oct 20 2018

pjd accepted D16930: Fix casper limitations.

Change looks good, my only suggestion would be to use maybe NAME2ADDR and ADDR2NAME, so the intentions are obvious.

Oct 20 2018, 11:08 PM

Oct 4 2018

pjd committed rS339178: Remove invalid comments and correct some typos..
Remove invalid comments and correct some typos.
Oct 4 2018, 5:57 AM
pjd committed rS339177: When the adist_free list is empty and we lose connection to the receiver we.
When the adist_free list is empty and we lose connection to the receiver we
Oct 4 2018, 5:55 AM
pjd committed rS339176: When we look for a new trail file there might be a race between find trail.
When we look for a new trail file there might be a race between find trail
Oct 4 2018, 5:48 AM

Jul 13 2018

pjd added inline comments to D16202: libradius(3) IPv6 support.
Jul 13 2018, 2:02 PM

Jul 10 2018

pjd updated the diff for D16202: libradius(3) IPv6 support.

Revert style changes.
Remove #ifdef INET checks from radlib.h, it prevents some consumers from compiling.
Implement some of oshogbo suggestions.

Jul 10 2018, 3:11 PM
pjd added inline comments to D16202: libradius(3) IPv6 support.
Jul 10 2018, 3:09 PM
pjd updated the diff for D16202: libradius(3) IPv6 support.
  • Allow for optional compilation without IPv4 or IPv6 support.
  • Make it possible to use IPv6 addresses in configuration file.
  • Call getaddrinfo(3) with flags set to AI_ADDRCONFIG.
Jul 10 2018, 1:39 AM
pjd added a comment to D16202: libradius(3) IPv6 support.

You are probably talking about this one: https://markmail.org/message/e3zkukh7oggutrvw
I've tried it, but it is very out-dated and has some bugs. It also keeps server on a TAILQ, which is nice, but I don't think it should be combined. The nice thing about that patch was to add multiple servers when a hostname resolves to multiple IP addresses, which I also implemented.

Jul 10 2018, 12:30 AM

Jul 9 2018

pjd created D16202: libradius(3) IPv6 support.
Jul 9 2018, 11:49 PM
pjd accepted D11531: geom_gate: enable resize.
Jul 9 2018, 11:18 PM

Feb 3 2017

pjd added a comment to D7804: Set minimum GELI pkcsv5 iterations.

I agree with delphij that we should not introduce lower limit.

Feb 3 2017, 9:38 PM
pjd accepted D8236: improve PBKDF2 performance.
Feb 3 2017, 9:36 PM
pjd accepted D9423: Switch hastd to using libmd instead of openssl for sha256.

Looks good, but I agree that hastctl should use libmd too in that case.

Feb 3 2017, 9:28 PM
pjd accepted D8576: Defer startup of gjournal switcher kproc..
Feb 3 2017, 9:26 PM
pjd added a comment to D9396: geli attach multiple providers (with kernel changes).

Could you please explain why you implemented that in the kernel and not in userland geli command?

Feb 3 2017, 9:24 PM

Nov 8 2016

pjd committed rS308439: Please welcome Konrad Witaszczyk (def@) as a new source committer..
Please welcome Konrad Witaszczyk (def@) as a new source committer.
Nov 8 2016, 9:54 AM

May 31 2016

pjd committed rS301036: Release Mariusz Zaborski (oshogbo) from mentorship..
Release Mariusz Zaborski (oshogbo) from mentorship.
May 31 2016, 12:39 PM

Apr 3 2016

pjd added inline comments to D4712: Encrypted kernel crash dumps..
Apr 3 2016, 2:06 AM

Apr 2 2016

pjd added a comment to D4712: Encrypted kernel crash dumps..
In D4712#124230, @cem wrote:

I agree with kib@. It would be nice not to have separate userspace tools here.

In fact we already have encrypted GEOM providers (g_eli, ...). All we lack is a way to dump core through them—maybe? I'm not even sure we lack that.

Apr 2 2016, 9:16 PM
pjd added a comment to D4712: Encrypted kernel crash dumps..
In D4712#99936, @kib wrote:

I looked over the patch, it looks fine to me.

Still, I have a question. You choice was to modify the dump code, which resulted in spreading the patch over the MI dump and all MD minidump code. Semi-obvious alternate approach is to introduce a geom which would write the generated encrypted symmetric key into the first block and write data block N into encrypted block N+1 of the underlying provider. Then you do not have to touch the kernel dump code at all.

Is it possible technically ?

Apr 2 2016, 9:10 PM

Feb 24 2016

pjd added a comment to D4926: Optimize geli's algorithm to taste devices at boot.

Hi Pascal.

Feb 24 2016, 4:03 PM

Dec 29 2015

pjd closed D3814: aio_waitcomplete(2) should not sleep when timeout is not NULL, but set to 0..
Dec 29 2015, 4:20 PM
pjd added inline comments to D4712: Encrypted kernel crash dumps..
Dec 29 2015, 12:52 AM
pjd added inline comments to D4712: Encrypted kernel crash dumps..
Dec 29 2015, 12:39 AM
pjd added a comment to D4699: Make sys/geom/eli more easily reusable in userspace.

It looks good overall, but please be sure you run GELI regression tests. Thanks!

Dec 29 2015, 12:24 AM

Dec 16 2015

pjd committed rS292310: Keep maintainance of GELI and make it clear which directories I'm interested in..
Keep maintainance of GELI and make it clear which directories I'm interested in.
Dec 16 2015, 1:06 AM

Oct 25 2015

pjd committed rS289941: The aio_waitcomplete(2) syscall should not sleep when the given timeout.
The aio_waitcomplete(2) syscall should not sleep when the given timeout
Oct 25 2015, 6:48 PM

Oct 21 2015

pjd updated the diff for D3814: aio_waitcomplete(2) should not sleep when timeout is not NULL, but set to 0..

Thanks John, both good suggestions.

Oct 21 2015, 9:27 PM

Oct 5 2015

pjd retitled D3814: aio_waitcomplete(2) should not sleep when timeout is not NULL, but set to 0. from to aio_waitcomplete(2) should not sleep when timeout is not NULL, but set to 0..
Oct 5 2015, 5:04 PM