From f16bc71efb2dcfd1d7b954fff98fc78c2eef630d Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Sat, 23 Jul 2011 12:13:51 +0300 Subject: [PATCH] Ticket #2695: The vfs_path_t expansion to 'src/' subdirectory Added vfs_subclass_flags_t type Signed-off-by: Slava Zanko --- lib/vfs/xdirentry.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/vfs/xdirentry.h b/lib/vfs/xdirentry.h index 910536dea..acc8b6d2a 100644 --- a/lib/vfs/xdirentry.h +++ b/lib/vfs/xdirentry.h @@ -32,10 +32,6 @@ #define FL_FOLLOW 1 #define FL_DIR 4 -/* For vfs_s_subclass->flags */ -#define VFS_S_REMOTE 1 -#define VFS_S_READONLY 2 - #define ERRNOR(a, b) do { me->verrno = a; return b; } while (0) #define MEDATA ((struct vfs_s_subclass *) me->data) @@ -52,6 +48,14 @@ /*** enums ***************************************************************************************/ +/* For vfs_s_subclass->flags */ +typedef enum +{ + VFS_S_REMOTE = 1L << 0, + VFS_S_READONLY = 1L << 1, + VFS_S_USETMP = 1L << 2, +} vfs_subclass_flags_t; + /*** structures declarations (and typedefs of structures)*****************************************/ /* Single connection or archive */ @@ -115,7 +119,7 @@ struct vfs_s_subclass { GList *supers; int inode_counter; - int flags; /* whether the subclass is remove, read-only etc */ + vfs_subclass_flags_t flags; /* whether the subclass is remove, read-only etc */ dev_t rdev; FILE *logfile; int flush; /* if set to 1, invalidate directory cache */ -- 2.11.4.GIT