shapor / tux3 (http://shapor.com/tux3)

Tux3 is a write-anywhere, atomic commit, btree-based versioning filesystem. It is the spiritual and moral successor of Tux2, the most famous filesystem that was never released. The main purpose of Tux3 is to embody Daniel Phillips's new ideas on storage data versioning. The secondary goal is to provide a more efficient snapshotting and replication method for the Zumastor NAS project, and a tertiary goal is to be better than ZFS.

Clone this repository (size: 1.3 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/shapor/tux3/
commit 953: 41342b5d76c8
parent 952: 671f8a517335
branch: default
Update timestamp on write
OGAWA Hirofumi
14 months ago

Changed (Δ61 bytes):

raw changeset »

user/inode.c (4 lines added, 0 lines removed)

Up to file-list user/inode.c:

@@ -73,6 +73,10 @@ int tuxio(struct file *file, char *data,
73
73
			return 0;
74
74
		len = inode->i_size - pos;
75
75
	}
76
77
	if (write)
78
		inode->i_mtime = inode->i_ctime = gettime();
79
76
80
	unsigned bbits = tux_sb(inode->i_sb)->blockbits;
77
81
	unsigned bsize = tux_sb(inode->i_sb)->blocksize;
78
82
	unsigned bmask = tux_sb(inode->i_sb)->blockmask;