NWSetVolumeFlags

Sets the specified flags on a volume

Local Servers:blocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM
Service:File System

Syntax

   #include <nwfileio.h>  
    
   LONG NWSetVolumeFlags  (  
      LONG   volume,  
      LONG   flags);
   

Parameters

volume

(IN) Specifies the volume to set attributes on.

flags

(IN) Specifies the flags to set for the specified volume.

Return Values

0

Success

-1

Failure

Remarks

flags can have the following values:

0x02

SUB_ALLOCATION_FLAG: If set, sub allocation units are valid on this volume.

0x04

FILE_COMPRESSION_FLAGS: If set, file compression is enabled on this volume.

0x08

DATA_MIGRATION_FLAG: If set, data migration is allowed on this volume.

0x40

VOLUME_IMMEDIATE_PURGE_FLAG: If set, this volume's deleted files will be purged immediately.

See Also

NWGetVolumeFlags