Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tunefs throws mount error



ci4ic4%gmail.com@localhost (Chavdar Ivanov) writes:

># tunefs -o time /dev/rdk5
>tunefs: tuning /dev/rdk5
>tunefs: optimization preference remains unchanged as time
>tunefs: mount of /dev/dk1 on / updated   <======

If the device is "mounted", tunefs triggers a mount -u to push
changes into the kernel.

The check is done by calling fstatvfs(), and if successful the
update is done on f_mntonname.

That's a recent change (2020-04-09) and at least the check is bogus
because fstatvfs() also succeeds when the device isn't mounted (and
returns the filesystem where /dev lives, usually the root filesystem).

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index