Joe Thornber
5da1f3e7c8
o vgcfgrestore.
2002-01-10 14:27:47 +00:00
Alasdair Kergon
983014952b
Temporary file creation & renaming.
2002-01-10 12:22:17 +00:00
Joe Thornber
55298019a3
o First pass at import.c. Still waiting for label code for the uuid->pv
...
mapping.
2002-01-10 11:18:08 +00:00
Joe Thornber
a1ffc3f271
o Put in the 'out of memory' log_err for pool.
2002-01-10 09:35:55 +00:00
Alasdair Kergon
2fb60aa997
Renamed to archive.c
2002-01-09 19:17:11 +00:00
Alasdair Kergon
f5ec76537a
o Rename many occurrences of 'backup' to 'archive' to reduce confusion.
...
o Extract file creation/renaming code into a library and change backup code
to use it too.
o Support umask.
o Bring lvm.conf man page up-to-date.
2002-01-09 19:16:48 +00:00
Alasdair Kergon
728491fd2b
Accept octal values for numbers (such as umask).
2002-01-09 18:53:07 +00:00
Joe Thornber
d9d3f2b9e4
o Let the comment wars begin.
2002-01-09 14:14:07 +00:00
Joe Thornber
3fe4864f65
o new function backup_remove(const char *vg_name), to be called from vgremove.
2002-01-09 14:07:49 +00:00
Joe Thornber
0b156f22a4
o Reformat comments.
2002-01-09 13:56:11 +00:00
Alasdair Kergon
35b1d93813
Add archiving.
2002-01-09 13:17:14 +00:00
Alasdair Kergon
d770851ac0
o Try to improve NFS-safety for temporary file creation (unique name; O_APPEND
...
+ fcntl lock) and rename (using hard link), avoiding any "real" archive
files ever being zero length.
o Fix filename parsing & ordered list handling.
2002-01-09 13:16:19 +00:00
Alasdair Kergon
989e7b1033
Explicitly close (=>flush) files.
2002-01-09 13:07:03 +00:00
Alasdair Kergon
c4e0eb7b49
Allow pool_begin_object in empty pool.
2002-01-09 13:06:02 +00:00
Alasdair Kergon
71f5d0dac7
Another attempt to support both readline versions.
2002-01-08 19:17:08 +00:00
Alasdair Kergon
561b0c4381
call archive_exit() & backup_exit() on exit
2002-01-08 18:14:04 +00:00
Joe Thornber
995fbc7330
o Remove anomalous punctuation.
2002-01-08 10:51:13 +00:00
Joe Thornber
10ab8949c4
o Introduction to pool for those without psychic powers.
2002-01-08 10:47:17 +00:00
Alasdair Kergon
c441202fea
fixes for compilation
2002-01-07 23:28:25 +00:00
Alasdair Kergon
ca261b0bee
Sync.
2002-01-07 23:04:48 +00:00
Alasdair Kergon
52f3709f67
Sync tidy.
2002-01-07 22:49:04 +00:00
Alasdair Kergon
c2ca6187fe
If a device somehow became suspended, lvchange -ay now reactivates it.
2002-01-07 22:36:12 +00:00
Alasdair Kergon
671a13d295
Support for read-only.
2002-01-07 22:28:36 +00:00
Alasdair Kergon
14c3e2eccf
Missing close() in error case.
2002-01-07 22:25:57 +00:00
Alasdair Kergon
08e5b852c2
tidying
2002-01-07 22:01:50 +00:00
Joe Thornber
1c9606c824
o vgcreate wasn't setting vg->cmd
2002-01-07 15:27:55 +00:00
Joe Thornber
3cd47b5c9b
o New function 'merge_segments'
...
o Call said function at end of lv_extend
2002-01-07 15:08:28 +00:00
Joe Thornber
aedc729087
o tidy up renaming of archive files.
2002-01-07 14:21:33 +00:00
Joe Thornber
5f7cfa3fa9
o sync tool changes for backup stuff.
2002-01-07 11:12:11 +00:00
Joe Thornber
0083f30af5
o Added find_config_bool
2002-01-07 10:23:52 +00:00
Joe Thornber
4a06f05ef5
o Get format-text.c compiling.
2002-01-07 09:16:20 +00:00
Joe Thornber
8f37cadce8
o sync laptop to test machine.
2002-01-07 09:05:31 +00:00
Alasdair Kergon
a11603ca6c
Imported man pages from LVM1 with some quick LVM2 updates.
2002-01-04 20:35:19 +00:00
Alasdair Kergon
86274842e9
The start of an lvm man page.
2002-01-04 18:56:56 +00:00
Alasdair Kergon
cf9c955a44
Document remaining configuration file parameters.
2002-01-04 17:49:38 +00:00
Joe Thornber
55d828c35f
o Revert to the 6-4-4-4-4-4-6 format for uuid's
...
o When reading a uuid all -'s are stripped, wherever they are.
2002-01-04 16:55:14 +00:00
Alasdair Kergon
cdff28aca6
Put device name in quotes.
2002-01-03 17:47:48 +00:00
Joe Thornber
b9da39274f
o High level archiving and backup functions.
...
I've split the old autobackup function into two seperate areas:
'archiving' is performed *before* a vg configuration is changed. This
produces a numbered backup in /etc/lvm/archive.
A 'backup' is performed *after* a vg change. So the directory /etc/lvm/backup
will hold the a copy of the current configuration.
2002-01-03 15:46:48 +00:00
Alasdair Kergon
c379aa5782
stub for read-only functions with fs interface
2002-01-03 15:12:02 +00:00
Alasdair Kergon
9dcabac9dd
Fix final comma in arrays.
2002-01-03 12:43:01 +00:00
Alasdair Kergon
794f3a2b9f
*** empty log message ***
2002-01-03 12:39:04 +00:00
Joe Thornber
2066121b7c
o Added -r, --read-only switch to dmsetup for use with create and reload.
2002-01-03 10:39:21 +00:00
Alasdair Kergon
0c4067f143
o Allow the definition of read-only devices (ioctl interface only) (Joe)
...
o Add version number to ioctl structure with error on kernel/library mismatch
2002-01-02 19:01:09 +00:00
Joe Thornber
8aa69243b7
o Added section on the syntax of the config file, with an informal grammar.
2002-01-02 17:54:57 +00:00
Alasdair Kergon
8697263bde
Fix $DESTDIR support
2002-01-02 14:23:10 +00:00
Alasdair Kergon
ea25c4f65c
Tidy makefiles - $DESTDIR & shared library version (like LVM1)
2002-01-02 13:40:49 +00:00
Alasdair Kergon
82ac3ebd7e
Add test mode parm.
2001-12-31 22:12:03 +00:00
Alasdair Kergon
13cb94909c
o Add autobackup support to tools (follows most vg_write calls).
...
o Skip autobackup when in test mode.
o Set test mode from config file.
o Create system/backup dirs if not present (unless LVM_SYSTEM_DIR holds "").
2001-12-31 21:27:39 +00:00
Alasdair Kergon
b57ca2a763
vgcache.h inclusion (avoid compiler warning)
2001-12-31 19:18:44 +00:00
Alasdair Kergon
83c49e9745
o Use lvm_snprintf wherever return value is used
...
o Add parameters to set retention limits for backups
2001-12-31 19:09:51 +00:00