EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Volume Name for Filter Manager

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#26235
Posted: 08/27/2013 10:06:29
by Kuniyasu Suzaki (Basic support level)
Joined: 08/27/2013
Posts: 4

I would like to get a volume name for filter manager, but the "fltmc instances" command does not show anything about CBFS. Although "fltmc volumes" command shows a volume name of CBFS as "\Device\00000082".

I would like to get a volume name related to a drive name, which is shown by "fltmc instances" command.
Please tell me, if you has any advises to get a volume name for filter manager.
#26237
Posted: 08/27/2013 10:18:51
by Volodymyr Zinin (EldoS Corp.)

I suppose this is because non-PnP virtual disks are used. In the case of PnP disks (see the CallbackFileSystem.StorageType property, stDiskPnP) they should be reported "correctly".
#26239
Posted: 08/27/2013 19:47:44
by Kuniyasu Suzaki (Basic support level)
Joined: 08/27/2013
Posts: 4

I add CallbackFileSystem::StorageType as "stDiskPnP".

The code is as follows.

Code
CallbackFileSystem x;

// Set Callbacks,
x.SetCaseSensitiveFileNames(TRUE);
x.SetStorageType(CallbackFileSystem::stDiskPnP); // Added

x.SetRegistrationKey(RegKey);
CallbackFileSystem::Initialize(guid);
x.CreateStorage();
x.SetFileSystemName(L"FAT");

x.AddMountPoint(L"R:");
x.MountMedia(0);


"fltmc volumes" command shows that volume name is "\Device\HarddiskVolume8" instead of "\Device\00000082", but "fltmc instances" command does not show anything about CBFS.
#26242
Posted: 08/28/2013 04:43:38
by Volodymyr Zinin (EldoS Corp.)

I have tried to reproduce the problem. On Win7 I created two PnP virtual disks - one is removable (CallbackFileSystem.StorageCharacteristics is set to scRemovableMedia) and the other is fixed (StorageCharacteristics = 0). The drive letters for them are "R:" and "W:" (but they were created with the CBFS_SYMLINK_MOUNT_MANAGER flag). See the attached screenshot. Is something wrong with it?
Thanks.


#26243
Posted: 08/28/2013 09:02:52
by Kuniyasu Suzaki (Basic support level)
Joined: 08/27/2013
Posts: 4

Thank for the reproduction.
It looks fine.

Which setting is effective to show the volume name?
StorageCharacteristics? CallbackFileSystem.AddMountingPoint?
Anyway I will try these setting.
#26244
Posted: 08/28/2013 11:38:57
by Volodymyr Zinin (EldoS Corp.)

Code
CallbackFileSystem x;

    CallbackFileSystem::Initialize(guid);

    x.SetRegistrationKey(RegKey);
    
    x.SetStorageType(CallbackFileSystem::stDiskPnP);
    x.SetStorageCharacteristics(CallbackFileSystem::scRemovableMedia); //or 0
    
    x.CreateStorage();
    
    x.AddMountPoint(L"R:", CBFS_SYMLINK_MOUNT_MANAGER, NULL);
    x.MountMedia(0);
#26247
Posted: 08/29/2013 08:46:04
by Kuniyasu Suzaki (Basic support level)
Joined: 08/27/2013
Posts: 4

Thank you.

Using your code, I confirmed volume name by "fltmc instances".
I will insert filter manager to our file system.
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 3789 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!