Joe Thornber
54fad845c9
o Output the correct format for the stripe target
2001-11-28 17:52:27 +00:00
Joe Thornber
da2f53d1b1
o pool_free was leaving one block hanging around.
2001-11-28 14:58:33 +00:00
Alasdair Kergon
405139e3b8
o Tool support for segments.
...
o vgmerge working.
2001-11-28 13:45:50 +00:00
Joe Thornber
bf0db4876c
o pool-debug.c contains an alternative implementation of pool that gets
...
a seperate chunk of memory from dbg_malloc for each pool_alloc. This
will allow the bounds checking code in dbg_malloc to do it's stuff.
o The normal implementation moved to pool-fast.c
o pool.c now just contains a #ifdef and includes the appropriate .c file.
Alasdair, could you make sure that gcc -MM get's passed all the
CFLAGS please, otherwise the dependencies get calculated incorrectly.
2001-11-28 09:13:00 +00:00
Alasdair Kergon
3a7bbc8b08
Fix a memory smash.
2001-11-27 23:12:06 +00:00
Joe Thornber
1b1d65372c
o extra error checking
2001-11-27 20:03:45 +00:00
Joe Thornber
fd2faaa16e
o These now compile.
2001-11-27 17:39:15 +00:00
Joe Thornber
0609cdb9ea
o Get format1 building.
2001-11-27 17:29:56 +00:00
Joe Thornber
b31dc66628
o Sync up todays work on converting to the segmented representation of
...
logical volumes. It includes:
format1 changes.
metadata.h changes.
lv_manip.c changed (striped allocation still not done though).
activate.c changes.
Nothing has been near a compiler as yet.
Alasdair can you look at changing display.c to use to output the mappings
in a more segment oriented format please ?
I haven't put the span list into struct physical_volume to represent allocated
extents. I think the burden of maintaining it for things like lv_extend may
out weigh it's uses.
2001-11-27 16:37:33 +00:00
Joe Thornber
33dee813b5
o change chunk_size to stripe_size
2001-11-26 16:30:43 +00:00
Joe Thornber
bb4e73c40b
o More metadata changes.
2001-11-26 16:18:48 +00:00
Alasdair Kergon
b1f23ffa94
LV create/extend prototype changes for striping
2001-11-26 15:31:46 +00:00
Joe Thornber
b0e8cec1e7
o make it obvious that stripe_segment is variable sized.
2001-11-26 13:15:22 +00:00
Joe Thornber
5077ae19bc
o segments will have to be held as an array of pointers since they're now
...
variable sized.
2001-11-26 13:03:36 +00:00
Joe Thornber
0d8447bf59
o sync the new in core rep. for Alasdair.
...
This will break everything ! Hopefully things will be working again by
this evening.
2001-11-26 12:49:29 +00:00
Alasdair Kergon
3fbf02dc82
o activation & active status tests
...
o lvdisplay fields from kernel
o update lv->size on resize
2001-11-21 19:32:35 +00:00
Joe Thornber
94525e2f44
o There's no need to prefix dm_dir() with /dev/ anymore
2001-11-21 17:20:49 +00:00
Joe Thornber
d96e9182e9
o Oops, I thought this was checked in ages ago.
2001-11-21 09:21:31 +00:00
Joe Thornber
68c87b9616
o Sync. only
2001-11-21 09:20:05 +00:00
Joe Thornber
7f8e9a0b6d
o _emit_target wasn't spotting contiguous targets properly.
2001-11-19 15:44:06 +00:00
Joe Thornber
81a229f2a5
o Use new info interface to dm.
2001-11-19 15:38:39 +00:00
Alasdair Kergon
8be7ae2733
vgdisplay
2001-11-19 15:20:50 +00:00
Patrick Caulfield
0ec52dddce
size_ts aren't really pointers but there are no format specifiers for them,
...
so this will just have to do.
2001-11-16 11:37:45 +00:00
Patrick Caulfield
c289355a3a
Fix format characters for printing size_ts
2001-11-16 10:56:11 +00:00
Alasdair Kergon
6cf2a0281b
lvrename (without reactivation)
2001-11-15 17:27:45 +00:00
Patrick Caulfield
120d35f9af
Use POSIX defined PRIu64 for formatting 64 bit unsigned integer types
2001-11-15 15:18:53 +00:00
Patrick Caulfield
2b15d5e7b3
Use FMT_64 to format 64bit types
2001-11-15 14:27:51 +00:00
Patrick Caulfield
fc167bd3f0
define FMT_64 to be the right format string for 64-bit types a la GFS
2001-11-15 14:27:34 +00:00
Alasdair Kergon
91b04abf05
Use inttypes.h
2001-11-15 14:14:03 +00:00
Patrick Caulfield
77faac8740
#include <string.h> for memset
2001-11-15 11:46:00 +00:00
Alasdair Kergon
43b3d54855
More LV-related tidying. lvdisplay without args now shows all LVs.
2001-11-14 18:38:07 +00:00
Alasdair Kergon
69e9b85700
Avoid generating duplicate lv names
2001-11-14 14:12:01 +00:00
Alasdair Kergon
0b6d132759
Miscellaneous tidying
2001-11-14 13:52:38 +00:00
Joe Thornber
7c233c6c0c
o lvcreate no longer needs the explicit -n flag
...
o disabled zeroing of lv until bug's worked out
2001-11-14 12:07:37 +00:00
Joe Thornber
3d95cfb367
o Added dev_open and dev_close functions
...
o Changed disk-rep to use these
o if NDEBUG is not defined the dev_cache will check for open devices on
teardown.
I was hoping this would speed things up. But I'm still getting:
reti:/home/joe/sistina/LVM2/tools# time ./lvm vgchange -a n
Volume group vg0 successfully changed
real 0m5.751s
user 0m0.060s
sys 0m0.070s
even though I have only 1 device with the vg on it passing the filters.
2001-11-14 10:01:52 +00:00
Joe Thornber
b90fc3a56e
o Deal with sparse lv arrays (on disk)
...
o new fn. dev_zero which zero's an area of a device
2001-11-13 18:52:52 +00:00
Alasdair Kergon
1ef3fdccf5
o lvdisplay now shows LE / PV map
...
o fix LE allocation when first PV is full
o reduce VG free_count when removing PVs from VG
2001-11-13 17:53:06 +00:00
Joe Thornber
02b7f77bd8
o Put underscore between vg and lv name.
2001-11-13 16:14:54 +00:00
Alasdair Kergon
0ac7ead922
Merge lvreduce & lvextend into lvresize.
2001-11-13 14:17:50 +00:00
Joe Thornber
da9d0e03ce
o Stuff
2001-11-12 19:28:50 +00:00
Joe Thornber
120f65f672
o Add ALLOC_SIMPLE
2001-11-12 17:55:05 +00:00
Alasdair Kergon
200a14caa4
Remove hard-coding and create device-mapper directory if required
2001-11-12 17:21:25 +00:00
Joe Thornber
35bf6da8e2
o if any pattern rejects a device, and there were no accepts then reject !
2001-11-12 17:06:33 +00:00
Joe Thornber
f08f70276c
o check result of an allocation
2001-11-12 16:00:52 +00:00
Alasdair Kergon
1ae50fd95b
iospace restructured
2001-11-12 15:10:01 +00:00
Joe Thornber
40512beb47
o add fs.c to the Makefile
2001-11-12 13:02:06 +00:00
Joe Thornber
0d7f9b2c94
o add uplink from vg to cmd_context
2001-11-12 12:23:10 +00:00
Joe Thornber
52f42140a7
o Plug in fs_(add|del)_lv
2001-11-12 12:20:58 +00:00
Joe Thornber
3f6c50297f
o Split struct io_space into:
...
struct format_handler - format methods
struct format_instance - links instance data, methods, and cmd
struct cmd_context - dev_dir, memory allocator, device filter
2001-11-12 12:16:57 +00:00
Joe Thornber
f72d80afc5
o Compile errors
2001-11-12 11:48:31 +00:00
Joe Thornber
7c5cb13b22
o Ready for testing
2001-11-12 11:42:29 +00:00
Alasdair Kergon
02a70e5667
o Added lvextend
...
o Full signed arguments to lvreduce/lvextend
o Consistent lv_number/pe map use
o Populate pv->pe_allocated
o Fixes for allocation/writing of multiple LVs
2001-11-09 22:01:04 +00:00
Joe Thornber
44e51ea5fa
sync only, not ready yet
2001-11-09 08:48:22 +00:00
Alasdair Kergon
87e201460a
lvdisplay & lvreduce
2001-11-08 16:15:58 +00:00
Alasdair Kergon
e9e52d2b4b
o Always set LVM_READ.
...
o Avoid duplicate deallocation.
2001-11-07 22:47:43 +00:00
Joe Thornber
40fb6c998f
o Added lvs_in_vgs_opened
2001-11-07 15:02:07 +00:00
Joe Thornber
33f50a342d
o pool_empty was very wrong
2001-11-07 14:11:20 +00:00
Joe Thornber
2bf8cc62cf
o Another pass at the activation code
2001-11-07 11:51:42 +00:00
Alasdair Kergon
5ef32227ec
lvcreate
2001-11-06 19:02:26 +00:00
Joe Thornber
6456e773bd
o lv_extend
2001-11-06 12:01:46 +00:00
Joe Thornber
234fe53ca3
o Factor _allocate out for use by lv_extend
2001-11-06 11:31:29 +00:00
Joe Thornber
7c93e7a7b3
o lv_reduce
...
o pv_maps wasn't taking a list of acceptable pvs
2001-11-06 11:19:33 +00:00
Joe Thornber
8afc6c7f4b
o Contiguous allocation
2001-11-06 10:55:01 +00:00
Joe Thornber
4609d0fa3a
o lv_manip.c will contain the code for lv_create, lv_extend and lv_reduce.
2001-11-06 10:29:56 +00:00
Alasdair Kergon
d452c035c6
Reinstate size of lv
2001-11-05 18:07:44 +00:00
Joe Thornber
45113c8f5a
o code for building free area lists on a pv. Compiles but not run.
2001-11-05 16:41:38 +00:00
Joe Thornber
0acdd3c62b
o adjacent extents are now merged into a single target when activating.
2001-11-05 13:37:13 +00:00
Alasdair Kergon
96d7d0a33e
lvcreate prototype
2001-11-05 13:06:03 +00:00
Joe Thornber
b6b280267b
o build lv name from <vg>_<lv>
2001-11-02 16:45:44 +00:00
Alasdair Kergon
6e6d253b1a
Link in the activation library.
2001-11-02 16:28:04 +00:00
Joe Thornber
d92c105db2
o First pass at activation
2001-11-02 13:45:05 +00:00
Alasdair Kergon
906db728d6
o Changes to activation interface
...
o Add pointer lv->vg
o Some naming tweaks to improve clarity
2001-10-31 17:59:52 +00:00
Joe Thornber
c4b7411565
o LGPL list implementation
2001-10-31 12:47:01 +00:00
Joe Thornber
de06396046
o random little fixes
2001-10-30 17:53:21 +00:00
Joe Thornber
feefe49324
o Add read_ahead and stripes to struct logical_volume
2001-10-29 15:34:56 +00:00
Alasdair Kergon
187381a9a2
prefix & vgname in lvname
2001-10-29 15:28:00 +00:00
Alasdair Kergon
993dfa4368
lvremove
2001-10-29 13:52:23 +00:00
Joe Thornber
634e0db26d
o rfilter was no longer accepting by default
2001-10-25 18:12:44 +00:00
Joe Thornber
0b00f742e3
o was freeing memory from the wrong pool
2001-10-25 15:24:35 +00:00
Alasdair Kergon
b7ab3f673c
o fopen error message
...
o debug options in makefile
2001-10-25 15:07:26 +00:00
Joe Thornber
be04ea1e35
o pfilter stores results for all aliases.
2001-10-25 14:51:51 +00:00
Joe Thornber
1f8e695802
o It's a bit of a hack, but the regex filter now makes sure a device path
...
that passed the filter is at the front of the aliases list.
2001-10-25 14:41:28 +00:00
Joe Thornber
2d82b2c64f
o rfilter now checks all aliases for a match
2001-10-25 14:19:39 +00:00
Joe Thornber
d076caf473
o use dev_name(dev) to get the name of a device, this operation is cheap
...
since it just get's the first alias.
2001-10-25 14:04:18 +00:00
Joe Thornber
c7abdefa31
o Remove a couple of warnings, and one bug in ttree. Spotted by the optimiser
2001-10-25 13:08:29 +00:00
Joe Thornber
ba772c0bca
o Shuffle the keys to stop degeneracy.
2001-10-25 12:38:18 +00:00
Joe Thornber
5bad234119
o Trivial binary tree
2001-10-25 11:38:19 +00:00
Joe Thornber
c7e7baaf23
o added aliases list to struct device.
2001-10-25 11:34:55 +00:00
Joe Thornber
fb5a7db66d
o Merged common code between hash_destroy and hash_wipe.
2001-10-25 08:31:43 +00:00
Alasdair Kergon
ba7d33982e
persistent cache fully incorporated. Goodbye to scanning /dev/cdrom :-)
2001-10-24 17:53:50 +00:00
Alasdair Kergon
0b8c30c109
persistent filter & some log message changes
2001-10-23 18:20:27 +00:00
Joe Thornber
9ab0f463cc
o removed old files
2001-10-23 14:17:07 +00:00
Joe Thornber
6433dda7b8
o forgot to use the path passed into _read_array.
2001-10-23 13:12:05 +00:00
Alasdair Kergon
ba90e16505
deallocations
2001-10-23 12:33:57 +00:00
Joe Thornber
008f710203
o rethink of the persistent filter
2001-10-23 12:24:55 +00:00
Alasdair Kergon
df2740f126
filter integration into tools
2001-10-23 11:50:49 +00:00
Joe Thornber
2db89d143e
o forgot to retry on EINTR or EAGAIN, doh !
2001-10-23 11:16:30 +00:00
Joe Thornber
0525d49da3
o forgot 'static'
2001-10-22 14:40:31 +00:00
Joe Thornber
e2b0745882
o composite filter that allows us to merge filters. Think of it as &&'ing
...
filters in order.
eg,
f = composite_filter_create(2, regex_filter, persistent_filter);
ownership of the filters passes, they will be destroyed when f's
destroy method is called.
2001-10-22 14:39:12 +00:00
Joe Thornber
92e804fc50
o Filter which caches valid devices in a file. Pass in init == 1 to the
...
constructor if you want it to ignore the existing cache and check every
device again (eg, vgscan, pvscan).
2001-10-22 14:14:00 +00:00
Alasdair Kergon
67abf45576
reinstate a removed line
2001-10-22 13:44:09 +00:00
Joe Thornber
22f8881a64
o tidying
2001-10-21 10:24:10 +00:00
Joe Thornber
4ab20322fe
o Filter for the dev cache that takes values from config file:
...
devices {
# first match is final, eg. /dev/ide/cdrom
# get's rejected due to the first pattern
filter=["r/cdrom/", # don't touch the music !
"a/hd[a-d][0-9]+/",
"a/ide/",
"a/sd/",
"a/md/",
"a|loop/[0-9]+|", # accept devfs style loop back
"r/loop/", # and reject old style
"a/dasd/",
"a/dac960/",
"a/nbd/",
"a/ida/",
"a/cciss/",
"a/ubd/",
"r/.*/"] # reject all others
}
Alasdair this is ready to roll into the tools now.
2001-10-19 18:20:37 +00:00
Joe Thornber
5370eeecea
o First pass at the regex code. lib/regex/matcher takes an array of regex's
...
and builds a *very* efficient engine that will tell you which regex a string
matches with only a single pass through the string. To be used in the config
file when specifying devices.
o Anchor's aren't supported yet (^ and $) but that won't take long.
o Also when we get some realistic config files we may want to consider adding an
extra level of indirection to the dfa state in order to compress the table.
It all depends on how large typical tables get.
2001-10-19 14:36:57 +00:00
Alasdair Kergon
ba71cb5dd7
pvdisplay
2001-10-18 16:55:19 +00:00
Alasdair Kergon
4d9627f20c
pvchange
2001-10-17 15:29:31 +00:00
Alasdair Kergon
f00be261ba
vgchange
2001-10-16 16:25:28 +00:00
Alasdair Kergon
6dcbb5b2f8
vgextend
2001-10-15 22:04:27 +00:00
Alasdair Kergon
a84fdddb2a
vgcreate basic extent size validation
2001-10-15 20:29:15 +00:00
Alasdair Kergon
38bb2f8ceb
More vgcreate error trapping
2001-10-15 18:39:40 +00:00
Alasdair Kergon
ef8a2a9054
o lvm readline error-case tidy-up
...
o more vgcreate error cases
2001-10-15 12:49:58 +00:00
Joe Thornber
ff5f6748df
o vgcreate
2001-10-12 14:25:53 +00:00
Alasdair Kergon
1c1fd6c366
vgcreate
2001-10-12 12:21:43 +00:00
Joe Thornber
32d37d00cb
o make ios the first argument to pv_create
2001-10-12 10:52:32 +00:00
Joe Thornber
73f8f0bbd0
o pvcreate
...
o added uuid unit
o stubbed partition stuff
2001-10-12 10:32:06 +00:00
Alasdair Kergon
0524b1bf67
vgreduce, vgremove, vgrename & vgscan
2001-10-11 21:35:55 +00:00
Joe Thornber
d46bdba332
o try incrementing pv_number from 1
2001-10-11 16:31:09 +00:00
Joe Thornber
760728110a
o if contained &= instad of &
2001-10-11 15:09:31 +00:00
Joe Thornber
12d0a194ca
o initalise list_heads, initialise list_heads, initi ..
2001-10-11 14:21:38 +00:00
Joe Thornber
4104543508
o a very quick hack to get vg_number right
2001-10-11 14:10:18 +00:00
Joe Thornber
5c211db015
o set PV_ALLOCATABLE flag correctly
2001-10-11 13:34:17 +00:00
Joe Thornber
2dc6180f8d
o pv->system_id
2001-10-11 13:22:51 +00:00
Joe Thornber
e222a34b69
o vg->pv_act
2001-10-11 13:05:55 +00:00
Joe Thornber
ef17d95063
o calculate pv_numbers and lv_numbers for LVM1 support
2001-10-11 10:55:19 +00:00
Joe Thornber
853502e5d7
o pe_start wasn't being set properly when exporting to disk
...
o added a check for lv's with null lv_name
o setup pv->lv_cur correctly
o test program for vg_write
2001-10-11 10:08:44 +00:00
Joe Thornber
c5a49599ba
o sync
2001-10-10 17:11:31 +00:00
Alasdair Kergon
df9da9edf5
standardise some log messages
2001-10-10 16:36:32 +00:00
Joe Thornber
e2200fd050
o builds a very sub-optimal table
2001-10-10 15:30:31 +00:00
Joe Thornber
c6207f5d9c
o allocate and zero the extents before exporting the lv's
2001-10-10 14:56:53 +00:00
Joe Thornber
4302b7ff6b
o zero all of uuid
2001-10-10 13:33:20 +00:00
Joe Thornber
50a7923438
o uuid_list->id should be NAME_LEN wide
2001-10-10 13:30:58 +00:00
Joe Thornber
ab416445c8
o sizeof(NAME_LEN), don't do that
2001-10-10 13:24:16 +00:00
Joe Thornber
a54698d43c
o forgot to init a list head
2001-10-10 13:09:40 +00:00
Joe Thornber
c5a77cc1c0
o dev_write
2001-10-10 13:03:10 +00:00
Alasdair Kergon
a9ffa811fc
Tidy metadata diagnostic messages.
2001-10-10 12:45:20 +00:00
Joe Thornber
080a2608e0
o return data not 1 in read_ov
2001-10-10 12:42:03 +00:00
Joe Thornber
57f2e83d6a
o check for orphaned pv's when reading
2001-10-10 12:28:10 +00:00
Joe Thornber
5b030139d3
o pv_setup for format1, this is the last one !
2001-10-10 10:55:55 +00:00
Joe Thornber
5c8af8d21a
o pv_write for orphan pv's
2001-10-10 10:05:29 +00:00
Joe Thornber
026f3cfde2
o add munging for format1 and 2
2001-10-10 09:36:29 +00:00
Joe Thornber
f6349180e8
o Code to calculate the metadata layout.
2001-10-10 09:25:04 +00:00
Joe Thornber
aa6421921c
o stub pv_write to stop tools crashing
2001-10-09 17:44:58 +00:00
Joe Thornber
7d41d2dab2
o fix seg fault while reading extents
2001-10-09 17:36:48 +00:00
Joe Thornber
f0b4d18f93
o remove another spurious error message
2001-10-09 17:30:20 +00:00
Alasdair Kergon
6750f06e10
o vgremove.
...
o filter devices by major.
2001-10-09 17:20:02 +00:00
Joe Thornber
b2bd38fa9e
o spot empty list in build_vg
2001-10-09 17:09:46 +00:00
Joe Thornber
3482a01e22
o proposed interface to the kernel driver
2001-10-09 16:44:30 +00:00
Joe Thornber
6335467552
o dev-mgr disappears
2001-10-09 16:13:12 +00:00
Joe Thornber
4a39e65b62
o change pv_read to take a name rather than a device
2001-10-09 16:05:34 +00:00
Joe Thornber
c50a23e918
o remove spurious log message
2001-10-09 14:42:58 +00:00
Joe Thornber
1e76b72b98
o hack, hack, hack
2001-10-09 14:26:45 +00:00
Joe Thornber
b94cf39eef
o vg_write compiles
2001-10-09 10:47:52 +00:00
Joe Thornber
fef254ffff
o get_vgs works
2001-10-09 09:22:50 +00:00
Joe Thornber
e5495863a2
o pv_Read works
2001-10-09 08:58:52 +00:00
Joe Thornber
3b4df2abf0
o get_pvs now works for format 1
2001-10-09 08:11:52 +00:00
Alasdair Kergon
aef2aee6a4
vgrename & vgck
2001-10-08 18:44:22 +00:00
Joe Thornber
685df1d2c5
o get_pvs for format 1
...
o fix vg_read if vg doesn't exist
2001-10-08 17:53:43 +00:00
Joe Thornber
08e6b6f2e7
o added pretty printing to read_vg_t, run this on your system
...
to see what vg's you've got
S: ----------------------------------------------------------------------
2001-10-08 17:28:49 +00:00
Joe Thornber
66c887d0f3
o read_vg works (or so it claims)
2001-10-08 16:08:16 +00:00
Joe Thornber
22e9960697
o dev_cache_t program works
2001-10-08 13:58:52 +00:00
Joe Thornber
64aa6e1f2d
o sync
2001-10-08 12:11:33 +00:00
Joe Thornber
7a93ed9d04
o we were stuill building dev-mgr files
2001-10-08 10:35:59 +00:00
Joe Thornber
a905e922e9
o read_vg_t compiles
2001-10-08 10:20:25 +00:00
Joe Thornber
8d402d76d0
o get things compiling
2001-10-08 09:45:16 +00:00
Joe Thornber
46fda6281c
o test program for reading a vg
2001-10-08 08:47:27 +00:00
Alasdair Kergon
a14dbe1ea6
Sync include file changes.
2001-10-05 21:39:30 +00:00
Joe Thornber
18810a4c16
o end of day sync
2001-10-05 16:36:53 +00:00
Joe Thornber
147bc80dba
o replace {stack; return 0;}'s with a macro (just for this file).
2001-10-05 15:48:05 +00:00
Joe Thornber
c7a484195a
o low level write path
2001-10-05 15:20:40 +00:00
Joe Thornber
4968eb6503
o finished writing extent reading code
2001-10-05 13:59:44 +00:00
Alasdair Kergon
a6f2d698a9
revised flags and comments
2001-10-05 13:03:03 +00:00
Alasdair Kergon
e1140134c6
metadata status flags regrouping & comments; misc tool changes
2001-10-04 22:53:37 +00:00
Joe Thornber
5ed11e012e
o vg_read for format1
2001-10-04 17:48:55 +00:00
Joe Thornber
2ee2685688
o define the uintN_t types
2001-10-04 11:40:13 +00:00
Joe Thornber
7fc0905843
o got dbg_malloc_t working, Alasdair could you look at the Makefile.in it
...
seems to be having trouble with the dependencies.
o removed some files from the lib makefile that don't compile yet.
2001-10-04 10:13:07 +00:00
Joe Thornber
72ecb99e54
o Use the __alignof__ extension to set DEFAULT_ALIGNMENT to that required
...
for a 'double'.
2001-10-04 09:10:11 +00:00
Alasdair Kergon
c863507d08
vgcreate & lvmchange outlines
2001-10-03 20:38:07 +00:00
Alasdair Kergon
cff86c9093
vgrename & pvchange outlines
2001-10-03 17:03:25 +00:00
Joe Thornber
0479dfcc54
o added dev-cache.c, dev-io and sorted source files alphabetically
2001-10-03 12:46:17 +00:00
Joe Thornber
540f6858b5
o I've moved the dev-cache and dev-io into here since this directory has a
...
better name. dev-mgr will be removed at some point.
2001-10-03 12:41:29 +00:00
Alasdair Kergon
b61e791a4f
lvremove outline
2001-10-03 12:34:08 +00:00
Joe Thornber
d0986f9482
o code sync for dev-cache.c
...
o made copyright headers the same
o added __attribute ((format ... to print_log so we'll get better compile errors
o added iterator to the hash table
2001-10-03 11:06:31 +00:00
Alasdair Kergon
112cb0dc28
pvscan framework
2001-10-02 17:09:05 +00:00
Alasdair Kergon
ae292bd920
Another step towards consistency & compilation.
2001-10-01 22:12:10 +00:00
Alasdair Kergon
6c85a90723
Misc structural changes.
2001-10-01 19:36:06 +00:00
Alasdair Kergon
852592066c
Misc structural changes.
2001-10-01 19:29:52 +00:00
Joe Thornber
96e1bc9b44
o changed dev-manager to a dev_filter
2001-10-01 16:21:21 +00:00
Joe Thornber
b41d81ed31
o get block size moved to dev-io.c
2001-10-01 16:07:29 +00:00
Alasdair Kergon
e241ec2244
merge partition code
2001-10-01 15:59:40 +00:00
Joe Thornber
7a68c42b26
o drop the reference counting in the devices.
2001-10-01 15:43:51 +00:00
Joe Thornber
4192fe1ab2
o missing *
2001-10-01 15:28:28 +00:00
Joe Thornber
d5c743d7bb
o added filter type.
2001-10-01 15:27:16 +00:00
Alasdair Kergon
11814d63e8
Tidy include files
2001-10-01 15:14:39 +00:00
Joe Thornber
f7e87611fc
o I'm splitting dev-manager in two. dev-cache is the bottom layer that
...
handles devices. Dev-manager will sit on this filtering the view.
2001-09-28 15:42:25 +00:00
Joe Thornber
1fb0e1900e
o list.h from kernel for userland tools to use.
2001-09-28 13:19:17 +00:00
Joe Thornber
954a9731e0
o logical data structures
2001-09-28 13:15:30 +00:00
Joe Thornber
65c3364ad8
o generic hash table to store void *'s, not efficient, but adequate for LVM.
2001-09-28 13:08:44 +00:00
Patrick Caulfield
13ee569f06
Fix prototype for malloc_aux
2001-09-27 10:01:17 +00:00
Patrick Caulfield
d79ef23a75
Don't include asm/* files
2001-09-27 10:00:47 +00:00
Alasdair Kergon
5c3a71cc59
lvactivate checkpoint commit
2001-09-25 12:49:28 +00:00
Alasdair Kergon
02ada9f800
Makefiles & autoconf.
2001-09-21 12:37:43 +00:00
Alasdair Kergon
6fcf9a97bb
Initialise root node pointer.
2001-09-21 12:32:37 +00:00
Alasdair Kergon
17a5d8799f
Unused variables.
2001-09-21 12:31:57 +00:00
Patrick Caulfield
e735abfdfd
Fix includes so that string functions get prototyped
2001-09-13 12:38:31 +00:00
Patrick Caulfield
1de93a2d6d
Fix includes so that string functions get prototyped.
...
Fix cast - repeat after me Joe: "I must not cast pointers to ints"!
2001-09-13 12:38:08 +00:00
Patrick Caulfield
4ae0880ea6
Set DEFAULT_ALIGNMENT to 8 for Alpha.
...
If you think this is wasteful on other arches then stick some ifdefs in.
2001-09-13 09:03:42 +00:00
AJ Lewis
7e95110232
o Ok, this seems to be a much better method for caching valid
...
devices based on /proc/devices
+ The dev_mgr structure now has a 256 element char array that is
initially all 0s
+ When a match is found, the array element corresponding to the major
number of the match is set to a non-zero value
+ to check for a match, all one has to do is check that the array
element at the major number in question is non-zero.
o I'm wondering if we should do this with bitwise operators instead? Does
anyone expect the major numbers to grow larger than 8-bits?
2001-08-21 20:40:37 +00:00
AJ Lewis
ec4aaaad89
o Quick and dirty *UGLY* hack of a /proc/devices cache using a linked list
...
o I don't like it, but I'm committing it so I can go back and laugh at
myself later
o I have a (hopefully) better idea that i'll try to commit yet today.
2001-08-21 19:51:04 +00:00
AJ Lewis
1b790fde24
o Quick and dirty hack to get lvm_check_dev code into the dev-manager
...
o I'm working on caching the /proc/devices entries now, and should have
that in by the end of today or early tomorrow.
o There will be much cleanup involved with that...
2001-08-21 18:20:14 +00:00
AJ Lewis
aa51f4a98f
o Added a basic makefile to build liblvm.a again
...
o Modified source files so that this works
2001-08-21 15:23:45 +00:00
AJ Lewis
e6ccd12f00
o Brought hash table code over from experimental
2001-08-21 15:22:59 +00:00
AJ Lewis
707a6c4d6a
o Added _basic_ config file support to the device manager
2001-08-21 14:44:18 +00:00
AJ Lewis
ad8cc2baea
o Populating with stuff from experimental
2001-08-21 13:22:16 +00:00
Joe Thornber
7c4cf70309
o Populating with stuff from experimental
2001-08-21 12:56:08 +00:00
AJ Lewis
b653404542
o initial subdir population
2001-08-15 16:20:46 +00:00