John Ettedgui posted on Mon, 03 Aug 2015 21:58:09 -0700 as excerpted: > Current mount options in fstab: > defaults,noatime,compress=lzo,space_cache,autodefrag 0 0 Just a few hints for a tidier fstab. Feel free to ignore if you don't care, as the practical difference in mount options is nil. =:^) 1) You should be able to delete that space_cache option. Btrfs has defaulted to space_cache since at least 3.0 I think and probably way before that, and even when it wasn't the absolute default, you only had to enable it once, to have it on after that unless you turned it off again. I know I've never specifically added space_cache to my mount options, yet /proc/mounts always has said it was there, and I've been on btrfs solidly since kernel 3.5 era, with tests before that (tho I do think I had to turn it on once, after which it stayed on for that filesystem, back in my earliest tests, which would have been late kernel 2.6 era). 2) Similarly you can omit defaults, since that's only a field placeholder in case you don't have any other options in that field. As soon as you have your first non-default option holding the place of that field, you can omit defaults, since that's exactly what they are, defaults, regardless of whether the kernel is told to use them or not. So all you really need there is noatime,compress=lzo,autodefrag. FWIW, that's what I use as my normal mount options, too. 3) Actually, assuming you're running a half-way modern util-linux (which you should be if you're not on an old enterprise distro), you can omit the trailing 0 0 as well, since those fields are now optional and default to 0 if they aren't there. See the fstab(5) manpage for more on the last two. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- 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
