EldoS | Feel safer!

Software components for data protection, secure storage and transfer

When would installing/(uninstalling) CBFS require a reboot

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#5325
Posted: 03/09/2008 21:58:15
by Vijay Mani (Standard support level)
Joined: 03/09/2008
Posts: 29

Hi,
We are currently using CBFS. We would like to know what machine configurations could potentially require a reboot after installing cbfs.sys.

Thanks,
Vijay.
#5326
Posted: 03/10/2008 01:43:05
by Volodymyr Zinin (EldoS Corp.)

Hello,

If the driver is installed for the first time then a reboot is not needed. But if a new version of the driver is installed and the existing one is being used at this time (for example some program has not closed yet a handle to a file from some CallbackFS storage, even if the storage has been closed already) then a reboot is needed.
#8423
Posted: 12/09/2008 16:47:16
by Vijay Mani (Standard support level)
Joined: 03/09/2008
Posts: 29

Hey Vladimir,
Is there a way to ensure that there no open file handles and that the driver is not in use?

Currenly we call unmountMedia(1) which according the documentation should "When ForceUnmount is true, all all open files are forcefully closed." but when we install the new driver it requires a reboot ( and this should only happen if the driver is in use).

During testing, between mounting the drive with the old driver, and unmounting it, I ensured that there were no open(or create) calls which suggest that there shouldn't any open handles.
But after this, when I install the new driver rebootNeeded is still set to true.

Is there a way to avoid this reboot or ensure that the driver is not in use?

( Note: In our installer, if we detect that the versions of the drivers don't match we basically uninstall the old driver and install the new one)

(Note 2: In the cases where we don't mount at all after a reboot(with the old driver installed) and then install the new driver, a reboot is not required).

Thanks,
Vijay.
#8427
Posted: 12/10/2008 01:41:58
by Volodymyr Zinin (EldoS Corp.)

Hi Vijay,

Unfortunately it isn't possible to avoid the reboot. Such information is returned from the system calls that our install/uninstall functions are called.

#8439
Posted: 12/10/2008 15:27:14
by Vijay Mani (Standard support level)
Joined: 03/09/2008
Posts: 29

Thanks for the answer.

Okay that is a little surprising that even after unmounting, with no handles open the driver is still considered being in use.

Seems like the solution for us is to install the driver upon reboot, which brings me to a related question.Can I make any assumptions, if there are no breaking api changes, that our dll statically linked against the cbfs.lib from a later version will against an older driver .sys file?
#8440
Posted: 12/10/2008 15:27:53
by Vijay Mani (Standard support level)
Joined: 03/09/2008
Posts: 29

and is there going to be any support to install the driver upon reboot?
#8445
Posted: 12/11/2008 00:38:52
by Eugene Mayevski (EldoS Corp.)

If the call to install returns RebootNeeded set to true, this means that the driver will be installed, but you need to reboot the system in order to be able to activate and use it.


Sincerely yours
Eugene Mayevski
#8453
Posted: 12/11/2008 13:18:41
by Vijay Mani (Standard support level)
Joined: 03/09/2008
Posts: 29

Yes. But it means that after the install, before the reboot, the driver will not work.

At least that's the behavior we see. Is that to be expected?

On a related note, Can we make any assumptions about cbfs.lib that we link against? i.e if there are no breaking api changes then is it backwards compatible with the earlier versions of the driver?
#8454
Posted: 12/11/2008 13:36:48
by Eugene Mayevski (EldoS Corp.)

Quote
Vijay Mani wrote:
Yes. But it means that after the install, before the reboot, the driver will not work.

At least that's the behavior we see. Is that to be expected?


yes, exactly. This is the same as you can see with many other driver installations or Windows Update installations.

Quote
Vijay Mani wrote:
On a related note, Can we make any assumptions about cbfs.lib that we link against? i.e if there are no breaking api changes then is it backwards compatible with the earlier versions of the driver?


With CBFS 2 there are no and will be no breaking changes. As for CBFS 3, this question is not yet figured out. Most likely, if the version 3 API encounters version 2 driver, the API will report that the driver must be updated, and will refuse to work. At least this is the most obvious solution. On the other hand, the new driver will most likely remain to work with version 2 APIs.


Sincerely yours
Eugene Mayevski
#11527
Posted: 10/30/2009 19:00:08
by Ian Colomby (Priority Standard support level)
Joined: 11/14/2008
Posts: 25

I have question related to this. If our uninstaller uninstalls the driver and helper DLLs and a reboot is required, can we first run our update installer to install a new or same version of driver and helper DLLs and then reboot after the instalr, or must we perform the reboot in between. We are currently using v2.5.x of CBFS. Will the same hold true when we need to upgrade to future releases of the CBFS?

Thanks, Ian.
Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.

Reply

Statistics

Topic viewed 5608 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!