JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Sun QFS File System 5.3 Configuration and Administration Guide     Sun QFS and Sun Storage Archive Manager 5.3 Information Library
search filter icon
search icon

Document Information

Preface

1.  File System Overview

2.  About the Master Configuration File

3.  mcf File Examples

4.  Configuring the File System

5.  Configuring a Shared File System

6.  Administering File System Quotas

7.  Advanced File System Topics

8.  SMB Service in SAM-QFS

Getting Started With the Oracle Solaris SMB Service

share Command

Case-Insensitivity Support

DOS Attributes Support

Using ACLs to Protect Sun QFS and SAM-QFS Files

Mapping User and Group Identities in SAM-QFS

Creating and Converting File Systems to Support NFSv4 ACLs

Syntax Descriptions for Setting ACLs

ACL Inheritance

9.  Configuring WORM-FS File Systems

10.  Tunable Parameters

11.  Using QFS File Systems with SANergy (SAN-QFS)

12.  Mount Options in a Shared File System

13.  Using the samu Operator Utility

DOS Attributes Support

In order to completely support SMB service, Sun QFS has to support certain file attributes. These attributes can be set and cleared by the owner of a file or a user or a group that has been granted the permission using the write_attributes ACE permission.

The following table lists the file attributes that are supported in the Sun OFS file system.

Table 8-1 File Attributes Supported in the Sun QFS File System

Attribute
Description
appendonly
Marks a file so that is can only be appended to.
archive
Marks files for archiving. It is set when a file is created or modified. This attribute is currently not used by SAM-QFS.
createtime
Timestamp when a file is created. The owner of the file or any user with write_attributes permission can modify this value to any time.
hidden
Marks a file as hidden. The file appears transparent in a Windows system.
immutable
Prevents the content of a file from being modified or deleted. Also, prevents all metadata changes except for access time updates. When this attribute is placed on a directory, it will prevent the deletion and creation of files and directories. All attempts to modify the content of a file or directory marked as immutable will fail with an error. All attempts to modify any attributes (with the exception of access time) of a file marked as immutable will fail with an error.
nodump
Oracle Solaris systems have no special semantics for this attribute.
nounlink
Prevents a file from being deleted. On a directory, the attribute will also prevent any changes to the contents of the directory. That is, no files within the directory can be removed or renamed. All attempts to unlink or rename files and directories that are marked as nounlink will return an error.
offline
Indicates whether a file is offline. If a file is released in the SAM-QFS file system, then the offline attribute is set. Windows systems will not attempt to preview files that have this attribute set.
readonly
Marks a file as readonly. Once a file is marked as readonly, the content data of the file cannot be modified. Other metadata for the file can still be modified. This attribute can be set on directories but it has no semantic meaning. All attempts to modify the content of the file will return an error.
sparse
Available to users and applications to indicate that a file can be interpreted as sparse. It does not indicate whether the file is actually sparse and it has no special semantics on the Oracle Solaris OS. The sparse attribute will be cleared if the file is truncated to zero length.
system
Marker for special files on Windows systems.

Example 8-1 Viewing System Attributes Using the ls Command

You can use the ls command to view the attributes of a SAM-QFS file. For example:

# ls -/v file1
-rw-r--r--   1 root root  40560 Jun 28 11:54 file1 
{archive,nohidden,noreadonly,nosystem,noappendonly,
nonodump,noimmutable,nonounlink,nooffline,sparse}

For more information about the ls command, see the ls(1) man page.

Example 8-2 Modifying System Attributes Using the chmod Command

You can use the chmod command to modify the system attributes of a SAM-QFS file. For example, to modify a file to be read-only:

# chmod S+vreadonly file2
# ls -/v file2
-rw-r--r--   1 root     root          12 Jun 28 11:56 file2
{noarchive,nohidden,readonly,nosystem,noappendonly,
nonodump,noimmutable,nonounlink,offline,nosparse}

For more information about the chmod command, see the chmod(1) man page.