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

147 Commits

Author SHA1 Message Date
Steven Whitehouse
d5880f97c5 o Confusingly, dmfs-tdir isn't gone, its now called dmfs-lv.c and its the
old dmfs-lv.c thats gone.
 o Dropped out support for multiple tables in line with ioctl interface
 o Some reordering to better support the userland library
 o Updated to 2.4.16

I'm fairly happy with the way that this is working now, so the next job is
to start the integration with the ioctl interface so there is a single
common dm.[ch] and selectable interfaces (fs or ioctl).

Further improvements can be made even now, but I hope to wait until we've
got this going and integrated and the libdm parts working as well before
investigating other avenues.
2001-11-29 14:00:04 +00:00
Steven Whitehouse
6d780d957c New patches for 2.4.16 2001-11-29 13:44:46 +00:00
Alasdair Kergon
592e834cd1 additional patch required 2001-11-23 12:35:31 +00:00
Steven Whitehouse
58486cf9f5 o Revised seq_file usage after discussions on linux-fsdevel 2001-11-22 15:14:20 +00:00
Steven Whitehouse
e55ef72786 o Fix module ref counts so that you can actually unload dm-mod
N.B. This means that you have to take very great care in the event that
   you want to access the dcache tree from in kernel

 o Added extra field to allow out of memory conditions to result in the
   correct error code. (This hasn't received a lot of testing...)

I've ditched the final project (which would have cleared my whole list)
since its got other complications which I don't have time to fix right
now. Still as Meatloaf says, two out of three ain't bad!
2001-11-10 17:11:36 +00:00
Steven Whitehouse
fbdb7953db Oops. Forgot to check this in earlier. Changes as per previous check in
comments.
2001-11-07 19:27:17 +00:00
Steven Whitehouse
01c4ac1315 Tidy and changes to make code smaller.
o Created dmfs.h as a private header for the filesystem code
 o Using seq_file.[ch] written by Al Viro as a generic mechanism for /proc
   style files which have one record per line. We use a slight modification
   here, so if you are using a recent -ac kernel you'll need to replace the
   existing seq_file.[ch] with  the ones here and do a bit of editing to make
   it work. I'll submit the changes to Al Viro shortly as they are very
   small and I think make sense generally.
 o Using fail_writepage()
 o Init code for filesystem now all in dmfs-super.c
 o Some common code reduction amoung the dmfs-*.c files
 o Auto allocation of major device number (default). You can specify a
   particular major by using a module argument. If built in then you don't
   get this option at the moment but it could be added if required.
 o Hotplug support
 o General tidying
 o Updated projects.txt file
 o Patches updated to 2.4.14
2001-11-07 12:12:56 +00:00
Steven Whitehouse
952152fd96 o Added two items which ought to be done when we update to 2.4.14-pre3 or
above.
2001-10-29 11:06:46 +00:00
Steven Whitehouse
03aedda156 o Added a file containing a TODO list.
Please add to/edit this file as you think of new ideas or discover bugs. The
items in it are in no particular order. They are also only ideas and hence may
never get implemented depending on whether they turn out to be good ideas or
not.
2001-10-29 10:03:05 +00:00
Steven Whitehouse
d360f957c0 o Correction in logic for write access to tables 2001-10-25 11:05:29 +00:00
Steven Whitehouse
ab367a0678 o Fix typos from yesterday 2001-10-25 10:37:05 +00:00
Joe Thornber
cc2124ce7d o Updated 00_makefile
o 00_bh-async-3 has been merge with vanilla
2001-10-24 10:52:10 +00:00
Steven Whitehouse
64b6e4e4b3 o Error list handling now part of fs rather than part of table. 2001-10-24 08:26:10 +00:00
Steven Whitehouse
6215194e2b o Fix bug in dmfs-error.c where it could return too many bytes under some
circumstances.
 o Use sscanf() in dmfs-table.c
 o Use do_generic_file_read() instead of original hand made loop in dmfs-table.c
2001-10-24 07:51:42 +00:00
Joe Thornber
9a48f4b6a3 o removed 00_latest since it never is. 2001-10-22 10:03:05 +00:00
Steven Whitehouse
e7af89f900 o Remove unused variable. 2001-10-18 15:59:25 +00:00
Steven Whitehouse
0bc4573221 o Fix crash that Patrick reported 2001-10-17 15:03:00 +00:00
Steven Whitehouse
646b19ce77 o Fix a typo. This should fix devfs support. 2001-10-17 14:34:53 +00:00
Steven Whitehouse
ef938d5aad o Patches to go with earlier check in 2001-10-17 13:13:25 +00:00
Steven Whitehouse
14ce9d49f1 Ok. this is the big one.... the change to the new fs interface.
Things to note:

 o Changes to the dm-*.c files have been kept as small as possible during
   the development of the new fs interface and there are a few places where
   the new code does odd things to give the original code what it wants. These
   places will gradually go away during the next few days once we are sure the
   new code is sound.
 o I've spent most of my testing time looking at the parser since thats where
   a lot of the changes are, I've not checked the actual I/O very much, but
   then that code hasn't changed at all.
 o The print operation in the target type operations is there to help in
   debugging and will go away eventually
 o There are some other printk's which will also go away once we are sure that
   things are working correctly.
 o I've tagged the old code with PRE_DMFS if you want to use that until this is
   stable.
 o There are no kernel patches for this yet (will fix after lunch... :-)
      o Makefile needs some changes
      o need to EXPORT_SYMBOL(deny_write_access); in ksyms.c

How to use the new interface ?

 mount -t dmfs dmfs /mnt/dm
 cd /mnt/dm
 mkdir fish fish/tank
 cd fish/tank
 cat ~/my.table > table
 cd ..
 ln -s tank ACTIVE

Creates a logical volume called fish and activates a table called tank, if
there is a problem doing the link, look in /mnt/dm/fish/tank/errors to see
what is wrong.

If you see any odd things happening, let me know right away as I'm sure there'll
be one or two things that slipped through my testing.
2001-10-17 11:34:50 +00:00
Steven Whitehouse
33f5321c39 o Update to parser
o Extra checks in symlink routines
2001-10-17 11:09:43 +00:00
Steven Whitehouse
fc4a099514 o Fixed infinite loop in parser
o Fixed error handling whilst creating volumes
 o General tidy up
2001-10-16 17:09:27 +00:00
Steven Whitehouse
d36240499b o Get file size correct for table
o Make parser look at the right object
2001-10-16 12:17:54 +00:00
Steven Whitehouse
e58cb41e7e o Fixes to parsing code 2001-10-16 11:56:55 +00:00
Steven Whitehouse
dfe0a65d93 o Tidy up, removing debugging printk's no longer needed 2001-10-16 10:38:13 +00:00
Steven Whitehouse
60b134b53c o More bug fixes 2001-10-15 22:39:14 +00:00
Steven Whitehouse
550380f9c8 o More fixes 2001-10-15 16:40:17 +00:00
Steven Whitehouse
0c947f7619 o Some bug fixes
o Added symlink ops
 o Some extra sanity checks
2001-10-15 11:31:00 +00:00
Steven Whitehouse
03505a0f58 o Further tidyups and fixes. 2001-10-12 10:06:40 +00:00
Steven Whitehouse
c4bf9638e3 Some more sync ups
o Error file routines (initial idea)
 o Various fixes for bugs
 o Tidy a few things
 o Added a bit of debugging code ready for when this gets tested
 o get_exclusive_write_access() function which will get moved into namei.c
   I hope (and rewritten accordingly), should this become the final version
   used.

Still a few more areas need thinking about, but in general much closer now I
think. Last area to sort out before testing is the symlink code which is
pretty close now... just a few more checks needed and the actual calls to
the core code.
2001-10-11 20:29:00 +00:00
Steven Whitehouse
161720b500 o Everybody needs dm.h
o Fixed to work with highmem
 o Added dmfs private inode struct for lv and table directories
 o Fixed a number of errors/typos
 o Status file read returns 0 so we can leave this until we've actually got
   something to report in this now.
 o New locking on tables.... still some issues to be worked out here but
   closer now I think.
 o Now use mapping of table directory to hold pages rather than mapping of
   table file inode. Need to write a note to myself to fix issues with the
   file length at the same time....

Well thats enough for tonight I think. The error file will be part of
tomorrows work.
2001-10-10 21:49:21 +00:00
Steven Whitehouse
b82172a98a Just a small sync of pending changes before I start looking at this again
more seriously.

 o Odds and ends
2001-10-05 10:00:13 +00:00
Alasdair Kergon
28f5d16b4f Misc structural changes. 2001-10-01 19:36:06 +00:00
Joe Thornber
2099052b83 o rewrite of dm_user_bmap, not tested though. 2001-09-27 10:15:02 +00:00
Steven Whitehouse
ac4fc0b84d o Kill write funcs for error/status files
o Redo write logic for table file
 o Relax rules for symlink content by removing the rewriting function

Well I probably won't get a chance to work on this tomorrow, so this is my
changeset to date.
2001-09-26 20:24:39 +00:00
Joe Thornber
2f1a7a61fc o table creation works again. 2001-09-26 19:48:20 +00:00
Joe Thornber
2b83ef25c5 o It should build now 2001-09-26 17:32:57 +00:00
Joe Thornber
1655d99716 o typos 2001-09-26 17:07:10 +00:00
Joe Thornber
f9e8171a44 o remove steve's insane ramblings from my code. 2001-09-26 14:32:07 +00:00
Steven Whitehouse
cd624d3a4f o Lunchtime. 2001-09-26 11:47:02 +00:00
Steven Whitehouse
dd19ef9dd0 o More updates 2001-09-26 09:26:10 +00:00
Steven Whitehouse
d91ed719e9 o Beginnings of new interface. 2001-09-26 08:06:46 +00:00
Joe Thornber
2eca35b6d6 o quick tidy up 2001-09-25 15:23:20 +00:00
Steven Whitehouse
5d910431cf o Check in case of setting up volumes before root is mounted. 2001-09-24 15:18:45 +00:00
Steven Whitehouse
c5ecb802fc Well when things start looking so complicated that future direction becomes
non-obvious, its time to simplify :-)

 o Moving towards a simpler and more obviously correct interface
 o Removed some fs operations in directories representing volumes
 o Changed some file names
 o Made things cleaner

more changes to follow...
2001-09-24 15:10:33 +00:00
Steven Whitehouse
257ef2ba58 o Sync up of todays changes .... nothing very important 2001-09-20 22:58:06 +00:00
Steven Whitehouse
8402493a28 o Bug fix in error path 2001-09-20 20:22:15 +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
70c9968eaf o Changed to use table->err_msg rather than passing functions around 2001-09-20 18:22:35 +00:00
Steven Whitehouse
5fe98688bb o Some new files (also part of new fs interface) 2001-09-19 21:28:25 +00:00