Marc MERLIN posted on Sat, 27 Feb 2016 19:09:30 -0800 as excerpted:

[line in fstab]
> LABEL=btrfs_space      /var/local/space btrfs 
> subvol=varlocalspace,defaults,compress=lzo,skip_balance,noatime,noexec 0 0

Nothing to do with your issue at hand, but some potentially useful info, FWIW...

The "defaults" mount option in fstab is just that, the defaults, and
doesn't really apply as an option because they /are/ the defaults.  The
only reason for "defaults" as an explicit option to exist is to hold the
options field in the case of no non-default option being there to hold it,
so once there's _any_ non-default option added, "defaults" can be removed,
as the non-default option is now holding the field and the defaults apply
anyway unless overruled by some other option.

Additionally, with any reasonably modern util-linux, the last two fields,
dump and fsck-passno, both default to 0 if not present, so don't need to
be explicitly included if zero, unless of course you want to as a matter of
style, possibly for consistency with other fstab entries where the fields are
needed, perhaps because fsck-passno isn't zero and you need the dump field
of zero as a field-holder to have the non-zero fsck-passno in the correct
field.

Of course neither the two trailing zero fields nor the defaults mount
option do any harm, and you may simply be including them as a matter of
style.  But because the options field in particular can be rather long, as
yours certainly is, knowing that you can skip "defaults" as a mount option
can be quite a useful hint, if you weren't aware of it before.

So FWIW, YMMV, etc, but I thought it might be worth mentioning, for other
readers for whom it might be new and useful info, even if it's "the way
you like it, ****it!" for you. =:^)

FWIW the fstab (5) manpage is the official documentation for it, but it
says effectively what I said above. =:^)

-- 
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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to