diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-01-17 01:14:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-17 02:15:30 -0500 |
commit | 9ba7cbba100bdaca7316d71d6c6298e61191f8b2 (patch) | |
tree | 999e964132731388ff312df78623020600fe32e2 /fs/fuse/fuse_i.h | |
parent | d77a1d5b611742c538364f041ff4610d27b14fe7 (diff) |
[PATCH] fuse: extend semantics of connected flag
The ->connected flag for a fuse_conn object previously only indicated whether
the device file for this connection is currently open or not.
Change it's meaning so that it indicates whether the connection is active or
not: now either umount or device release will clear the flag.
The separate ->mounted flag is still needed for handling background requests.
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 5742253164d9..e824a09d3151 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h | |||
@@ -249,7 +249,8 @@ struct fuse_conn { | |||
249 | /** Mount is active */ | 249 | /** Mount is active */ |
250 | unsigned mounted : 1; | 250 | unsigned mounted : 1; |
251 | 251 | ||
252 | /** Connection established */ | 252 | /** Connection established, cleared on umount and device |
253 | release */ | ||
253 | unsigned connected : 1; | 254 | unsigned connected : 1; |
254 | 255 | ||
255 | /** Connection failed (version mismatch) */ | 256 | /** Connection failed (version mismatch) */ |