aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--NEWS6
-rw-r--r--example/hello.c14
3 files changed, 12 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index eb701b6..75b1057 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,10 +22,6 @@
2007-02-04 Miklos Szeredi <miklos@szeredi.hu>
- * Released 2.6.3
-
-2007-02-04 Miklos Szeredi <miklos@szeredi.hu>
-
* Compile fuseblk for kernels which don't have an option to turn
off the block layer (CONFIG_BLOCK). Reported by Szakacsits
Szabolcs
diff --git a/NEWS b/NEWS
index 1558c46..794e840 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+What is new in 2.7
+
+ - Stacking support for the high level API
+
+ - Fix problems with mtab writing
+
What is new in 2.6
- Improved read characteristics (asynchronous reads)
diff --git a/example/hello.c b/example/hello.c
index 7a1cdb5..0676a39 100644
--- a/example/hello.c
+++ b/example/hello.c
@@ -24,16 +24,14 @@ static int hello_getattr(const char *path, struct stat *stbuf)
int res = 0;
memset(stbuf, 0, sizeof(struct stat));
- if(strcmp(path, "/") == 0) {
+ if (strcmp(path, "/") == 0) {
stbuf->st_mode = S_IFDIR | 0755;
stbuf->st_nlink = 2;
- }
- else if(strcmp(path, hello_path) == 0) {
+ } else if (strcmp(path, hello_path) == 0) {
stbuf->st_mode = S_IFREG | 0444;
stbuf->st_nlink = 1;
stbuf->st_size = strlen(hello_str);
- }
- else
+ } else
res = -ENOENT;
return res;
@@ -45,7 +43,7 @@ static int hello_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
(void) offset;
(void) fi;
- if(strcmp(path, "/") != 0)
+ if (strcmp(path, "/") != 0)
return -ENOENT;
filler(buf, ".", NULL, 0);
@@ -57,10 +55,10 @@ static int hello_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
static int hello_open(const char *path, struct fuse_file_info *fi)
{
- if(strcmp(path, hello_path) != 0)
+ if (strcmp(path, hello_path) != 0)
return -ENOENT;
- if((fi->flags & 3) != O_RDONLY)
+ if ((fi->flags & 3) != O_RDONLY)
return -EACCES;
return 0;