aboutsummaryrefslogtreecommitdiff
path: root/block/vvfat.c
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2017-05-22 23:11:56 +0200
committerKevin Wolf <kwolf@redhat.com>2017-07-10 13:18:05 +0200
commitad05b31857b8f21c5ea89ba3e470a58c288f1c36 (patch)
treed42906667185acfe749da5d13648068f71293d8f /block/vvfat.c
parent5f5b29dfce9676d9d013376800c65af773d8bd9c (diff)
downloadqemu-ad05b31857b8f21c5ea89ba3e470a58c288f1c36.zip
qemu-ad05b31857b8f21c5ea89ba3e470a58c288f1c36.tar.gz
qemu-ad05b31857b8f21c5ea89ba3e470a58c288f1c36.tar.bz2
vvfat: rename useless enumeration values
MODE_FAKED and MODE_RENAMED are not and were never used. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/vvfat.c')
-rw-r--r--block/vvfat.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/block/vvfat.c b/block/vvfat.c
index 07a111f..18d9559 100644
--- a/block/vvfat.c
+++ b/block/vvfat.c
@@ -286,8 +286,7 @@ typedef struct mapping_t {
union {
/* offset is
* - the offset in the file (in clusters) for a file, or
- * - the next cluster of the directory for a directory, and
- * - the address of the buffer for a faked entry
+ * - the next cluster of the directory for a directory
*/
struct {
uint32_t offset;
@@ -300,9 +299,13 @@ typedef struct mapping_t {
/* path contains the full path, i.e. it always starts with s->path */
char* path;
- enum { MODE_UNDEFINED = 0, MODE_NORMAL = 1, MODE_MODIFIED = 2,
- MODE_DIRECTORY = 4, MODE_FAKED = 8,
- MODE_DELETED = 16, MODE_RENAMED = 32 } mode;
+ enum {
+ MODE_UNDEFINED = 0,
+ MODE_NORMAL = 1,
+ MODE_MODIFIED = 2,
+ MODE_DIRECTORY = 4,
+ MODE_DELETED = 8,
+ } mode;
int read_only;
} mapping_t;