master - libdm: Add dm_timestamp functions.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a28fb37b9e0e5b3a754e897887a8fdb22fd2d98d Commit: a28fb37b9e0e5b3a754e897887a8fdb22fd2d98d Parent: a5491d36982c7afe10f655ad0592fb20f9a331fd Author: Alasdair G Kergon <[email protected]> AuthorDate: Wed Jul 29 19:21:07 2015 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Wed Jul 29 19:21:07 2015 +0100
libdm: Add dm_timestamp functions.
--- WHATS_NEW_DM | 1 + lib/Makefile.in | 5 - lib/misc/timestamp.c | 129 -------------------------- lib/misc/timestamp.h | 33 ------- libdm/.exported_symbols.DM_1_02_104 | 5 + libdm/Makefile.in | 1 + libdm/libdevmapper.h | 42 +++++++++- libdm/libdm-timestamp.c | 170 +++++++++++++++++++++++++++++++++++ 8 files changed, 218 insertions(+), 168 deletions(-)
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@ Version 1.02.104 - ================================= + Add dm_timestamp functions to libdevmapper. Version 1.02.103 - 24th July 2015 =================================
lib/Makefile.in +0 -5
@@ -122,11 +122,6 @@ SOURCES =\ uuid/uuid.c \ zero/zero.c -ifeq ("@HAVE_REALTIME@", "yes") - SOURCES +=\ - misc/timestamp.c -endif - ifeq ("@LVM1@", "internal") SOURCES +=\ format1/disk-rep.c \
lib/misc/timestamp.c deleted +0 -129
129 lines not on this page · raw message
lib/misc/timestamp.h deleted +0 -33
@@ -1,33 +0,0 @@ -/* -* Copyright (C) 2006 Rackable Systems All rights reserved. -* -* This file is part of LVM2. -* -* This copyrighted material is made available to anyone wishing to use, -* modify, copy, or redistribute it subject to the terms and conditions -* of the GNU Lesser General Public License v.2.1. -* -* You should have received a copy of the GNU Lesser General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ - -#ifndef _LVM_TIMESTAMP_H -#define _LVM_TIMESTAMP_H - -struct timestamp ; - -struct timestamp *get_timestamp (void ); - -/* cmp_timestamp: Compare two timestamps -* -* Return: -1 if t1 is less than t2 -* 0 if t1 is equal to t2 -* 1 if t1 is greater than t2 -*/ -int cmp_timestamp (struct timestamp *t1,struct timestamp *t2); - -void destroy_timestamp (struct timestamp *t); - -#endif /* _LVM_TIMESTAMP_H */ -
libdm/.exported_symbols.DM_1_02_104 +5 -0
@@ -1 +1,6 @@ dm_size_to_string +dm_timestamp_alloc +dm_timestamp_compare +dm_timestamp_get +dm_timestamp_delta +dm_timestamp_destroy
libdm/Makefile.in +1 -0
@@ -25,6 +25,7 @@ SOURCES =\ libdm-deptree.c \ libdm-string.c \ libdm-report.c \ + libdm-timestamp.c \ libdm-config.c \ mm/dbg_malloc.c \ mm/pool.c \
libdm/libdevmapper.h +41 -1
53 lines not on this page · raw message
libdm/libdm-timestamp.c new file +170 -0
170 lines not on this page · raw message