VFS: cleaner code for refresh check on vfs operation without current directory

Authored by Alexander Bikadorov <alex.bikadorov@kdemail.net> on Jan 3 2017, 7:17 PM.

Description

VFS: cleaner code for refresh check on vfs operation without current directory

Summary:
Rework of filesystem info and space update after refresh and file operation. Part of cleaning VFS
BUG: 374404

VFS: cleaning inheritance issues with VFS classes. Part of cleaning VFS


The bug report https://bugs.kde.org/show_bug.cgi?id=374404 made me notice some flaws with the current file space refresh. I couldn't help myself and changed most of the code.

Behaviour changes:

  • free space update should work now flawless. I.e. if changes to the filesystem space are made inside Krusader all panels (and tabs) showing the same filesystem are updated
  • no special label for /etc and /proc anymore. I feel its fine to show "0 of of 0 bytes" here. And /sys was missing anyway.
  • "Virtual Filesystem" is shown now if "virt_fs" is used (and no search meta information is present).

Test Plan:
Checked panels filesystem stats update in both panels (+tabs) when

  • copying file on local fs with {F5/copy, drag&drop, copy/paste}
  • deleting file on local fs
  • creating virtual directory from search result ("feed to listbox")
  • changing directory/refreshing to different fs

Reviewers: Krusader, martinkostolny, asensi

Reviewed By: Krusader, martinkostolny, asensi

Subscribers: asensi, martinkostolny

Differential Revision: https://phabricator.kde.org/D3938

Merged Changes

CommitAuthorDetailsCommitted
14d7c25fc070D3938Alexander Bikadorov
VFS: cleaner code for refresh check on vfs operation without current directory 
Jan 3 2017
fe59dc1e9abbD3938Alexander Bikadorov
Rework of filesystem info and space update after refresh and file operation. 
Jan 3 2017
6a03c8c03431D3938Alexander Bikadorov
VFS: cleaner code for refresh check on vfs operation without current directory 
Jan 3 2017