Load/Unload FSD from win32

HI All

I have a problem with load/unload of my FSD dynamically. It works fine after loading using Service Control manager APIs . createService, openservice and start service. But after unloading the service using StopService & deleteservice, I’m not able to load it again. the device object still exists after unloading also.

Is there any other better way to loda/unload from a Win32 app??,
Please advice / can somebody give a sample code to load/unload FSD properly ?.
Thank you in advance…

Regards
K.Raju

Is it an on-disk FSD or a redirector?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Krishnama Raju”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, June 17, 2004 9:41 PM
Subject: [ntfsd] Load/Unload FSD from win32

> HI All
>
> I have a problem with load/unload of my FSD dynamically. It works fine after
loading using Service Control manager APIs . createService, openservice and
start service. But after unloading the service using StopService &
deleteservice, I’m not able to load it again. the device object still exists
after unloading also.
>
> Is there any other better way to loda/unload from a Win32 app??,
> Please advice / can somebody give a sample code to load/unload FSD properly
?.
> Thank you in advance…
>
> Regards
> K.Raju
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Assuming what you are talking about is a local/remote file system (not a
filter since they can’t be unloaded) the reason you can not reload the
driver is because your current driver hasn’t actually unloaded.

It will not unload until all of the device objects go away. Assuming a
local file system, are all of the volume device objects gone? If not
you need to see if someone has a file open on them or if you have leaked
your own reference to them.

If they are all gone and all you have left is your control device object
does someone still have it open? If not then somewhere you have taken a
reference on your control device object and not released it.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Krishnama Raju
Sent: Thursday, June 17, 2004 10:41 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Load/Unload FSD from win32

HI All

I have a problem with load/unload of my FSD dynamically. It
works fine after loading using Service Control manager APIs .
createService, openservice and start service. But after unloading the
service using StopService & deleteservice, I’m not able to load it
again. the device object still exists after unloading also.

Is there any other better way to loda/unload from a Win32 app??,

Please advice / can somebody give a sample code to load/unload
FSD properly ?.
Thank you in advance…

Regards
K.Raju


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Its a Disk FSD but I really dont’ve a Disk underneath…I’m manipulating all the IOCTLS myself and providing necessary data that is from/to User mode apps.

Thanks in advance …

Regards
K.Raju

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, June 17, 2004 11:12 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Load/Unload FSD from win32

Is it an on-disk FSD or a redirector?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Krishnama Raju”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, June 17, 2004 9:41 PM
Subject: [ntfsd] Load/Unload FSD from win32

> HI All
>
> I have a problem with load/unload of my FSD dynamically. It works fine after
loading using Service Control manager APIs . createService, openservice and
start service. But after unloading the service using StopService &
deleteservice, I’m not able to load it again. the device object still exists
after unloading also.
>
> Is there any other better way to loda/unload from a Win32 app??,
> Please advice / can somebody give a sample code to load/unload FSD properly
?.
> Thank you in advance…
>
> Regards
> K.Raju
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@inquesttechnologies.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Unloading the FSD is a huge task. It requires at least to dismount all
volumes handled by this FSD.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Krishnama Raju”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, June 17, 2004 10:53 PM
Subject: RE: [ntfsd] Load/Unload FSD from win32

> Its a Disk FSD but I really dont’ve a Disk underneath…I’m manipulating all
the IOCTLS myself and providing necessary data that is from/to User mode apps.
>
> Thanks in advance …
>
> Regards
> K.Raju
>
> -----Original Message-----
> From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
> Sent: Thursday, June 17, 2004 11:12 PM
> To: Windows File Systems Devs Interest List
> Subject: Re: [ntfsd] Load/Unload FSD from win32
>
>
> Is it an on-disk FSD or a redirector?
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “Krishnama Raju”
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, June 17, 2004 9:41 PM
> Subject: [ntfsd] Load/Unload FSD from win32
>
>
> > HI All
> >
> > I have a problem with load/unload of my FSD dynamically. It works fine
after
> loading using Service Control manager APIs . createService, openservice and
> start service. But after unloading the service using StopService &
> deleteservice, I’m not able to load it again. the device object still exists
> after unloading also.
> >
> > Is there any other better way to loda/unload from a Win32 app??,
> > Please advice / can somebody give a sample code to load/unload FSD properly
> ?.
> > Thank you in advance…
> >
> > Regards
> > K.Raju
> >
> > —
> > Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@inquesttechnologies.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Thank you for your reply Maxim,S…

But I’m mounting only one volume and I’m unmounting it with DeviceIoctl thru Win32.

Regards
K.Raju

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, June 18, 2004 12:32 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Load/Unload FSD from win32

Unloading the FSD is a huge task. It requires at least to dismount all
volumes handled by this FSD.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Krishnama Raju”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, June 17, 2004 10:53 PM
Subject: RE: [ntfsd] Load/Unload FSD from win32

> Its a Disk FSD but I really dont’ve a Disk underneath…I’m manipulating all
the IOCTLS myself and providing necessary data that is from/to User mode apps.
>
> Thanks in advance …
>
> Regards
> K.Raju
>
> -----Original Message-----
> From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
> Sent: Thursday, June 17, 2004 11:12 PM
> To: Windows File Systems Devs Interest List
> Subject: Re: [ntfsd] Load/Unload FSD from win32
>
>
> Is it an on-disk FSD or a redirector?
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “Krishnama Raju”
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, June 17, 2004 9:41 PM
> Subject: [ntfsd] Load/Unload FSD from win32
>
>
> > HI All
> >
> > I have a problem with load/unload of my FSD dynamically. It works fine
after
> loading using Service Control manager APIs . createService, openservice and
> start service. But after unloading the service using StopService &
> deleteservice, I’m not able to load it again. the device object still exists
> after unloading also.
> >
> > Is there any other better way to loda/unload from a Win32 app??,
> > Please advice / can somebody give a sample code to load/unload FSD properly
> ?.
> > Thank you in advance…
> >
> > Regards
> > K.Raju
> >
> > —
> > Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@inquesttechnologies.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@inquesttechnologies.com
To unsubscribe send a blank email to xxxxx@lists.osr.com