~martanne/ciopfs

1b5ce871fc3853a692b5d79c9955d1dff383bbbb — Marc Andre Tanner 8 years ago 15058fe master
Print a warning if the underlying filesystem doesnn't support xattrs

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
1 files changed, 5 insertions(+), 0 deletions(-)

M ciopfs.c
M ciopfs.c => ciopfs.c +5 -0
@@ 887,6 887,11 @@ static void *ciopfs_init(struct fuse_conn_info *conn)
		log_print("init: %s\n", strerror(errno));
		exit(1);
	}

	if (lsetxattr(".", "user.ciopfs", VERSION, sizeof(VERSION) -1, 0) == -1 && errno == ENOTSUP)
		log_print("warning underlying filesystem does not support extended attributes, "
		          "converting all filenames to lower case\n");

	return NULL;
}