示例#1
0
static int
volicon_setbkuptime(const char *path, const struct timespec *bkuptime)
{
    ERROR_IF_MAGIC_FILE(path, EPERM);

    return fuse_fs_setbkuptime(volicon_get()->next, path, bkuptime);
}
示例#2
0
static int subdir_setbkuptime(const char *path, const struct timespec *bkuptime)
{
	struct subdir *d = subdir_get();
	char *newpath;
	int err = subdir_addpath(d, path, &newpath);
	if (!err) {
		err = fuse_fs_setbkuptime(d->next, newpath, bkuptime);
		free(newpath);
	}
	return err;
}
示例#3
0
文件: iconv.c 项目: Abrikatin/fuse
static int iconv_setbkuptime(const char *path, const struct timespec *bkuptime)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_setbkuptime(ic->next, newpath, bkuptime);
		free(newpath);
	}
	return err;
}