Mailing List archive

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

[vdr] Re: "sparse-copy" ?



Guido Fiala wrote:

Such a filesystem would be nice for any kind of video-editing...

This could be achieved today in userspace. The first thing that you would want to do do is make the "nnn.vdr" files a lot smaller, containing a few minutes of data each.

When you "copy" the recording you simply create a hard link to each of the complete blocks and create new files for the partial bocks around each of the cut points. The filesystem will take care of doing the reference counting for you so you can safely delete the primary recording without losing any of the referenced blocks.

There would be a few limitations with this approach of using hard links. The filesystem would have to unserstand hard links (no more FAT recordings). The "copy" would have to reside on the same filesystems as the original recording. You also need to be careful when backing up the file system, tools like "cp" will duplicate the hard linked data.

Jon



--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index