Re: Save to use 'clear_cache' in mount -o remount?

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

 



On Sun, Aug 6, 2017 at 8:49 AM, Cloud Admin <admin@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
> is it safe (has it an effect?) to use the 'clear_cache' option in a
> 'mount -o remount'? I recognize messages in my kernel log regarding
> 'BTRFS info (device dm-7): The free space cache file (31215079915520)
> is invalid. skip it'. I would like to fix it and would do it (in best
> case) without rebooting.

It is safe and the cache is immediately rebuilt. You will see
'space_cache,clear_cache' as mount options, which is normal and you
can ignore. I just tried this with a remount and I get the expected
messaging.

[  400.465624] BTRFS info (device sda7): force clearing of disk cache
[  400.465639] BTRFS info (device sda7): disk space caching is enabled




Chris Murphy
--
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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux