From: Goswin v. B. <bre...@in...> - 2007-09-15 16:34:01
|
Jan Engelhardt <je...@co...> writes: > On Sep 15 2007 13:51, Goswin von Brederlow wrote: >>>> >>>>Having online defrag run freely on the FS while it is mounted invites >>>>desaster. I only see two sane solutions there: >>>> >>>>1) include the defrag as a thread in the fuse filesystem. >>> >>> Yes. >>> >>>>2) wait for the general online defrag interface for filesystems and >>>>add support for it in fuse. >>> >>> FUSE generally has no idea how my-filesystem stores data, >>> so I would be surprised to dictate how I have to defragment it. >> >>Nor does the interface know how xfs, ext2/3/4, ... store their >>data. The interface will be designed in an abstract form that lets you >>interact with the internal data of the FS in some way to make defrag >>possible. > > Why would *FUSE* care about defragmentation at all? Either the filesystem > does it itself (think btrfs), or the user does it (kicking the filesystem > by means of ioctl or so). It wouldn't. It would only know about the ioctl (or whatever they decide to use in the end) and pass them on to the user space. MfG Goswin |