Add possibility to free vfs now.

This commit is contained in:
Pavel Machek 1999-11-11 14:35:40 +00:00
parent 1139602a9b
commit b5c8119459
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
1999-11-11 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* main.c, cmd.c: add possibility to free VFS now
1999-11-03 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* layout.c: always display status line. It contains vital

View File

@ -715,6 +715,11 @@ void quick_chdir_cmd (void)
}
#ifdef USE_VFS
void free_vfs_now (void)
{
vfs_expire (1);
}
void reselect_vfs (void)
{
char *target;

View File

@ -446,7 +446,10 @@ update_one_panel_widget (WPanel *panel, int force_update, char *current_file)
if (force_update & UP_RELOAD){
panel->is_panelized = 0;
#if 1
ftpfs_flushdir ();
#endif
#warning Should supply flushdir method
memset (&(panel->dir_stat), 0, sizeof (panel->dir_stat));
}
@ -1328,6 +1331,7 @@ static menu_entry CmdMenu [] = {
{ ' ', N_("di&Rectory hotlist C-\\"), 'R', quick_chdir_cmd },
#ifdef USE_VFS
{ ' ', N_("&Active VFS list C-x a"), 'A', reselect_vfs },
{ ' ', N_("Fr&ee VFSs now"), 'E', free_vfs_now },
#endif
#ifdef WITH_BACKGROUND
{ ' ', N_("&Background jobs C-x j"), 'B', jobs_cmd },