]> sourceware.org Git - lvm2.git/log
lvm2.git
7 years agopre-release v2_02_170
Alasdair G Kergon [Wed, 12 Apr 2017 23:43:31 +0000 (00:43 +0100)]
pre-release

7 years agoautoconf
Alasdair G Kergon [Wed, 12 Apr 2017 23:38:46 +0000 (00:38 +0100)]
autoconf

7 years agomake generate
Alasdair G Kergon [Wed, 12 Apr 2017 23:30:05 +0000 (00:30 +0100)]
make generate

7 years agotests: use egrep to check for message
Zdenek Kabelac [Wed, 12 Apr 2017 20:52:56 +0000 (22:52 +0200)]
tests: use egrep to check for message

Seems we may get different '' around option on different nixes.

7 years agotests: aux defines fsadm path
Zdenek Kabelac [Wed, 12 Apr 2017 21:03:08 +0000 (23:03 +0200)]
tests: aux defines fsadm path

7 years agoraid: use log_error
Zdenek Kabelac [Wed, 12 Apr 2017 21:05:09 +0000 (23:05 +0200)]
raid: use log_error

Turn log_print into log_error for error path.

7 years agolvconvert: return error without conversion
Heinz Mauelshagen [Wed, 12 Apr 2017 20:11:30 +0000 (22:11 +0200)]
lvconvert: return error without conversion

lvconvert parameters not causing a conversion (i.e. no type,
number of stripes, stripesize or regionsize changes) will
remove any allocated reshape space in which case the command
returns success.  If reshape space does not exist though,
return error.

7 years agotests: test for new supported commands
Zdenek Kabelac [Wed, 12 Apr 2017 13:01:12 +0000 (15:01 +0200)]
tests: test for new supported commands

New tests for:

lvconvert --regionsize | --swapmetadata | --startpoll |
          --mergesnapshot | mergethin

7 years agotests: restore some test changes
Zdenek Kabelac [Mon, 3 Apr 2017 13:57:32 +0000 (15:57 +0200)]
tests: restore some test changes

Restore existing tests and separate new tests
for new options later.

Keep coverage for existing syntax

Reverts bits from commits:

a801b92b2c81213dddccc9f9a09794208f92bfc9.
d71aaca07b2c14049130ab368221510c65236af7
fa2a728a395639a32707bb75e6bb4197b02769de
1e2420bca85da9a37570871cd70192e9ae831786
46abc28a480069b3e8b2c5c7c3448ffa25ec17ba
0e3e611a137a264a343335d18d500fce7af8e0f7

7 years agofsadm: support configurable full path
Zdenek Kabelac [Sat, 8 Apr 2017 17:43:20 +0000 (19:43 +0200)]
fsadm: support configurable full path

Just like with other tools lvm2 is using allow to define
fully configurable path.

Default is selected by $PREFIX/sbin/fsadm

7 years agothin: properly check for status for max sizes metadata
Zdenek Kabelac [Sat, 8 Apr 2017 17:38:17 +0000 (19:38 +0200)]
thin: properly check for status for max sizes metadata

When metadata LV size was over DM_THIN_MAX_METADATA_SIZE sectors,
the info() routine was incorrectly trying to match bigger size,
while we do never pass any bigger device.

Fixing a case, where lvs should be displaying status for metadata
LV with 16GB size.

7 years agocmdline: ensure command struct is defined
Zdenek Kabelac [Sat, 1 Apr 2017 10:17:16 +0000 (12:17 +0200)]
cmdline: ensure command struct is defined

Make it clear to Coverity cmd will be defined.

7 years agolibdm: set min,maj
Zdenek Kabelac [Sat, 1 Apr 2017 10:13:37 +0000 (12:13 +0200)]
libdm: set min,maj

Reset derefered pointers instead of pointers.

7 years agodmfilemapd: free path
Zdenek Kabelac [Sat, 1 Apr 2017 10:11:41 +0000 (12:11 +0200)]
dmfilemapd: free path

Cleanup resources before exit.

7 years agodmfilemapd: keep 1 byte for \0
Zdenek Kabelac [Sat, 1 Apr 2017 10:05:49 +0000 (12:05 +0200)]
dmfilemapd: keep 1 byte for \0

Coverity noticed the buffer should have 1 byte for \0.

7 years agocommands: improve error message for option rules
David Teigland [Wed, 12 Apr 2017 19:05:36 +0000 (14:05 -0500)]
commands: improve error message for option rules

When a cmd def RULE fails because of a disallowed
combination of options, improve the error message
to show the option combination, not just the options
that broke the rule.

7 years agoWHATS_NEW: add items since last release
David Teigland [Wed, 12 Apr 2017 18:45:37 +0000 (13:45 -0500)]
WHATS_NEW: add items since last release

7 years agocommands: add rule for lvconvert commands that create pools
David Teigland [Wed, 12 Apr 2017 18:33:40 +0000 (13:33 -0500)]
commands: add rule for lvconvert commands that create pools

For an lvconvert command that creates a thin pool or cache pool,
--poolmetadata cannot be used with --readahead, --stripes or --stripesize.

7 years agoWHATS_NEW: add recent RAID entries
Heinz Mauelshagen [Wed, 12 Apr 2017 17:41:55 +0000 (19:41 +0200)]
WHATS_NEW: add recent RAID entries

7 years agolvconvert: better message on --regionsize
Heinz Mauelshagen [Wed, 12 Apr 2017 17:34:18 +0000 (19:34 +0200)]
lvconvert: better message on --regionsize

Enhance message on "lvconvert --regionsize size RaidLV".
in case the regionsize does not change and return error.

7 years agoWHATS_NEW_DM: add recent dmsetup and dmfilemapd entries
Bryn M. Reeves [Wed, 12 Apr 2017 16:41:29 +0000 (17:41 +0100)]
WHATS_NEW_DM: add recent dmsetup and dmfilemapd entries

7 years agoTypo: change loose to lose working
Jonathan Brassow [Wed, 12 Apr 2017 15:28:19 +0000 (10:28 -0500)]
Typo: change loose to lose

loose (v): set free; release
lose (v) : be deprived of or cease to have or retain

We 'lose' redundancy or 'lose' meaning.

7 years agolvconvert: fix failing valid regionsize change
Heinz Mauelshagen [Wed, 12 Apr 2017 12:38:49 +0000 (14:38 +0200)]
lvconvert: fix failing valid regionsize change

Reshape check failed when regionsize changed and current raid type
was provided with no other change requested (stripes or stripesize).

E.g. "lvconvert --type raid6 --regionsize 256K" on a raid6 LV
with != 256K regionsize.

Enable --type in test script.

7 years agolvconvert: add segment type raid10_near
Heinz Mauelshagen [Tue, 11 Apr 2017 23:28:22 +0000 (01:28 +0200)]
lvconvert: add segment type raid10_near

Introducing this alias for "raid10", avoid allocating
reshape space when converting between them.

Resolves: rhbz1441347

7 years agoraid: handle insufficent PVs on takeover from striped/raid0
Heinz Mauelshagen [Tue, 11 Apr 2017 22:25:23 +0000 (00:25 +0200)]
raid: handle insufficent PVs on takeover from striped/raid0

Remove any newly allocated sub LV (pair) remnants in case
allocation fails due to lag of (parallel) free PV space
and keep initial raid type.

Resolves: rhbz1438013

7 years agoman lvmraid: wrap long lines
David Teigland [Tue, 11 Apr 2017 20:23:48 +0000 (15:23 -0500)]
man lvmraid: wrap long lines

Break lines in examples to keep line length under 80.

7 years agoraid_manip: fix typo warning message
David Teigland [Tue, 11 Apr 2017 19:18:57 +0000 (14:18 -0500)]
raid_manip: fix typo warning message

7 years agoman lvmraid: fix line wrapping in examples
David Teigland [Tue, 11 Apr 2017 19:17:08 +0000 (14:17 -0500)]
man lvmraid: fix line wrapping in examples

7 years agoman lvmraid: use same style as generated pages
David Teigland [Tue, 11 Apr 2017 18:13:49 +0000 (13:13 -0500)]
man lvmraid: use same style as generated pages

7 years agolvconvert: require different LV for pool
David Teigland [Tue, 11 Apr 2017 17:15:10 +0000 (12:15 -0500)]
lvconvert: require different LV for pool

When convering an LV to a cache or thin LV, require
that an LV being converted to cache pool or thin pool
at the same time be a different LV.

7 years agolvconvert: prevent duplicate use of metadata lv
David Teigland [Tue, 11 Apr 2017 17:07:14 +0000 (12:07 -0500)]
lvconvert: prevent duplicate use of metadata lv

The LV being processed cannot be used as the
pool metadata LV.

7 years agoman lvmraid: improve text layout
David Teigland [Tue, 11 Apr 2017 15:55:02 +0000 (10:55 -0500)]
man lvmraid: improve text layout

7 years agolvconvert: validate vg name prefix for pool metadata name
David Teigland [Tue, 11 Apr 2017 15:40:08 +0000 (10:40 -0500)]
lvconvert: validate vg name prefix for pool metadata name

7 years agoman lvcreate/lvconvert: minor clean up rewording
David Teigland [Mon, 10 Apr 2017 21:29:40 +0000 (16:29 -0500)]
man lvcreate/lvconvert: minor clean up rewording

7 years agocommands: check required option value when matching command
David Teigland [Mon, 10 Apr 2017 18:41:47 +0000 (13:41 -0500)]
commands: check required option value when matching command

A command def can include a specific constant option value,
but the value was not being checked for optional opts.

e.g. this is an incorrect command and does not match any
command defs:

lvconvert --type cache --cachepool vg/lv

However, it was mistakely being matched to this cmd def,
where the required options match, but the optional options
do not:

lonvert --cachepool LV_linear_striped_raid_cachepool
OO: --type cache-pool, ...

The optional options were mistakely considered matching
because 'cache' and 'cache-pool' were not being compared.

7 years agosignals: fix comparison flaw
Heinz Mauelshagen [Mon, 10 Apr 2017 16:29:26 +0000 (18:29 +0200)]
signals: fix comparison flaw

commit 9a689fb8f0a6b1675a4e819f4837bf2e0269832f
fixed SIGINT blocking but introduced a comparision
flaw to sigint_restore().

Related: rhbz1440766

7 years agosignals: fix SIGINT blocking flaw causing inconsistent metadata
Heinz Mauelshagen [Mon, 10 Apr 2017 16:16:09 +0000 (18:16 +0200)]
signals: fix SIGINT blocking flaw causing inconsistent metadata

SIGINT isn't blocked properly after a sigint_allow(),
sigint_restore() cycle leading to illicit interruptable
metadata updates.  These can leave corrupted metadata behind.

Issues addressed in this commit:

sigint_allow() fails to set _oldmasked[] members properly due
to an offset by one bug on indexing the members of the array.

It bails out prematurely comparing to MAX_SIGINTS causing nesting
depths to be one less than MAX_SIGINTS.  Fix the comparision.

Correct the related comparison flaw in sigint_restore().

Initialize all sig_atomic_t variables consequently.

Resolves: rhbz1440766

7 years agolvconvert: cleanup prompting
Heinz Mauelshagen [Thu, 6 Apr 2017 17:59:57 +0000 (19:59 +0200)]
lvconvert: cleanup prompting

7 years agolvconvert: fixe conversion message
Heinz Mauelshagen [Thu, 6 Apr 2017 17:28:32 +0000 (19:28 +0200)]
lvconvert: fixe conversion message

When selecting a convenience RAID type only display
the selected type when it changed.  Display proper
current raid type when prompting.

7 years agolvconvert: raid1 -> linear prompt
Heinz Mauelshagen [Thu, 6 Apr 2017 17:24:11 +0000 (19:24 +0200)]
lvconvert: raid1 -> linear prompt

Avoid 2 prompts when downconverting raid1 to linear
(related commit 0f65d7ec3a7325165af1a9f722cb760fd363e932).

7 years agolvconvert: avoid error message on raid1 -> raid4 conversion
Heinz Mauelshagen [Thu, 6 Apr 2017 17:09:05 +0000 (19:09 +0200)]
lvconvert: avoid error message on raid1 -> raid4 conversion

Avoid error message
"Logical Volume *_rimage_0 already exists in volume group,,,"
on takeover conversion from a 2-legged raid1 to raid4
(aiming to reshape it adding images).

Resolves: rhbz1439398

7 years agolvconvert: prompt on raid1 image changes
Heinz Mauelshagen [Thu, 6 Apr 2017 16:47:41 +0000 (18:47 +0200)]
lvconvert: prompt on raid1 image changes

Don't change resilience of raid1 LVs without --yes.

Adjust respective tests.

7 years agoraid: reload on removing images
Heinz Mauelshagen [Wed, 5 Apr 2017 22:47:34 +0000 (00:47 +0200)]
raid: reload on removing images

Requesting _raid_remove_images() to commit the
metadata missed to reload the origin causing a
kernel takeover error converting a 2-legged raid1
(with previously removed images) to raid5.

7 years agoman: lvmraid.7 raid6_n_6 fix
Heinz Mauelshagen [Wed, 5 Apr 2017 22:35:12 +0000 (00:35 +0200)]
man: lvmraid.7 raid6_n_6 fix

7 years agoraid: tidying
Heinz Mauelshagen [Wed, 5 Apr 2017 22:06:52 +0000 (00:06 +0200)]
raid: tidying

7 years agolvconvert: allow --type with --regionsize
Heinz Mauelshagen [Wed, 5 Apr 2017 22:01:29 +0000 (00:01 +0200)]
lvconvert: allow --type with --regionsize

Allow the combination of both arguments keeping
the raid level but changing the regionssize
(e.g. "lvconvert --type raid1 --regionsize 1M RaidLV"
 on an existing raid1 LV).

Resolves: rhbz1438396

7 years agolvchange/lvconvert: fix missing lvmlockd LV locks
David Teigland [Wed, 5 Apr 2017 20:05:32 +0000 (15:05 -0500)]
lvchange/lvconvert: fix missing lvmlockd LV locks

lvchange/lvconvert operations that do not require the LV
to already be active need to acquire a transient LV lock
before changing/converting the LV to ensure the LV is not
active on another host.  If the LV is already active,
a persistent LV lock already exists on the host and the
transient LV lock request is a no-op.

Some lvmlockd locks in lvchange were lost in the cmd def
changes.  The lvmlockd locks in lvconvert seem to have
been missed from the start.

7 years agolvchange: tidy switch code in _lvchange_properties_single()
Heinz Mauelshagen [Wed, 5 Apr 2017 15:29:31 +0000 (17:29 +0200)]
lvchange: tidy switch code in _lvchange_properties_single()

7 years agolvchange: fix missing return value
David Teigland [Wed, 5 Apr 2017 15:08:01 +0000 (10:08 -0500)]
lvchange: fix missing return value

A return value from lvchange_persistent_cmd() was missed
in commit 1c41898c07ad750820fb39770355fded8e9b030a

7 years agolvmconf: fix systemd unit existence check for lvmconf --services --startstopservices
Peter Rajnoha [Wed, 5 Apr 2017 09:06:56 +0000 (11:06 +0200)]
lvmconf: fix systemd unit existence check for lvmconf --services --startstopservices

We have to unset the LoadState variable from previous use when we check
for systemd unit state. We use this variable to check if systemd services
are loaded or not and if it is loaded, we issue systemctl commands to
enable/disable and start/stop the service. We don't issue these commands
if the unit is not loaded to avoid error messages which may confuse users.

7 years agocommands: fix misspelling of option value
David Teigland [Tue, 4 Apr 2017 22:09:35 +0000 (17:09 -0500)]
commands: fix misspelling of option value

(The cmd def parser really needs to catch mistakes
like this as it did when it was external.)

7 years agolvchange: fix --poll value when set from option
David Teigland [Tue, 4 Apr 2017 20:32:08 +0000 (15:32 -0500)]
lvchange: fix --poll value when set from option

The actual value specified by the --poll y|n option was not
being used.  The way the --poll value is used is hidden
through an indirection where the value is stored in a
global variable at the start of the command, and then the
value is read from there later.  Setting the global
variable early in the command had been lost with the
cmd def changes.

7 years agovgchange/lvchange: fix poll and monitor use
David Teigland [Tue, 4 Apr 2017 17:52:29 +0000 (12:52 -0500)]
vgchange/lvchange: fix poll and monitor use

Fill in some gaps where old versions of lvm allowed
--poll and --monitor in combination with other operations,
but those combinations had been lost since the cmd def work.
(The new cmd def code also added some combinations that
had been missed by the old code.)

Changes:

lvchange --activate: add poll and monitor options, and
                     add calls to them in implementation.

lvchange --refresh: add monitor option (poll already there),
                    and call to monitor in implementation.

lvchange <metadata ops>: add poll and monitor options, and
                         add calls to them in implementation.

vgchange <metadata ops>: add poll option (call to poll
                         already in implementation).

vgchange --refresh: remove monitor option (not used by code)

lvchange --persistent y: add poll and monitor options, and
                         add calls to them, and to activate
                         in the implementation. (Making it
                         match the main lvchange metadata
                         command.)

Summary of current usage:

lvchange --activate: monitor, poll
vgchange --activate: monitor, poll

lvchange --refresh: monitor, poll
vgchange --refresh: poll

lvchange --monitor: ok
lvchange --poll: ok
lvchange --monitor --poll: ok
vgchange --monitor: ok
vgchange --poll: ok
vgchange --monitor --poll: ok

lvchange <metadata ops>: monitor, poll
vgchange <metadata ops>: poll

7 years agolvchange: enhance avoiding multiple metadata updates/reloads/backups
Heinz Mauelshagen [Tue, 4 Apr 2017 21:53:55 +0000 (23:53 +0200)]
lvchange: enhance avoiding multiple metadata updates/reloads/backups

Enhance commit 25b5915c9b5260c59d627bd1f6db8220bd4ad61e
to process options requiring immediate metadata commits
and reloads after those we can group together doing just
one commit and an optional reload for the whole group.

Backup metadata after processing options successfully.

Related: rhbz1437611

7 years agoman: '-pool' regexp
Heinz Mauelshagen [Tue, 4 Apr 2017 21:53:28 +0000 (23:53 +0200)]
man: '-pool' regexp

7 years agolvconvert: fix converting hidden lv to pool
David Teigland [Tue, 4 Apr 2017 21:47:47 +0000 (16:47 -0500)]
lvconvert: fix converting hidden lv to pool

A hidden LV can not be converted to a thin pool or cache pool.

7 years agohelp: print all options in abbreviated help output
David Teigland [Mon, 3 Apr 2017 21:36:04 +0000 (16:36 -0500)]
help: print all options in abbreviated help output

Don't abbreviate the --help output quite as much
when there are many command defs.  Print all the
options in the cmd defs that are shown.  --longhelp
output is unchanged and includes everything.

7 years agocommands: missing comma in cmd def option list
David Teigland [Mon, 3 Apr 2017 21:20:55 +0000 (16:20 -0500)]
commands: missing comma in cmd def option list

Does not affect parsing, but keep it consistent.

7 years agohelp: include cmd def info in verbose output
David Teigland [Mon, 3 Apr 2017 21:17:37 +0000 (16:17 -0500)]
help: include cmd def info in verbose output

It can sometimes be important to correlate a
command with its cmd def entry, so include
the cross reference info in help -vv output.

7 years agocommands: recognize ignored options
David Teigland [Mon, 3 Apr 2017 20:24:46 +0000 (15:24 -0500)]
commands: recognize ignored options

7 years agocommands: ignore partial option in most cases
David Teigland [Mon, 3 Apr 2017 19:39:35 +0000 (14:39 -0500)]
commands: ignore partial option in most cases

These days --partial is only used with activation in
lvchange/vgchange.  It probably had another meaning
at some point in history which is no longer used,
so ignore it in those cases.

When included in the OO list, the option is advertised in
help/man output, implying it is meaningful to the command,
when in fact the command never uses it.
The IO list means the option won't cause an error if it's
used, but is not displayed as an valid option for the command.
If the option is not included in either OO or IO lists,
using the option would cause a command error, which would cause
problems for anyone is using the option for historical reasons.

7 years agoman: fix description of --partial option
David Teigland [Mon, 3 Apr 2017 19:15:29 +0000 (14:15 -0500)]
man: fix description of --partial option

7 years agolvchange: refresh command missing activationmode option
David Teigland [Mon, 3 Apr 2017 18:44:35 +0000 (13:44 -0500)]
lvchange: refresh command missing activationmode option

7 years agolvchange: avoid multiple metadata updates/reloads/backups
Heinz Mauelshagen [Sat, 1 Apr 2017 00:38:48 +0000 (02:38 +0200)]
lvchange: avoid multiple metadata updates/reloads/backups

_lvchange_properties_single() processes multiple command
line arguments in a loop causing metadata updates and/or
backups per argument.

Optimize to only perform one update and/or backup
(but necessary interim ones; e.g. for --resync)
per command run.

Related: rhbz1437611

7 years agotests: fix LD_LIBRARY_PATH
Zdenek Kabelac [Fri, 31 Mar 2017 13:27:58 +0000 (15:27 +0200)]
tests: fix LD_LIBRARY_PATH

Use only selected paths for finding .so in builddir.
So if builddir constains some embeded subdirs with some more
occurences of project (i.e.  'make rpm' build subdir)
those library paths will not get into list.

7 years agocache: scan kallsyms for kernel symbols
Zdenek Kabelac [Fri, 31 Mar 2017 15:07:21 +0000 (17:07 +0200)]
cache: scan kallsyms for kernel symbols

With monolithic kernels we can't actually modprobe
for cache modules as they are already compiled-in
and policy modules do not export version symbol.

Reported issue on list:
https://www.redhat.com/archives/dm-devel/2017-March/msg00061.html

Fix will try to look for explicit kernel symbols first before
calling modprobe.

7 years agolvchange: persistent major/minor processing regression
Heinz Mauelshagen [Fri, 31 Mar 2017 15:09:33 +0000 (17:09 +0200)]
lvchange: persistent major/minor processing regression

Optimized change.

Resolves: rhbz1437611

7 years agolvchange: persistent major/minor processing regression
Heinz Mauelshagen [Fri, 31 Mar 2017 11:51:39 +0000 (13:51 +0200)]
lvchange: persistent major/minor processing regression

Fix a regression introduced by new command line processing
(see starting commit 1e2420bca85da9a37570871cd70192e9ae831786)
causing activation to be rejected in combination with setting
persistent minor device numbers.

Resolves: rhbz1437611

7 years agoman: pregen file change
Heinz Mauelshagen [Thu, 30 Mar 2017 18:48:53 +0000 (20:48 +0200)]
man: pregen file change

7 years agoman-generator: shutdown stdout buffer
Heinz Mauelshagen [Thu, 30 Mar 2017 18:40:44 +0000 (20:40 +0200)]
man-generator: shutdown stdout buffer

Flush stdout and switch it back to line buffering before exit.

7 years agoman-generator: enhance performance
Heinz Mauelshagen [Thu, 30 Mar 2017 17:55:50 +0000 (19:55 +0200)]
man-generator: enhance performance

Set block buffering on stdout to
save ~30% time generating manuals.

7 years agoman-generator: don't ignore description file errors
Heinz Mauelshagen [Thu, 30 Mar 2017 17:51:35 +0000 (19:51 +0200)]
man-generator: don't ignore description file errors

In case we provide a description file it has to
succeed opening and reading.  Dynamically allocate
buffer space for it whilst on it.

7 years agoraid: more coverity issues
Heinz Mauelshagen [Thu, 30 Mar 2017 16:39:04 +0000 (18:39 +0200)]
raid: more coverity issues

7 years agoraid: favour dm_list_first()
Heinz Mauelshagen [Thu, 30 Mar 2017 16:13:27 +0000 (18:13 +0200)]
raid: favour dm_list_first()

7 years agoraid: address coverity issues
Heinz Mauelshagen [Thu, 30 Mar 2017 16:09:06 +0000 (18:09 +0200)]
raid: address coverity issues

7 years agoman-generator: add '.' to all messages
Heinz Mauelshagen [Thu, 30 Mar 2017 15:54:36 +0000 (17:54 +0200)]
man-generator: add '.' to all messages

7 years agoman: add minor regexp
Heinz Mauelshagen [Thu, 30 Mar 2017 15:54:02 +0000 (17:54 +0200)]
man: add minor regexp

7 years agodmsetup: replace (f)printf("\n") with putchar/putc
Bryn M. Reeves [Thu, 30 Mar 2017 15:30:50 +0000 (16:30 +0100)]
dmsetup: replace (f)printf("\n") with putchar/putc

7 years agolibdm: use correct FMTu32 format specifier for uint32_t
Bryn M. Reeves [Thu, 30 Mar 2017 15:17:19 +0000 (16:17 +0100)]
libdm: use correct FMTu32 format specifier for uint32_t

7 years agolibdm: fix incorrect format specifier in _stats_resize_group()
Bryn M. Reeves [Thu, 30 Mar 2017 09:31:36 +0000 (10:31 +0100)]
libdm: fix incorrect format specifier in _stats_resize_group()

The bitmap size in dm_bitset_t[0] is a uint32_t, not uint64_t: use
%u instead of FMTu64.

7 years agodmsetup: Flush ouptut when using --interval
Nir Soffer [Thu, 30 Mar 2017 09:17:32 +0000 (10:17 +0100)]
dmsetup: Flush ouptut when using --interval

7 years agolibdm: use uint64_t where possible in filemap routines
Bryn M. Reeves [Wed, 29 Mar 2017 19:49:03 +0000 (20:49 +0100)]
libdm: use uint64_t where possible in filemap routines

Use uint64_t where possible and explicit casts elsewhere to avoid
compiler warnings when converting between int, int64_t and
uint64_t.

7 years agolibdm: use size_t for buflen in _stats_group_file_regions()
Bryn M. Reeves [Wed, 29 Mar 2017 19:46:21 +0000 (20:46 +0100)]
libdm: use size_t for buflen in _stats_group_file_regions()

7 years agolibdm: make _stats_resize_group() num_regions argument uint64_t
Bryn M. Reeves [Wed, 29 Mar 2017 19:42:36 +0000 (20:42 +0100)]
libdm: make _stats_resize_group() num_regions argument uint64_t

7 years agolibdm: make _find_extent() nr_extents argument uint64_t
Bryn M. Reeves [Wed, 29 Mar 2017 19:41:33 +0000 (20:41 +0100)]
libdm: make _find_extent() nr_extents argument uint64_t

7 years agodmfilemapd: cast return value of strto* functions when needed
Bryn M. Reeves [Wed, 29 Mar 2017 19:32:55 +0000 (20:32 +0100)]
dmfilemapd: cast return value of strto* functions when needed

7 years agodmfilemapd: use log_sys_error in _filemap_monitor_set_notify
Bryn M. Reeves [Wed, 29 Mar 2017 19:29:20 +0000 (20:29 +0100)]
dmfilemapd: use log_sys_error in _filemap_monitor_set_notify

Since _filemap_monitor_set_notify() is only called after daemon
start up it should not use the _early_log() macros. Instead, use
log_sys_error to log errors from the two syscalls in the function.

7 years agodmfilemapd: cast sysconf() return value to int
Bryn M. Reeves [Wed, 29 Mar 2017 19:28:43 +0000 (20:28 +0100)]
dmfilemapd: cast sysconf() return value to int

7 years agodmfilemapd: fix len type in _filemap_monitor_check_file_unlinked()
Bryn M. Reeves [Wed, 29 Mar 2017 19:26:39 +0000 (20:26 +0100)]
dmfilemapd: fix len type in _filemap_monitor_check_file_unlinked()

Make 'len' a size_t to match the return type of readlink(2).

7 years agodmfilemapd: make filemap_monitor->nr_regions uint64_t
Bryn M. Reeves [Wed, 29 Mar 2017 19:23:57 +0000 (20:23 +0100)]
dmfilemapd: make filemap_monitor->nr_regions uint64_t

7 years agolibdm: use DM_STATS_GROUP_* constants in dm_stats_create_regions_from_fd
Bryn M. Reeves [Wed, 29 Mar 2017 19:02:26 +0000 (20:02 +0100)]
libdm: use DM_STATS_GROUP_* constants in dm_stats_create_regions_from_fd

7 years agodmsetup: simplify branching in _stats_update_file()
Bryn M. Reeves [Wed, 29 Mar 2017 17:30:16 +0000 (18:30 +0100)]
dmsetup: simplify branching in _stats_update_file()

The fallback branch in _stats_update_file() is redundant (since the
branch taken when the daemon starts successfully must jump to the
'out' label anyway): remove it and re-order the conditions to
improve readability.

7 years agoman: raid cleanup
Heinz Mauelshagen [Wed, 29 Mar 2017 22:44:04 +0000 (00:44 +0200)]
man: raid cleanup

7 years agoman: Copyright
Heinz Mauelshagen [Wed, 29 Mar 2017 22:42:44 +0000 (00:42 +0200)]
man: Copyright

7 years agoman: use variable in Makefile / regexp
Heinz Mauelshagen [Wed, 29 Mar 2017 22:41:24 +0000 (00:41 +0200)]
man: use variable in Makefile / regexp

7 years agoman-generator: catch missing command name
Heinz Mauelshagen [Wed, 29 Mar 2017 22:39:26 +0000 (00:39 +0200)]
man-generator: catch missing command name

7 years agotests: fix typo in makefile
Zdenek Kabelac [Wed, 29 Mar 2017 22:19:02 +0000 (00:19 +0200)]
tests: fix typo in makefile

Use properly $(SORT)

7 years agoman: fix type
Zdenek Kabelac [Wed, 29 Mar 2017 22:35:46 +0000 (00:35 +0200)]
man: fix type

With commit 4af09a94bd44693e5a40a4f895599601d8233d69 unwanted rename  of
target happened - restore it.

7 years agovgrename: use long enough buffer for path
Zdenek Kabelac [Wed, 29 Mar 2017 22:17:37 +0000 (00:17 +0200)]
vgrename: use long enough buffer for path

Use PATH_MAX when creating buffers for rename.

7 years agolibdm: use log_sys_error if dmfilemapd exec fails
Bryn M. Reeves [Wed, 29 Mar 2017 20:27:11 +0000 (21:27 +0100)]
libdm: use log_sys_error if dmfilemapd exec fails

Use log_sys_error rather than log_error if execvp() fails:

  /mnt/redhat/xdoio.13752.XIORQ: Created new group with 2 region(s) as group ID 0.
  # execvp() failed.

vs:

  /var/lib/libvirt/images/rhel7-vm1.qcow2: Created new group with 884 region(s) as group ID 0.
  dmfilemapd: execvp failed: No such file or directory

This page took 0.066067 seconds and 5 git commands to generate.