[libvirt] When are volumes 'detected' / refreshed

At what time are volumes currently detected on NetFS? I see there is some sort of storage now going on, since deleting files from NFS doesn't delete them from vol-list directly. (If this is fixed in a recent version... I'm sorry to bother) Stefan

Stefan de Konink wrote:
At what time are volumes currently detected on NetFS? I see there is some sort of storage now going on, since deleting files from NFS doesn't delete them from vol-list directly. (If this is fixed in a recent version... I'm sorry to bother)
I haven't scoured the code, so I'm not sure if a pool will ever auto update its vol list aside from the initial lookup (I'm guessing not), but you can trigger this with the virStoragePoolRefresh function. - Cole

On Sun, Aug 03, 2008 at 03:04:37AM +0200, Stefan de Konink wrote:
At what time are volumes currently detected on NetFS? I see there is some sort of storage now going on, since deleting files from NFS doesn't delete them from vol-list directly. (If this is fixed in a recent version... I'm sorry to bother)
You must ask for a refresh - 'pool-refresh' or the equivalent C API. This is because refreshing is a very expensive operation for some types of storage pool, so we don't do it automatically. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (3)
-
Cole Robinson
-
Daniel P. Berrange
-
Stefan de Konink