> What I'm trying to achieve is writing all files to the ramdisk until it's > full, and writing files that don't fit into the ramdisk to the HDD. ::: > In other words, is there a way to make AuFS create files in the highest > branch while it has enough free space, and only after that use lower > branches?
I think I could understand what you want. But it is very hard (almost impossible) to know whether the "write" will fit in ramdisk or not before the actual write. ENOSPC error will surely happen. You may want aufs to do, - /au = /ram + /hdd - user issues write(2) to /aufs/fileA - fileA exists /ram and aufs writes to /ram/fileA. - /ram becomes full and ENOSPC occurs. - aufs copy-down (or move-down) /ram/fileA to /hdd/fileA and writes the originally requested data to /hdd/fileA. Currently aufs has no such feature. J. R. Okajima ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1