Esempio n. 1
0
static int
volicon_setchgtime(const char *path, const struct timespec *chgtime)
{
    ERROR_IF_MAGIC_FILE(path, EPERM);

    return fuse_fs_setchgtime(volicon_get()->next, path, chgtime);
}
Esempio n. 2
0
static int subdir_setchgtime(const char *path, const struct timespec *chgtime)
{
	struct subdir *d = subdir_get();
	char *newpath;
	int err = subdir_addpath(d, path, &newpath);
	if (!err) {
		err = fuse_fs_setchgtime(d->next, newpath, chgtime);
		free(newpath);
	}
	return err;
}
Esempio n. 3
0
static int iconv_setchgtime(const char *path, const struct timespec *chgtime)
{
	struct iconv *ic = iconv_get();
	char *newpath;
	int err = iconv_convpath(ic, path, &newpath, 0);
	if (!err) {
		err = fuse_fs_setchgtime(ic->next, newpath, chgtime);
		free(newpath);
	}
	return err;
}