+ ##if there is no more space in the emfile then this is where it will show up.
+ freespace=ctypes.c_longlong
+ freespace.value=yaffs_freespace(yaffs_root_dir_path)
+ print "yaffs free space:", freespace.value
+
+ if freespace.value==0:
+ #print "yaffs free space:", yaffs_freespace(yaffs_root_dir_path)
+ print "yaffs is out of space exiting program"
+ #sys.exit()