1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
Commit Graph

14 Commits

Author SHA1 Message Date
Joe Thornber
2f1a7a61fc o table creation works again. 2001-09-26 19:48:20 +00:00
Joe Thornber
f9e8171a44 o remove steve's insane ramblings from my code. 2001-09-26 14:32:07 +00:00
Steven Whitehouse
04c89ae74c o Use ERR_PTR and PTR_ERR rather than an extra argument. 2001-09-20 19:25:58 +00:00
Steven Whitehouse
6c15d652d4 o Removed the error reporting function from the target constructor function
arguments. Errors are now reported by setting a pointer in the table to
   point to an error message.
2001-09-19 21:27:15 +00:00
Alasdair Kergon
c1a727359e hardsect/blksize handling 2001-09-19 17:46:27 +00:00
Alasdair Kergon
7c913930fe Error checking: only allow block devices & test for 'nodev'. 2001-09-17 21:17:30 +00:00
Steven Whitehouse
de37c802d7 o Targets now get rw passed through so they can do COW for example
o Added error handler (not sure that this is the "correct" way to do
   this at the moment, so its a bit exprimental for now)
2001-09-14 16:22:02 +00:00
Steven Whitehouse
9b90e8ee2c o New ioctl(): LV_BMAP which is compatible with LVM so that hopefully LILO
will work. I haven't actually tested that, but this support at least will
   be required.
2001-09-14 13:45:40 +00:00
Alasdair Kergon
df18917b3c Use dmfs_ function name prefix (in line with other file systems). 2001-09-14 13:27:58 +00:00
Steven Whitehouse
9f1da34243 o As promised earlier, the device registration is now hashed and the
lists are private to dm-blkdev.c
2001-09-14 11:25:51 +00:00
Steven Whitehouse
fd36a66ccc Changes to device handling;
o Only one list of block devices for all tables
 o Locking to ensure that block devices only get opened once
 o Block device handling is now in dm-blkdev.c
 o We open block devices when we create the tables and hold them open until
   the table is destroyed (this prevents the module for the device being
   unloaded after table parsing and before the table is used)
 o We compute the hardsect size when the table is created rather than when
   someone requests it.

Still to fix/change:

 o Probably want to hash the device lists in dm-blkdev.c and also remove refs
   to struct dm_bdev outside this file.
 o Need to ensure that hardsect_size doesn't change when new tables are
   swapped in (maybe this ought to be a per volume parameter and the tables
   will only parse if they match the value for the volume?).

Things are changing fast here, so if you want a stable version of thic code
try checking out yesterdays.
2001-09-14 09:45:35 +00:00
Steven Whitehouse
e81b9387b1 o Two fixes which Alasdair pointed out. 2001-09-13 20:10:14 +00:00
Steven Whitehouse
19e1b15feb o Forgot to add ref to module. 2001-09-13 19:36:40 +00:00
Steven Whitehouse
fee7b9e6a5 o Now we handle target modules correctly
o Moved the linear target into its own module (not really because it needs to
   be there, but because its useful to have a simple example so people can see
   what we are doing)

Btw, this needs testing properly.
2001-09-13 18:30:05 +00:00