rem: printf("error writing attribute: %s\n", strerror(err));
add: printf("error writing attribute: %s\n", fs_strerror(err));
context: do_attrtest(int argc, char **argv){	int iterations = 10240;	int maxSize = 1024;	char *buffer;	char name[2];	int i;    if (cur_fd < 0) {        printf("no file open! (open or create one with open or make)\n");        return EINVAL;    }    if (argc > 1 && isdigit(*argv[1]))    	iterations = atol(argv[1]);    if (argc > 2 && isdigit(*argv[2]))    	maxSize = atol(argv[2]);    if ((argc > 1 && !isdigit(*argv[1])) || (argc > 2 && !isdigit(*argv[2]))) {    	printf("usage: attrs [number of iterations] [max attr size]\n");    	return EINVAL;    }	buffer = (char*)malloc(1024);	for (i = 0; i < 1024; i++)		buffer[i] = i;	name[1] = '\0';	printf("%d iterations...\n", iterations);	for (i = 0; i < iterations; i++) {		int length = rand() % maxSize;		int err;		name[0] = rand() % 26 + 'a';		err = sys_write_attr(1, cur_fd, name, 'CSTR', buffer, length, 0);		if (err < length)			printf("error writing attribute: %s\n", strerror(err));	}	free(buffer);	return 0;}