tech-kern archive

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

Re: fallocate for FFS



>>> I will try to figure it out, since its not yet implemented the
>>> syscall is a good way to start dev in BSD kernel.
>> I'm not sure about that; many people have started looking at it and
>> not got anywhere.
> It is true that adding a system call is an easy entry point to learn
> about the kernel.  But here the syscall is the easy part, the real
> work is modifying FFS code to suport it, and that is a steep learning
> curve.

Not just a steep learning curve.  Some of the fallocate operations
(mode zero in particular) would be fairly easy.  But, as someone who
knows somewhat of FFS, I would say some of the operations, in
particular anything that involves allocating space after EOF, would be
rather difficult to implement even for someone who's past the learning
curve.  (Some others, while easy, would be tedious and expensive;
FALLOC_FL_COLLAPSE_RANGE is an example.  While it would technically be
possible to make it fast and simple by taking advantage of the
granularity requirement leeway, such an implementation would be too
restrictive to be worth doing.)

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index