Author: pjd
Date: Sat Mar 30 07:24:34 2019
New Revision: 345727
URL: https://svnweb.freebsd.org/changeset/base/345727
Log:
Introduce new event SIZECHANGE within GEOM system to inform about GEOM
providers mediasize changes.
While here, use GEOM nomenclature to describe providers instead of
Author: pjd
Date: Sat Mar 30 07:29:20 2019
New Revision: 345728
URL: https://svnweb.freebsd.org/changeset/base/345728
Log:
If the autoexpand pool property is turned on and vdev is healthy try to
expand the pool automatically when we detect underlying GEOM provider
size change.
Obtained
Author: pjd
Date: Sat Mar 30 07:20:28 2019
New Revision: 345726
URL: https://svnweb.freebsd.org/changeset/base/345726
Log:
Implement support for online disk capacity changes.
Obtained from:Fudo Security
Tested in:AWS
Modified:
head/sys/dev/xen/blkfront/blkfront.c
Modified:
pr 3 23:50:52 2019(r345861)
+++ head/lib/geom/eli/geli.8Wed Apr 3 23:57:37 2019(r345862)
@@ -1,4 +1,4 @@
-.\" Copyright (c) 2005-2011 Pawel Jakub Dawidek
+.\" Copyright (c) 2005-2019 Pawel Jakub Dawidek
.\" All rights reserved.
.\"
.\" Redistributio
Author: pjd
Date: Wed Apr 3 23:50:52 2019
New Revision: 345861
URL: https://svnweb.freebsd.org/changeset/base/345861
Log:
- Add missing -T (notrim) option to the label subcommand.
- Add missing -T option in the onetime subcommand comment.
Obtained from:Fudo Security
Modified:
Author: pjd
Date: Wed Apr 3 23:58:58 2019
New Revision: 345863
URL: https://svnweb.freebsd.org/changeset/base/345863
Log:
Update configure tests after addition of the online expansion.
Obtained from:Fudo Security
Modified:
head/tests/sys/geom/class/eli/configure_test.sh
Modifie
Author: pjd
Date: Thu Apr 4 00:05:36 2019
New Revision: 345864
URL: https://svnweb.freebsd.org/changeset/base/345864
Log:
Implement tests for online expansion:
- init, init -R
- onetime, onetime -R
- 512 and 4k sectors
- encryption only
- encryption and authentication
- configure -r
Author: pjd
Date: Sun Jan 26 10:49:24 2020
New Revision: 357138
URL: https://svnweb.freebsd.org/changeset/base/357138
Log:
- Be consistent with using sysexits(3) codes.
- Turn fprintf()+exit() into errx().
Sponsored by: Fudo Security
Modified:
head/bin/pwait/pwait.c
Modified: head/bin
Author: pjd
Date: Sun Jan 26 10:51:57 2020
New Revision: 357139
URL: https://svnweb.freebsd.org/changeset/base/357139
Log:
Check for duplicated PID without using additional variable.
Sponsored by: Fudo Security
Modified:
head/bin/pwait/pwait.c
Modified: head/bin/pwait/pwait.c
==
Author: pjd
Date: Sun Jan 26 10:54:16 2020
New Revision: 357140
URL: https://svnweb.freebsd.org/changeset/base/357140
Log:
Don't setup a timeout if we are exiting.
Sponsored by: Fudo Security
Modified:
head/bin/pwait/pwait.c
Modified: head/bin/pwait/pwait.c
=
Author: pjd
Date: Sun Jan 26 11:02:51 2020
New Revision: 357141
URL: https://svnweb.freebsd.org/changeset/base/357141
Log:
Implement -o flag which tells pwait(1) to exit if any of the given processes
has terminated.
Sponsored by: Fudo Security
Modified:
head/bin/pwait/pwait.1
head/bi
Author: pjd
Date: Sun Jan 26 11:03:45 2020
New Revision: 357142
URL: https://svnweb.freebsd.org/changeset/base/357142
Log:
Implement tests for the newly added -o flag.
Sponsored by: Fudo Security
Modified:
head/bin/pwait/tests/pwait_test.sh
Modified: head/bin/pwait/tests/pwait_test.sh
=
Author: pjd
Date: Sun Jan 26 11:13:34 2020
New Revision: 357143
URL: https://svnweb.freebsd.org/changeset/base/357143
Log:
Style changes, mostly usage of braces around single line statements -
it is safer and allowed for some time now by style(9).
Sponsored by: Fudo Security
Modified:
Author: pjd
Date: Sat Feb 1 09:13:11 2020
New Revision: 357362
URL: https://svnweb.freebsd.org/changeset/base/357362
Log:
Restore previous usage presentation (without "pwait: " prefix).
Pointed out by: jilles
Modified:
head/bin/pwait/pwait.c
Modified: head/bin/pwait/pwait.c
=
On 1/30/20 14:47, Jilles Tjoelker wrote:
> On 26-01-2020 11:49, Pawel Jakub Dawidek wrote:
>> Author: pjd
>> Date: Sun Jan 26 10:49:24 2020
>> New Revision: 357138
>> URL: https://svnweb.freebsd.org/changeset/base/357138
>>
>> Log:
>> - Be consiste
Author: pjd
Date: Sat Feb 1 10:15:23 2020
New Revision: 357363
URL: https://svnweb.freebsd.org/changeset/base/357363
Log:
The error variable is not really needed. Remove it.
Modified:
head/sys/geom/geom_disk.c
Modified: head/sys/geom/geom_disk.c
=
Author: pjd
Date: Sat Apr 25 21:41:09 2020
New Revision: 360323
URL: https://svnweb.freebsd.org/changeset/base/360323
Log:
Add g_topology_locked() macro that returns true if we already hold the GEOM
topology lock.
Modified:
head/sys/geom/geom.h
Modified: head/sys/geom/geom.h
==
Author: pjd
Date: Sat Apr 25 21:45:31 2020
New Revision: 360325
URL: https://svnweb.freebsd.org/changeset/base/360325
Log:
Avoid the GEOM topology lock recursion when we automatically expand a pool.
The steps to reproduce the problem:
mdconfig -a -t swap -s 3g -u 0
gpart
Author: pjd
Date: Sun Feb 27 11:40:20 2011
New Revision: 219082
URL: http://svn.freebsd.org/changeset/base/219082
Log:
Recognize 'reload' command, as hastd can be reloaded with the SIGHUP signal.
MFC after:1 week
Modified:
head/etc/rc.d/hastd
Modified: head/etc/rc.d/hastd
==
Author: pjd
Date: Sun Feb 27 12:25:47 2011
New Revision: 219083
URL: http://svn.freebsd.org/changeset/base/219083
Log:
Rename bcpy() macro to bcopy().
Modified:
head/sys/boot/common/gpt.c
head/sys/boot/common/util.h
Modified: head/sys/boot/common/gpt.c
=
Author: pjd
Date: Sun Feb 27 13:58:20 2011
New Revision: 219085
URL: http://svn.freebsd.org/changeset/base/219085
Log:
Force DMA for controller found in Lenovo T510 (probably in others too).
This makes reads 10 times faster.
Discussed with: mav
Modified:
head/sys/dev/sdhci/sdhci.
:41:40 2011
(r219089)
@@ -0,0 +1,38 @@
+/*-
+ * Copyright (c) 2010 Pawel Jakub Dawidek
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1
Author: pjd
Date: Sun Feb 27 19:44:10 2011
New Revision: 219090
URL: http://svn.freebsd.org/changeset/base/219090
Log:
Commit two more files missed in r219089.
MFC after:1 month
Modified:
head/Makefile.inc1
head/etc/rc.d/zvol
Modified: head/Makefile.inc1
==
Author: pjd
Date: Mon Feb 28 05:45:31 2011
New Revision: 219092
URL: http://svn.freebsd.org/changeset/base/219092
Log:
Use proper lock in assertion.
MFC after:1 month
Modified:
head/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c
Modified: head/sys/cddl/compat/opensolaris/kern
On Sun, Feb 27, 2011 at 02:52:42PM -0800, Doug Barton wrote:
> On 02/27/2011 11:41, Pawel Jakub Dawidek wrote:
> >Author: pjd
> >Date: Sun Feb 27 19:41:40 2011
> >New Revision: 219089
> >URL: http://svn.freebsd.org/changeset/base/219089
> >
> >Log:
> &g
Author: pjd
Date: Sat Mar 5 22:24:31 2011
New Revision: 219316
URL: http://svn.freebsd.org/changeset/base/219316
Log:
Simplify zvol_remove_minors() a bit.
MFC after:1 month
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
Modified: head/sys/cddl/contrib/opensola
Author: pjd
Date: Sat Mar 5 22:31:03 2011
New Revision: 219317
URL: http://svn.freebsd.org/changeset/base/219317
Log:
Make renaming of a ZVOL, ZVOL's parent directory and ZVOL snapshot work.
Reported by: avg
MFC after:1 month
Modified:
head/sys/cddl/contrib/opensolaris/uts/common
Author: pjd
Date: Sun Mar 6 01:22:14 2011
New Revision: 219320
URL: http://svn.freebsd.org/changeset/base/219320
Log:
Fix libzpool build.
MFC after:1 month
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c
head/sys/cddl/contrib/opensolaris/uts/common/fs/z
Author: pjd
Date: Sun Mar 6 17:43:32 2011
New Revision: 219342
URL: http://svn.freebsd.org/changeset/base/219342
Log:
Fix various issues in how %#T is handled:
- If precision is 0, don't print period followed by no digits.
- If precision is 0 stop printing units as soon as possible
(eg.
Author: pjd
Date: Sun Mar 6 17:45:37 2011
New Revision: 219343
URL: http://svn.freebsd.org/changeset/base/219343
Log:
Include stdio.h, so we can include printf.h in any order, as it needs FILE.
MFC after:2 weeks
Modified:
head/include/printf.h
Modified: head/include/printf.h
==
Author: pjd
Date: Sun Mar 6 17:46:06 2011
New Revision: 219344
URL: http://svn.freebsd.org/changeset/base/219344
Log:
expand_number() needs uint64_t, declare it here if not already declared.
MFC after:3 days
Modified:
head/lib/libutil/libutil.h
Modified: head/lib/libutil/libutil.h
Author: pjd
Date: Sun Mar 6 19:47:46 2011
New Revision: 219346
URL: http://svn.freebsd.org/changeset/base/219346
Log:
Because we call __printf_out() with a on-stack buffer, also call
__printf_flush() so we are sure it won't be referenced after we return.
MFC after:2 weeks
Modified:
0:53 2011(r219350)
+++ head/sbin/hastd/hast.conf.5 Sun Mar 6 22:56:14 2011(r219351)
@@ -1,5 +1,5 @@
.\" Copyright (c) 2010 The FreeBSD Foundation
-.\" Copyright (c) 2010 Pawel Jakub Dawidek
+.\" Copyright (c) 2010-2011 Pawel Jakub Dawidek
.\" All ri
int hr_compression;
/* Checksum algorithm. */
int hr_checksum;
Added: head/sbin/hastd/hast_compression.c
==
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sbin/hastd/hast_compression.c S
Author: pjd
Date: Mon Mar 7 09:28:21 2011
New Revision: 219368
URL: http://svn.freebsd.org/changeset/base/219368
Log:
To be able to use printf extensions we need to turn off gcc format checking.
Following the convention of NO_WERROR and NO_WCAST_ALIGN add NO_WFORMAT,
which, when defined in
Author: pjd
Date: Mon Mar 7 10:33:52 2011
New Revision: 219369
URL: http://svn.freebsd.org/changeset/base/219369
Log:
Provides three states for pjdlog_initialized, so we can also tell that
this is fist initialization ever.
MFC after:2 weeks
Modified:
head/sbin/hastd/pjdlog.c
Modi
Author: pjd
Date: Mon Mar 7 10:38:18 2011
New Revision: 219370
URL: http://svn.freebsd.org/changeset/base/219370
Log:
- Turn on printf extentions.
- Load support for %T for pritning time.
- Add support for %N for printing number in human readable form.
- Add support for %S for printing so
Author: pjd
Date: Mon Mar 7 10:39:26 2011
New Revision: 219371
URL: http://svn.freebsd.org/changeset/base/219371
Log:
Use %S to print IP address and port number.
MFC after:2 weeks
Modified:
head/sbin/hastd/proto_tcp4.c
Modified: head/sbin/hastd/proto_tcp4.c
Author: pjd
Date: Mon Mar 7 10:41:12 2011
New Revision: 219372
URL: http://svn.freebsd.org/changeset/base/219372
Log:
- Log size of data to synchronize in human readable form (using %N).
- Log synchronization time (using %T).
- Log synchronization speed in human readable form (using %N).
Author: pjd
Date: Mon Mar 7 10:42:28 2011
New Revision: 219373
URL: http://svn.freebsd.org/changeset/base/219373
Log:
Print some of the numbers in human readable form (using %N).
MFC after:2 weeks
Modified:
head/sbin/hastctl/hastctl.c
Modified: head/sbin/hastctl/hastctl.c
=
On Mon, Mar 07, 2011 at 10:41:12AM +, Pawel Jakub Dawidek wrote:
> Author: pjd
> Date: Mon Mar 7 10:41:12 2011
> New Revision: 219372
> URL: http://svn.freebsd.org/changeset/base/219372
>
> Log:
> - Log size of data to synchronize in human readable form
Author: pjd
Date: Mon Mar 7 19:54:51 2011
New Revision: 219385
URL: http://svn.freebsd.org/changeset/base/219385
Log:
Unbreak the build.
MFC after:2 weeks
Modified:
head/sbin/hastd/pjdlog.c
Modified: head/sbin/hastd/pjdlog.c
=
Author: pjd
Date: Tue Mar 8 18:39:41 2011
New Revision: 219404
URL: http://svn.freebsd.org/changeset/base/219404
Log:
Correct readdir over ZFS handling.
Reported by: Pierre Beyssac
MFC after:1 month
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Modif
On Tue, Mar 08, 2011 at 06:39:41PM +, Pawel Jakub Dawidek wrote:
> Author: pjd
> Date: Tue Mar 8 18:39:41 2011
> New Revision: 219404
> URL: http://svn.freebsd.org/changeset/base/219404
>
> Log:
> Correct readdir over ZFS handling.
s/ZFS/NFS/
--
Author: pjd
Date: Wed Mar 9 07:43:51 2011
New Revision: 219424
URL: http://svn.freebsd.org/changeset/base/219424
Log:
Change example to not be controversial.
I'm sorry to anyone who felt offended by this.
PR: docs/155385
Reported by: maga_lena
MFC after:1 week
Modifi
Author: pjd
Date: Wed Mar 9 22:39:10 2011
New Revision: 219437
URL: http://svn.freebsd.org/changeset/base/219437
Log:
Add support for the following syscalls:
- fchmod(2),
- fchown(2),
- fchflags(2),
- fstat(2),
- ftruncate(2),
- fpathconf(2),
- lpathconf(2).
Make write(2) syscal
Author: pjd
Date: Wed Mar 9 22:50:15 2011
New Revision: 219438
URL: http://svn.freebsd.org/changeset/base/219438
Log:
Pass descriptor number to write(2), now that it is possible.
Modified:
head/tools/regression/pjdfstest/pjdfstest.c
head/tools/regression/pjdfstest/tests/chmod/12.t
Modifie
Author: pjd
Date: Wed Mar 9 23:11:30 2011
New Revision: 219439
URL: http://svn.freebsd.org/changeset/base/219439
Log:
Few initial ftruncate(2) tests. One of them covers stand/154873.
PR: stand/154873
Added:
head/tools/regression/pjdfstest/tests/ftruncate/
head/tools/regression/pjdfs
Author: pjd
Date: Thu Mar 10 20:59:02 2011
New Revision: 219463
URL: http://svn.freebsd.org/changeset/base/219463
Log:
Improve test a bit, now that we have fstat(2) support.
The test was support to check if SUID/SGID bits are removed on first
write, but actually we were checking if they were
Author: pjd
Date: Thu Mar 10 21:00:30 2011
New Revision: 219464
URL: http://svn.freebsd.org/changeset/base/219464
Log:
Add support for *at syscalls:
- openat(2)
- unlinkat(2)
- mkdirat(2)
- linkat(2)
- symlinkat(2)
- renameat(2)
- mkfifoat(2)
- mknodat(2)
- fchmodat(2)
- fcho
me. Thank you, John.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am! http://yomoli.com
pgpx7DknItH5Z.pgp
Description: PGP signature
Author: pjd
Date: Sat Mar 12 14:09:43 2011
New Revision: 219566
URL: http://svn.freebsd.org/changeset/base/219566
Log:
Add some missing consts.
Modified:
head/tools/regression/pjdfstest/pjdfstest.c
Modified: head/tools/regression/pjdfstest/pjdfstest.c
Author: pjd
Date: Sun Mar 13 19:35:13 2011
New Revision: 219621
URL: http://svn.freebsd.org/changeset/base/219621
Log:
POSIX accepts only ELOOP if O_NOFOLLOW is specified and target is a symlink.
Modified:
head/tools/regression/pjdfstest/tests/open/16.t
Modified: head/tools/regression/pjdfst
Author: pjd
Date: Mon Mar 14 11:07:12 2011
New Revision: 219636
URL: http://svn.freebsd.org/changeset/base/219636
Log:
Fix potential panic in dbuf_sync_list() relate to spill blocks handling.
Obtained from:IllumOS
MFC after:1 month
Modified:
head/sys/cddl/contrib/opensolari
eep,
> perchance to dream...
And yes, I just heard, it is snowing in hell.
This is for you, Nathan:
http://www.youtube.com/watch?v=4m8ltkjO7Pg
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.
Author: pjd
Date: Tue Mar 15 13:53:39 2011
New Revision: 219669
URL: http://svn.freebsd.org/changeset/base/219669
Log:
Remove #include needed for debugging.
MFC after:1 week
Modified:
head/sbin/hastd/proto_common.c
Modified: head/sbin/hastd/proto_common.c
===
Author: pjd
Date: Wed Mar 16 08:58:09 2011
New Revision: 219696
URL: http://svn.freebsd.org/changeset/base/219696
Log:
From fts.c comment:
The "FTS_NOSTAT" option can avoid a lot of calls to stat(2) if it knows that a
directory could not possibly have subdirectories. This is decided by lo
Author: pjd
Date: Mon Mar 21 08:31:35 2011
New Revision: 219813
URL: http://svn.freebsd.org/changeset/base/219813
Log:
If there is any traffic on one of out descriptors, we were not checking for
long running hooks. Fix it by not using select(2) timeout to decide if we want
to check hooks or
Author: pjd
Date: Mon Mar 21 08:33:58 2011
New Revision: 219814
URL: http://svn.freebsd.org/changeset/base/219814
Log:
When creating connection on behalf of primary worker, set pjdlog prefix
to resource name and role, so that any logs related to that can be identified
properly.
MFC afte
Author: pjd
Date: Mon Mar 21 08:36:50 2011
New Revision: 219815
URL: http://svn.freebsd.org/changeset/base/219815
Log:
Add snprlcat() and vsnprlcat() - the functions I'm always missing.
They work as a combination of snprintf(3) and strlcat(3) - the caller
can append a string build based on t
Author: pjd
Date: Mon Mar 21 08:37:50 2011
New Revision: 219816
URL: http://svn.freebsd.org/changeset/base/219816
Log:
Use snprlcat() instead of two strlcat(3)s.
MFC after:1 week
Modified:
head/sbin/hastd/hooks.c
Modified: head/sbin/hastd/hooks.c
Author: pjd
Date: Mon Mar 21 08:38:24 2011
New Revision: 219817
URL: http://svn.freebsd.org/changeset/base/219817
Log:
Log when we start hooks checking and when we execute a hook.
MFC after:1 week
Modified:
head/sbin/hastd/hooks.c
Modified: head/sbin/hastd/hooks.c
==
Author: pjd
Date: Mon Mar 21 08:54:59 2011
New Revision: 219818
URL: http://svn.freebsd.org/changeset/base/219818
Log:
In hast.conf we define the other node's address in 'remote' variable.
This way we know how to connect to secondary node when we are primary.
The same variable is used by the
Author: pjd
Date: Mon Mar 21 11:52:00 2011
New Revision: 219821
URL: http://svn.freebsd.org/changeset/base/219821
Log:
Forgot to commit this as a part of r219818.
MFC after:1 week
Modified:
head/sbin/hastctl/hastctl.c
Modified: head/sbin/hastctl/hastctl.c
===
Author: pjd
Date: Mon Mar 21 14:50:12 2011
New Revision: 219830
URL: http://svn.freebsd.org/changeset/base/219830
Log:
Detect situation where resource internal identifier differs.
This means that both nodes have separately managed resources that don't
have the same data.
MFC after:1
Author: pjd
Date: Mon Mar 21 14:51:16 2011
New Revision: 219831
URL: http://svn.freebsd.org/changeset/base/219831
Log:
Be pedantic and free nvout before exiting.
MFC after:1 week
Modified:
head/sbin/hastd/secondary.c
Modified: head/sbin/hastd/secondary.c
Author: pjd
Date: Mon Mar 21 14:53:27 2011
New Revision: 219832
URL: http://svn.freebsd.org/changeset/base/219832
Log:
Increase debug level of "Checking hooks." message.
MFC after:1 week
Modified:
head/sbin/hastd/hooks.c
Modified: head/sbin/hastd/hooks.c
Author: pjd
Date: Mon Mar 21 15:08:10 2011
New Revision: 219833
URL: http://svn.freebsd.org/changeset/base/219833
Log:
Remove stale comment. Yes, it is valid to set role back to init.
MFC after:1 week
Modified:
head/sbin/hastd/control.c
Modified: head/sbin/hastd/control.c
==
Author: pjd
Date: Mon Mar 21 15:29:20 2011
New Revision: 219837
URL: http://svn.freebsd.org/changeset/base/219837
Log:
Before handling any events on descriptors check signals so we can update
our info about worker processes if any of them was terminated in the meantime.
This fixes the pro
Author: pjd
Date: Mon Mar 21 21:14:07 2011
New Revision: 219843
URL: http://svn.freebsd.org/changeset/base/219843
Log:
Fix typo.
MFC after:1 week
Modified:
head/sbin/hastd/secondary.c
Modified: head/sbin/hastd/secondary.c
=
Author: pjd
Date: Mon Mar 21 21:16:12 2011
New Revision: 219844
URL: http://svn.freebsd.org/changeset/base/219844
Log:
Initialize localcnt on first write. This fixes assertion when we create
resource, set role to primary, do no writes, then sent it to secondary
and accept connection from pri
Author: pjd
Date: Mon Mar 21 21:31:50 2011
New Revision: 219847
URL: http://svn.freebsd.org/changeset/base/219847
Log:
When dropping privileges prefer capsicum over chroot+setgid+setuid.
We can use capsicum for secondary worker processes and hastctl.
When working as primary we drop privilege
Author: pjd
Date: Tue Mar 22 10:39:34 2011
New Revision: 219864
URL: http://svn.freebsd.org/changeset/base/219864
Log:
White space cleanups.
MFC after:1 week
Modified:
head/sbin/hastd/activemap.c
head/sbin/hastd/hastd.8
head/sbin/hastd/hastd.c
head/sbin/hastd/primary.c
head/s
Author: pjd
Date: Tue Mar 22 16:21:11 2011
New Revision: 219873
URL: http://svn.freebsd.org/changeset/base/219873
Log:
The proto API is a general purpose API, so don't use 'hast' in structures or
function names. It can now be used outside of HAST.
MFC after:1 week
Modified:
head/sb
Author: pjd
Date: Tue Mar 22 21:11:36 2011
New Revision: 219884
URL: http://svn.freebsd.org/changeset/base/219884
Log:
Forgot to commit this as part of r219873.
MFC after:1 week
Modified:
head/sbin/hastctl/Makefile
Modified: head/sbin/hastctl/Makefile
===
==
--- head/sbin/hastd/subr.c Tue Mar 22 21:16:14 2011(r219886)
+++ head/sbin/hastd/subr.c Tue Mar 22 21:19:51 2011(r219887)
@@ -1,5 +1,6 @@
/*-
* Copyright (c) 2010 The FreeBSD Foundation
+ * Copyright (c) 2011 Pawel Jakub Dawidek
Author: pjd
Date: Wed Mar 23 11:09:04 2011
New Revision: 219900
URL: http://svn.freebsd.org/changeset/base/219900
Log:
Don't create socketpair for connection forwarding between parent and
secondary.
Secondary doesn't need to connect anywhere.
MFC after:1 week
Modified:
head/sbin/h
Author: pjd
Date: Thu Mar 24 14:12:41 2011
New Revision: 219959
URL: http://svn.freebsd.org/changeset/base/219959
Log:
Properly print characters larger than 127.
Submitted by: noordsij
Reviewed by: Eric Schrock
MFC after:1 month
Modified:
head/cddl/contrib/opensolaris/lib/libz
Author: pjd
Date: Thu Mar 24 20:28:09 2011
New Revision: 219973
URL: http://svn.freebsd.org/changeset/base/219973
Log:
Checking file access on size change is bogus. The checks are done earlier by
VFS where we know if this is truncate(2) or ftruncate(2). If this is the
latter we should depend
Author: pjd
Date: Fri Mar 25 20:13:38 2011
New Revision: 220005
URL: http://svn.freebsd.org/changeset/base/220005
Log:
Use role2str() when setting process title.
MFC after:1 week
Modified:
head/sbin/hastd/primary.c
head/sbin/hastd/secondary.c
Modified: head/sbin/hastd/primary.c
==
Author: pjd
Date: Fri Mar 25 20:15:16 2011
New Revision: 220006
URL: http://svn.freebsd.org/changeset/base/220006
Log:
Use timeout from configuration file not only when sending and receiving,
but also when establishing connection.
MFC after:1 week
Modified:
head/sbin/hastd/primary.
Author: pjd
Date: Fri Mar 25 20:19:15 2011
New Revision: 220007
URL: http://svn.freebsd.org/changeset/base/220007
Log:
Add mapsize to the header just before sending the packet.
Before it could change later and we were sending invalid mapsize.
Some time ago I added optimization where when nod
Author: pjd
Date: Sat Mar 26 07:15:57 2011
New Revision: 220023
URL: http://svn.freebsd.org/changeset/base/220023
Log:
Follow style(9) in example code and handle opendir(3) error.
Modified:
head/lib/libc/gen/directory.3
Modified: head/lib/libc/gen/directory.3
Author: pjd
Date: Sat Mar 26 07:17:24 2011
New Revision: 220024
URL: http://svn.freebsd.org/changeset/base/220024
Log:
Don't calculate len too early.
Modified:
head/lib/libc/gen/directory.3
Modified: head/lib/libc/gen/directory.3
==
Author: pjd
Date: Sat Apr 2 06:56:06 2011
New Revision: 220264
URL: http://svn.freebsd.org/changeset/base/220264
Log:
GEOM has an internal mechanism to deal with ENOMEM errors returned via
g_io_deliver(). In such case it increases 'pace' counter on each ENOMEM and
reschedules the request. T
Author: pjd
Date: Sat Apr 2 06:59:05 2011
New Revision: 220265
URL: http://svn.freebsd.org/changeset/base/220265
Log:
Because ggatel(8) operates on local GEOM providers, use unlimited queue size
in
GEOM GATE to fix the issue described in r220264. This also means that we no
longer need -q o
Author: pjd
Date: Sat Apr 2 07:01:09 2011
New Revision: 220266
URL: http://svn.freebsd.org/changeset/base/220266
Log:
Handle the problem described in r220264 by using GEOM GATE queue of unlimited
length. This should fix deadlocks reported by HAST users.
MFC after:1 week
Modified:
Author: pjd
Date: Sat Apr 2 09:22:06 2011
New Revision: 220270
URL: http://svn.freebsd.org/changeset/base/220270
Log:
Allow to disable sends or receives on a socket using shutdown(2) by
interpreting NULL 'data' argument passed to proto_common_send() or
proto_common_recv() as a will to do so
Author: pjd
Date: Sat Apr 2 09:25:13 2011
New Revision: 220271
URL: http://svn.freebsd.org/changeset/base/220271
Log:
Declare directions for sockets between primary and secondary.
In HAST we use two sockets - one for only sending the data and one for only
receiving the data.
MFC after:
/proto_common.c Sat Apr 2 09:25:13 2011
(r220271)
+++ head/sbin/hastd/proto_common.c Sat Apr 2 09:29:53 2011
(r220272)
@@ -1,5 +1,6 @@
/*-
* Copyright (c) 2009-2010 The FreeBSD Foundation
+ * Copyright (c) 2011 Pawel Jakub Dawidek
* All rights reserved.
*
* This software
Author: pjd
Date: Sat Apr 2 09:31:02 2011
New Revision: 220273
URL: http://svn.freebsd.org/changeset/base/220273
Log:
Handle ENOBUFS on send(2) by retrying for a while and logging the problem.
MFC after:1 week
Modified:
head/sbin/hastd/proto_common.c
Modified: head/sbin/hastd/proto
On Sat, Apr 02, 2011 at 09:22:06AM +, Pawel Jakub Dawidek wrote:
> Author: pjd
> Date: Sat Apr 2 09:22:06 2011
> New Revision: 220270
> URL: http://svn.freebsd.org/changeset/base/220270
>
> Log:
> Allow to disable sends or receives on a socket using shutdown(2) by
Author: pjd
Date: Sat Apr 2 09:34:33 2011
New Revision: 220274
URL: http://svn.freebsd.org/changeset/base/220274
Log:
Increase default timeout from 5 seconds to 20 seconds. 5 seconds is definitely
to short under heavy load and I was experiencing those timeouts in my recent
tests.
MFC a
Author: pjd
Date: Tue Apr 12 19:13:10 2011
New Revision: 220573
URL: http://svn.freebsd.org/changeset/base/220573
Log:
The replication mode that is currently support is fullsync, not memsync.
Correct this and print a warning if different replication mode is
configured.
MFC after:1 w
Author: pjd
Date: Tue Apr 12 20:31:33 2011
New Revision: 220575
URL: http://svn.freebsd.org/changeset/base/220575
Log:
Fix 'zfs list ' handling. If the path was found, the 'ret' variable was
uninitialized.
PR: kern/155940
Submitted by: KOIE Hidetaka
MFC after:1 week
Mo
;map/%s", name);
Four spaces.
> + printf("MAP: %08x-%08x, offset=%08x \"map/%s\"\n",
> +(uint32_t) start,
> +(uint32_t) size,
> +(uint32_t) off,
> +name
> +);
Four spaces.
Not need to separate cast and variable with space.
> + if (error)
> + printf("%s g_slice_config returns %d for \"%s\"\n",
> + __func__, error, name);
Leftover debug printf?
> + sc->entry[i] = off;
> + sc->dsize[i] = size - off;
> + sc->readonly[i] = readonly ? 1 : 0;
> + }
> +
> +
> + if (i == 0)
> + return (NULL);
Redundant empty line before 'if'.
> +static void
> +g_map_config(struct gctl_req *req, struct g_class *mp, const char *verb)
> +{
> + struct g_geom *gp;
> +
> + g_topology_assert();
> + gp = gctl_get_geom(req, mp, "geom");
> + if (gp == NULL)
> + return;
> + gctl_error(req, "Unknown verb");
> +}
Seems to be a no-op. GEOM can cope if this method is not specified.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am! http://yomoli.com
pgp19Ub8WGjYs.pgp
Description: PGP signature
go off the last bump, if there are any.
>
> Every freebsd_version bump forces rebuilding all modules and such and is a
> pita.
I agree that this is a PITA, but there also should be a way to force
module load even on version bump. This is PITA especially for
developers.
--
Pawel Jakub D
e run.
I'd still go with SEEK_DATA/SEEK_HOLE loop as I suggested on arch@.
If you would like to spend time on it, having SEEK_DATA/SEEK_HOLE
support in UFS would be beneficial for other purposes too.
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer
l, making it atomic would be impossible currently for various
reasons (we can't put holes back and we can crash in the middle).
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am!
Author: pjd
Date: Tue Apr 19 19:26:27 2011
New Revision: 220865
URL: http://svn.freebsd.org/changeset/base/220865
Log:
Scenario:
- We have two nodes connected and synchronized (local counters on both sides
are 0).
- We take secondary down and recreate it.
- Primary connects to it and s
1 - 100 of 1363 matches
Mail list logo