#include <glib.h>
#include <string.h>
-#include "bluesky.h"
+#include "bluesky-private.h"
/* Serialization of in-memory filesystem data structures to bytestrings which
* can be written to persistent storage. All data is stored in little-endian
break;
}
+
+ case BLUESKY_SYMLINK:
+ {
+ g_string_append(out, inode->symlink_contents);
+ g_string_append_c(out, '\0');
+ }
+
default:
g_warning("Serialization for inode type %d not implemented!\n",
inode->type);
inode->gid = GUINT32_FROM_LE(raw->gid);
inode->nlink = GUINT32_FROM_LE(raw->nlink);
inode->change_count = GUINT64_FROM_LE(raw->change_count);
+ inode->change_commit = inode->change_count;
inode->atime = GINT64_FROM_LE(raw->atime);
inode->ctime = GINT64_FROM_LE(raw->ctime);
inode->mtime = GINT64_FROM_LE(raw->mtime);
}
break;
}
+
+ case BLUESKY_SYMLINK:
+ {
+ inode->symlink_contents = g_strdup(buf);
+ }
+
default:
g_warning("Deserialization for inode type %d not implemented!\n",
inode->type);