mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
hints: check for _touch_hints
Exit when !_touch_hints().
This commit is contained in:
parent
c38be06531
commit
61a483a654
@ -1261,8 +1261,9 @@ int get_hints(struct cmd_context *cmd, struct dm_list *hints_out, int *newhints,
|
|||||||
*/
|
*/
|
||||||
if (_newhints_exists()) {
|
if (_newhints_exists()) {
|
||||||
log_debug("get_hints: newhints file");
|
log_debug("get_hints: newhints file");
|
||||||
if (!_hints_exists())
|
if (!_hints_exists() && !_touch_hints())
|
||||||
_touch_hints();
|
return 0;
|
||||||
|
|
||||||
if (!_lock_hints(cmd, LOCK_EX, NONBLOCK))
|
if (!_lock_hints(cmd, LOCK_EX, NONBLOCK))
|
||||||
return 0;
|
return 0;
|
||||||
/* create new hints after scan */
|
/* create new hints after scan */
|
||||||
|
Loading…
Reference in New Issue
Block a user