Removed useless comments from main.c.
This commit is contained in:
parent
8fcfebe3f9
commit
ff6a8713d3
@ -25,25 +25,6 @@ static int icfs_getattr(const char *path, struct stat *stbuf,
|
||||
|
||||
int statret = source_stat(path, stbuf);
|
||||
|
||||
//(void)fi;
|
||||
|
||||
/*
|
||||
int res = 0;
|
||||
|
||||
memset(stbuf, 0, sizeof(struct stat));
|
||||
if (strcmp(path, "/") == 0) {
|
||||
stbuf->st_mode = S_IFDIR | 0755;
|
||||
stbuf->st_nlink = 2;
|
||||
} else if (strcmp(path + 1, options.filename) == 0) {
|
||||
stbuf->st_mode = S_IFREG | 0444;
|
||||
stbuf->st_nlink = 1;
|
||||
stbuf->st_size = strlen(options.contents);
|
||||
} else
|
||||
res = -ENOENT;
|
||||
|
||||
*/
|
||||
// return res;
|
||||
|
||||
return statret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user