예제 #1
0
파일: volicon.c 프로젝트: matthewdooler/FDT
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;
}