tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD resize_ffs SoC project

>> 2) online filesystem shrinking and growing.  This needs major
>> rewrite of resize_ffs and add support to FFS driver in kernel.
> I don't really think that *online* shrinking is important.

I'm not sure.  It projbably is not worth the effort it would take, but
it sure would be nice to have.

> I am not even sure that shrinking is possible without limitations as
> inodes are spread over the disk and you can't remove a cylinder group
> without changing inode numbers, can you?

Only if none of the cg's inodes happen to be used, something that is
unlikely unless the filesystem is very low in inodes-used.

Live shrinking would be a fairly elaborate thing.  resize_ffs's shrink
code involves reading every directory in the filesystem to rewrite
directory entries referring to moved inodes (in theory this could be
done more efficiently if all the moved inodes are directories, but that
is sufficiently unlikely I didn't bother even checking for it).  At
least some of that would need to be moved into the kernel.

/~\ The ASCII                           der Mouse
\ / Ribbon Campaign
 X  Against HTML     
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index