Index: uspace/srv/fs/exfat/exfat_fat.c
===================================================================
--- uspace/srv/fs/exfat/exfat_fat.c	(revision 7be14db249abeccfaa0b527e6c0e0e8fd4220977)
+++ uspace/srv/fs/exfat/exfat_fat.c	(revision f7d90eb1910055da062ec1fcebd8aa104bf0b10a)
@@ -476,9 +476,42 @@
 }
 
+int bitmap_is_free(exfat_bs_t *bs, devmap_handle_t devmap_handle, 
+    exfat_cluster_t clst)
+{
+	/* TODO */
+	return EOK;
+}
+
+int bitmap_set_clusters(exfat_bs_t *bs, devmap_handle_t devmap_handle, 
+    exfat_cluster_t firstc, exfat_cluster_t count)
+{
+	/* TODO */
+	return EOK;
+}
+
+
 int bitmap_alloc_clusters(exfat_bs_t *bs, devmap_handle_t devmap_handle, 
     exfat_cluster_t *firstc, exfat_cluster_t count)
 {
-	/* TODO */
-	return EOK;
+	exfat_cluster_t startc, endc;
+	startc = EXFAT_CLST_FIRST;
+
+	while (startc < DATA_CNT(bs)+2) {
+		if (bitmap_is_free(bs, devmap_handle, startc) == EOK) {
+			endc = startc+1;
+			while (bitmap_is_free(bs, devmap_handle, endc) == EOK) {
+				if ((endc - startc)+1 == count){
+					*firstc = startc;
+					return bitmap_set_clusters(bs, devmap_handle, startc, count);
+				}
+				else
+					endc++;
+			}
+			startc = endc+1;
+		} 
+		else
+			startc++;
+	}
+	return ENOSPC;
 }
 
Index: uspace/srv/fs/exfat/exfat_fat.h
===================================================================
--- uspace/srv/fs/exfat/exfat_fat.h	(revision 7be14db249abeccfaa0b527e6c0e0e8fd4220977)
+++ uspace/srv/fs/exfat/exfat_fat.h	(revision f7d90eb1910055da062ec1fcebd8aa104bf0b10a)
@@ -84,4 +84,9 @@
 extern int bitmap_replicate_clusters(struct exfat_bs *bs, struct exfat_node *nodep); 
 
+extern int bitmap_is_free(struct exfat_bs *bs, devmap_handle_t devmap_handle, 
+    exfat_cluster_t clst);
+extern int bitmap_set_clusters(struct exfat_bs *bs, devmap_handle_t devmap_handle, 
+    exfat_cluster_t firstc, exfat_cluster_t count);
+
 extern int exfat_append_clusters(struct exfat_bs *, struct exfat_node *,
     exfat_cluster_t, exfat_cluster_t);
Index: uspace/srv/fs/exfat/exfat_ops.c
===================================================================
--- uspace/srv/fs/exfat/exfat_ops.c	(revision 7be14db249abeccfaa0b527e6c0e0e8fd4220977)
+++ uspace/srv/fs/exfat/exfat_ops.c	(revision f7d90eb1910055da062ec1fcebd8aa104bf0b10a)
@@ -673,5 +673,5 @@
 	if (childp->lnkcnt == 1) {
 		/*
-		 * On FAT, we don't support multiple hard links.
+		 * We don't support multiple hard links.
 		 */
 		fibril_mutex_unlock(&childp->lock);
