     write(input+32, 32, fp);
     fp = open("t.txt\0", G_WRITE);
     write(input+32, 32, fp);
+    fp = open("t.txt\0", G_READ);
     read(output, 32, fp);
     gsys(LS_D);
     gsys(LS_S);

		volume[LS_D_OFFSET+i*2] 	= (i & 0x0000FF00) >> 8;
		volume[LS_D_OFFSET+i*2+1] 	= i & 0x000000FF;
	}
}
__device__ void printD() {
	for (int i = 0; i < fileCt; i++) {
		int fid = ((int)(volume[LS_D_OFFSET+i*2]) << 8) | ((int)(volume[LS_D_OFFSET+i*2+1]));
		printf("%s\n", volume[META_OFFSET+fid*META_SIZE]);
	}
}
__device__ void sortS() {
	for (int i = 0; i < fileCt; i++) {
		volume[LS_S_OFFSET+i*2] 	= i & 0xFFFF0000;
		volume[LS_S_OFFSET+i*2+1] 	= i & 0x0000FFFF;
	}
}
__device__ void printS() {
	for (int i = 0; i < fileCt; i++) {
		int fid = ((int)(volume[LS_S_OFFSET+i*2]) << 8) | ((int)(volume[LS_S_OFFSET+i*2+1]));
		printf("%s\n", volume[META_OFFSET+fid*META_SIZE]);
	}
}
__device__ void deleteFileByName(const char *name) {

// ******************************************************************
// FS Operation
__device__ u32 open(const char *name, int type) {
	u32 fid = getFid(name);
    return fid;
}
