No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 2200 V3 and 2600 V3 Storage System V300R005 Command Reference

"Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands."
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
change share cifs

change share cifs

Function

The change share cifs command is used to modify CIFS share configurations.

Format

change share cifs share_id=? { oplock_enabled=? | continue_available_enabled=? | notify_enabled=? | smb2_ca_enabled=? } *

Parameters

Parameter

Description

Value

share_id=? Indicates the share ID.

The value is an integer ranging from 0 to 18,446,744,073,709,551,615.

oplock_enabled=? Indicates the switch of the opportunistic locking. By using opportunistic locking, a client can lock a file. A server can cancel the locking.

The value can be "yes" or "no", where

  • yes: to enable the oplock function.
  • no: to disable the oplock function.
notify_enabled=? Indicates the switch of the notify function.

The value can be "yes" or "no", where

  • yes: to enable the notify function.
  • no: to disable the notify function.
continue_available_enabled=? Indicates the switch of the continue available function.

The value can be "yes" or "no", where

  • yes: to enable the continue available function.
  • no: to disable the continue available function.
smb2_ca_enabled=? Indicates the switch of the smb2 continus avaliable function.

The value can be "yes" or "no" , where

  • yes: to enable the smb2 continus available function.
  • no: to disable the smb2 continus available function.

Level

Administrator

Usage Guidelines

Choose at least one of the following four parameters: oplock_enabled , notify_enabled continue_available_enable and smb2_ca_enabled.

This command does not support OceanStor 2200 V3 storage system.

Example

  • To enable the opportunistic locking function, run the following command:

    admin:/>change share cifs share_id=8 oplock_enabled=yes 
    Command executed successfully.
  • To enable the notify function, run the following command:

    admin:/>change share cifs share_id=8 notify_enabled=yes
    Command executed successfully.
  • To enable the continue available function, run the following command:

    admin:/>change share cifs share_id=8 continue_available_enabled=yes
    Command executed successfully.
  • To enable the smb2 continus avaliable function, run the following command.

    admin:/>change share cifs share_id=8 smb2_ca_enabled=yes
    Command executed successfully.
  • To view the modification results, run the following command.

     
    admin:/>show share cifs share_id=8
     
    Share ID : 8
    Name : cifs0
    File System ID : 0
    Description :
    Local Path : /fs001/
    Oplock Enabled : Enable
    Notify Enabled : Enable
    Continue Available Enabled : Disable
    Smb2_ca_enabled : Enable
     

System Response

None

Translation
Download
Updated: 2019-04-22

Document ID: EDOC1000106139

Views: 235801

Downloads: 168

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next