Ross, Gary (G.A.) wrote:
What if something like the old CacheFS was revived, using ZFS as the
base file system instead of UFS? Using the ZFS filesystems on servers as
the "master" systems, the laptop builds a "cache" of files, used in the
last month or so.

If we ignore the "merging" problem for a moment (ie, where the same file/s are changed on both server and laptop), then you can accomplish a lot of this today (albeit somewhat clunkily) using zfs send/recv.

Keep the "main" copy on the server, and use that when attached. When the laptop wants to detach, just 'zfs send' the latest changes from the server to the laptop. If not too much has changed, this will be fast.

When the laptop reconnects, 'zfs send' the changes back to the server.

Essentially, you would want to change what is mounted on /home/$user based on where the "main" copy is stored. When connected to the server, it should point to nfs://server/home/$user, but when disconnected, point to local_zpool/home/$user. Connecting/disconnecting would involve doing the 'zfs send|zfs recv' plus changing the mount.

The fs that is not currently the "main" one should be mounted read-only to avoid the merging problem.

As I said, this is clunkier than a "real" solution would be, but it makes for some interesting possibilities.

--matt
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to