e2fsadm Q's
Quoted 5 lines · Johhny Brassow
The reason I'm asking is because I am going to start work on a file system resizer for GFS. I would like it to be an online resizer (mmm... lots of problems:). Does anyone have any experience in this or could point me to some source code (other than the LVM stuff - I'm looking that over now:)?
There are several ext2 offline resizers available, as well as my online ext2 resizer. If the filesystem is structured correctly on disk, there isn't much change needed in the kernel to make online resizing work. I did much of the change in user-space, and then called (effectively):
mount -o remount,resize=<new block count> /dev/XXX
to have the kernel do the modifications to the parts of the superblock in use, and to update the kernel data about the filesystem. If you are going to write a similar tool for GFS, feel free to use my code, and it would be nice to keep the interfaces to the user-space tools and kernel as similar as possible, so maybe there can be a common front-end (like there is with fsck calling fsck.ext2, etc).
Cheers, Andreas
Signature · 4 lines
Andreas Dilger University of Calgary \ "If a man ate a pound of pasta and
Micronet Research Group \ a pound of antipasto, would they
Dept of Electrical & Computer Engineering \ cancel out, leaving him still
http://www-mddsp.enel.ucalgary.ca/People/adilger/ hungry?" -- Dogbert