Opened 11 years ago

Last modified 5 years ago

#384 assigned enhancement

Check if Netdrive drives support EAs add driveflag for this

Reported by: Gregg Young Owned by: Gregg Young
Priority: minor Milestone: Release_3.25
Component: fm/2 base Version: 3.16
Keywords: Cc:

Description


Change History (7)

comment:1 Changed 11 years ago by Gregg Young

Owner: set to Gregg Young
Status: newassigned

comment:2 Changed 11 years ago by Gregg Young

Hi,

sorry for the late reply.

The type of plugin is rather easy to query. You can use NdIoctl? API from ndcalls.dll:

char *data = nd_malloc (65000); ULONG ulDataLen = 0;

int rc = NdIoctl? (ND_IOCTL_QUERYPATHINFO,

"S:
mountpoint
dir", /* full path */ data, 65000, &ulDataLen);

if (rc != NO_ERROR) {

/* error */

} else {

ND_DATA_QUERYPATHINFO *ptr = (ND_DATA_QUERYPATHINFO*)data;

switch (ptr->bPathType) {

case ND_PT_MOUNTPOINT: {

/* The path is a mount point. */;

} break;

case ND_PT_INTERNAL: case ND_PT_EXTERNAL: {

/* The path is a directory or a file. */; /* PATHINFO_TYPE(ptr) type of resource */ /* PATHINFO_PLUGIN(ptr) plugin name */ /* PATHINFO_MOUNTPOINT(ptr) mount point path */ /* PATHINFO_RSRCPATH(ptr) path withinmountpoint */

} break;

default: {

/* error */

} break;

}

It is better to load ndcalls.dll dynamically with DosLoadModule? and use DosQueryProcAddr? to get the "NdIoctl?" pointer.

The is no API to query EA support. NetDrive? always report that EA are supported to make WPS work. You can use the plugin type to decide whether EAs are supported. Currently only Local and Samba plugins support EAs.

Best regards, Vitali.


From: "Gregg Young" <ygk@…> To: "Netdrive" <netdrive@…> Date: Sun, 19 Jul 2009 12:46:41 -0600 (MDT) Subject: API to query EA support and plugin type

Hi

I am making some changes to FM/2 and it would be helpful if I had a way to query the plugin type and status of EA support for netdrive drives. Is there a good way to do this. Thanks

Gregg

comment:3 Changed 11 years ago by Gregg Young

ndfs.h is in FM2_Workspace

comment:4 Changed 6 years ago by Steven Levine

Milestone: Release_3.23

comment:5 Changed 5 years ago by Gregg Young

Milestone: Release_3.23Release_3.24

Ticket retargeted after milestone closed

comment:6 Changed 5 years ago by Gregg Young

Summary: Check if drives support EAs add driveflag for thisCheck if Netdrive drives support EAs add driveflag for this

comment:7 Changed 5 years ago by Gregg Young

Milestone: Release_3.24Release_3.25
Note: See TracTickets for help on using tickets.