Hello, i suggest temporary solution to use swap file under btrfs. I test it, and it work good. I invent simple the way, how create and using swap file, just see following sh code: swapfile=$(losetup -f) #free loop device truncate -s 8G /swap #create 8G sparse swap file losetup $swapfile /swap #mount file to loop mkswap $swapfile swapon $swapfile i just adding this to rc.local and this work good. May be, add it to btrfs Wiki as temporary solution to using swap file? Timofey 2013/10/21 Тимофей Титовец <nefelim4ag@xxxxxxxxx>: > Hello list, i know what btrfs don't support swap files. > I read arch wiki and when i reading about systemd addon for auto > create swapfile on btrfs, i invent the way, how create and using swap > file, just see following sh code: > > swapfile=$(losetup -f) #free loop device > truncate -s 8G /swap #create 8G sparse swap file > losetup $swapfile /swap #mount file to loop > mkswap $swapfile > swapon $swapfile > > i just adding this to rc.local and this just work. > May be, add it to Wiki as temporary solution to using swap file? > (sorry for my bad english) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
