Opened 15 years ago

Last modified 6 months 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.26
Component: fm/2 base Version: 3.16
Keywords: Cc:

Description


Change History (8)

comment:1 by Gregg Young, 15 years ago

Owner: set to Gregg Young
Status: newassigned

comment:2 by Gregg Young, 15 years ago

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 by Gregg Young, 15 years ago

ndfs.h is in FM2_Workspace

comment:4 by Steven Levine, 11 years ago

Milestone: Release_3.23

comment:5 by Gregg Young, 10 years ago

Milestone: Release_3.23Release_3.24

Ticket retargeted after milestone closed

comment:6 by Gregg Young, 9 years ago

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

comment:7 by Gregg Young, 9 years ago

Milestone: Release_3.24Release_3.25

comment:8 by Gregg Young, 6 months ago

Milestone: Release_3.25Release_3.26

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.