summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Podgorny <radek@podgorny.cz>2012-09-11 00:01:44 +0200
committerRadek Podgorny <radek@podgorny.cz>2012-09-11 00:01:44 +0200
commitf89b7d1a403e7dd4d9da1707e489964f89af675e (patch)
treeb2eef50180d3fcde9f6a106bb5fbfa9bbcbacafe
parent6846cf63b0c814bd9bcea77290ed1975804050d1 (diff)
parent6da662c12ffcff6c1b5db440349ccb2b46c0af34 (diff)
downloadunionfs-fuse-f89b7d1a403e7dd4d9da1707e489964f89af675e.tar.gz
merge
-rw-r--r--src/unionfs.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/unionfs.c b/src/unionfs.c
index 26e3b98..186cd53 100644
--- a/src/unionfs.c
+++ b/src/unionfs.c
@@ -53,7 +53,6 @@
#include "string.h"
#include "usyslog.h"
-
static struct fuse_opt unionfs_opts[] = {
FUSE_OPT_KEY("chroot=%s,", KEY_CHROOT),
FUSE_OPT_KEY("cow", KEY_COW),
@@ -534,7 +533,6 @@ static int statvfs_local(const char *path, struct statvfs *stbuf) {
stbuf->f_files = stfs.f_files;
stbuf->f_ffree = stfs.f_ffree;
stbuf->f_favail = stfs.f_ffree; /* nobody knows */
- stbuf->f_fsid = stfs.f_fsid.__val[0];
/* We don't worry about flags, exactly because this would
* require reading /proc/mounts, and avoiding that and the
@@ -554,9 +552,8 @@ static int statvfs_local(const char *path, struct statvfs *stbuf) {
/**
* statvs implementation
- * TODO: fsid: It would be optimal, if we would store a once generated random
- * fsid. But what if the same branch with the fsid used for different
- * unions? Is the present way ok for most cases?
+ *
+ * Note: We do not set the fsid, as fuse ignores it anyway.
*/
static int unionfs_statfs(const char *path, struct statvfs *stbuf) {
(void)path;
@@ -615,10 +612,6 @@ static int unionfs_statfs(const char *path, struct statvfs *stbuf) {
if (!(stb.f_flag & ST_NOSUID)) stbuf->f_flag &= ~ST_NOSUID;
if (stb.f_namemax < stbuf->f_namemax) stbuf->f_namemax = stb.f_namemax;
-
- // we don't care about overflows, the fsid just should be different
- // from other fsids
- stbuf->f_fsid += stb.f_fsid;
}
}