From sacadmin Tue Jul 31 15:51:14 2007
Received: from sac.sfbay.sun.com (localhost [127.0.0.1])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id l6VMpEtn011884;
	Tue, 31 Jul 2007 15:51:14 -0700 (PDT)
Received: (from calum@localhost)
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8/Submit) id l6VMpEC9011880;
	Tue, 31 Jul 2007 15:51:14 -0700 (PDT)
Date: Tue, 31 Jul 2007 15:51:14 -0700 (PDT)
From: Calum Mackay <calum@sac.sfbay.sun.com>
Message-Id: <200707312251.l6VMpEC9011880@sac.sfbay.sun.com>
To: PSARC-record@sac.sfbay.sun.com
Subject: nbmand changes for CIFS Service [PSARC/2007/440 FastTrack timeout 08/08/2007]
Status: RO
Content-Length: 566


Template Version: @(#)sac_nextcase 1.64 07/13/07 SMI
This information is Copyright 2007 Sun Microsystems
1. Introduction
    1.1. Project/Component Working Name:
	 nbmand changes for CIFS Service
    1.2. Name of Document Author/Supplier:
	 Author:  Robert Mastors
    1.3  Date of This Document:
	31 July, 2007
4. Technical Description
    See the case directory for more detail

6. Resources and Schedule
    6.4. Steering Committee requested information
   	6.4.1. Consolidation C-team Name:
		ON
    6.5. ARC review type: FastTrack
    6.6. ARC Exposure: open


From Calum.Mackay@sun.com Tue Jul 31 15:56:34 2007
Received: from sunmail4.Singapore.Sun.COM (sunmail4.Singapore.Sun.COM [129.158.71.19])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id l6VMuXtp012661
	for <psarc-ext@sac.sfbay.Sun.COM>; Tue, 31 Jul 2007 15:56:34 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail4.Singapore.Sun.COM (8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id l6VMsGGR012294
	for <@sunmail2sca.sfbay.sun.com:psarc-ext@sun.com>; Wed, 1 Aug 2007 06:54:19 +0800 (SGT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JM20020DFMGPG00@brm-avmta-1.central.sun.com> for psarc-ext@sun.com
 (ORCPT psarc-ext@sun.com); Tue, 31 Jul 2007 16:54:16 -0600 (MDT)
Received: from gmp-ea-fw-1.sun.com ([129.156.42.6])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JM200BA6FMFZHB0@brm-avmta-1.central.sun.com> for
 psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Tue,
 31 Jul 2007 16:54:15 -0600 (MDT)
Received: from d1-emea-09.sun.com ([192.18.2.119])
	by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l6VMsEIU006610	for
 <psarc-ext@sun.com>; Tue, 31 Jul 2007 22:54:14 +0000 (GMT)
Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com
 (Sun Java System Messaging Server 6.2-6.01 (built Apr  3 2006))
 id <0JM200001FK30800@d1-emea-09.sun.com>
 (original mail from Calum.Mackay@Sun.COM)
 for psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Tue,
 31 Jul 2007 23:54:14 +0100 (BST)
Received: from [192.168.254.1] ([62.24.230.83])
 by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr  3
 2006)) with ESMTPSA id <0JM2001ACFMD0G3F@d1-emea-09.sun.com> for
 psarc-ext@sun.com (ORCPT psarc-ext@sun.com); Tue,
 31 Jul 2007 23:54:14 +0100 (BST)
Date: Tue, 31 Jul 2007 23:54:12 +0100
From: Calum Mackay <Calum.Mackay@sun.com>
Subject: 2007/440 nbmand changes for CIFS Service
Sender: Calum.Mackay@sun.com
To: PSARC-ext@sun.com, Bob Mastors <Robert.Mastors@sun.com>
Message-id: <46AFBD94.80104@sun.com>
Organization: Sun Microsystems
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.2.0.264296
User-Agent: Thunderbird 3.0a1pre (X11/2007072607)
Status: RO
Content-Length: 4710

I'm sponsoring the following fast-track for Bob Mastors.

The case seeks Minor binding, and the timer is set to next Wednesday, 
8th August.

cheers,
calum.


INTRODUCTION

   This fast-track proposes a set of changes to support the CIFS Service
   (PSARC 2006/715).  This case builds on and/or modifies the
   following cases:
      PSARC 2000/007 "Locking and File Sharing Support"
      PSARC 2007/268 "Support for CIFS share reservations"

   Summary of changes:

   1) Change nbmand file rename/remove share violation checks.
   2) Add support to VOP_SHRLOCK for meta data access with nbmand.
   3) Do not allow nbmand mount option state to change on remount.

NBMAND FILE REMOVE SHARE VIOLATION CHECKS

   The following rule is currently enforced when a file system is
   mounted with the nbmand mount option.

     A request to remove a file will fail if a different process
     has a mandatory share reservation with an access of read,
     write, or remove.

   The CIFS service requires a change in this behavior to remove the
   exception for the process owning the reservation.
   The new rule is as follows:

     A request to remove a file will fail if there is a
     mandatory share reservation with an access of read,
     write, or remove.

NBMAND FILE RENAME SHARE VIOLATION CHECKS

   The following rule is currently enforced when a file system is
   mounted with the nbmand mount option.

     A request to rename a file will fail if a different process
     has a mandatory share reservation with:
        a) access write or access remove
      or
        b) access read and deny remove

   The CIFS service requires a change in this behavior to remove the
   exception for the process owning the reservation.
   The new rule is as follows:

     A request to rename a file will fail there is a
     mandatory share reservation with:
        a) access write or access remove
      or
        b) access read and deny remove

SUPPORT FOR METADATA SHARE RESERVATION

   The CIFS service requires the ability to set a share
   reservation with an access type that indicates metadata
   access.

   The following f_access value will be added to sys/fcntl.h:

     #define F_MDACC  0x8    /* private flag: Metadata share access */

   This value is only allowed on regular files on a file system
   mounted with the "nbmand" option. VOP_SHRLOCK will fail
   the request and return EINVAL if these conditions are not met.

   Metadata access does not change the behavior of the system.
   Specifically the following statements apply:

     A request for metadata access will not fail because of any
     other share reservations on the file.

     An access type of F_MDACC on a mandatory share reservation
     does not modify the behavior of the existing share reservation
     conflict checks. Or phrased another way, the share reservation
     conflict checks ignore share reservations that only
     have metadata access.

NBMAND MOUNT OPTION CHANGE ON REMOUNT

   The final materials for PSARC case 2000/007 state the
   following with regards to the nbmand mount option:

       The remount option cannot change the nbmand
       disposition of the file system.

   However there is a note in the mail for the case that
   nbmand state would be allowed to be changed via remount.
   The implementation reflects this.
   Background can be found in:
       4413031 Cannot mount root or /usr filesystem with nbmand option

   There are problems associated with allowing
   the nbmand state to be changed on remount.
   It is difficult to define useful behavior for files
   that are open at the time of the change of nbmand state.
   It is expensive to reliably test all of the possible
   edge conditions associated with changing the nbmand state.

   To address these problems the CIFS service requires
   that the state of the nbmand mount option cannot be changed
   via remount. The only supported method for changing the
   nbmand state is via unmount/mount.

   The impact of this change is that / and /usr cannot
   be mounted with nbmand. The mount(1M) man page already
   states that / and /usr should not be mounted with nbmand.
   The man page will be updated to reflect the new behavior.

EXPORTED INTERFACES:

                         |Proposed       |Specified      |
                         |Stability      |in what        |
Interface Name          |Classification |Document?      | Comments
===============================================================================
                         |Consolidation  |This           |
  F_MDACC                |Private        |Document       | Metadata 
share access
                         |               |               |


From Calum.Mackay@sun.com Wed Aug 15 16:34:27 2007
Received: from sunmail5.uk.sun.com (sunmail5.UK.Sun.COM [129.156.85.165])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id l7FNYQoq028552
	for <psarc-ext@sac.sfbay.sun.com>; Wed, 15 Aug 2007 16:34:26 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail5.uk.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id l7FNVvU8015415
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 16 Aug 2007 00:31:58 +0100 (BST)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0JMU002019DAQF00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Wed, 15 Aug 2007 16:31:58 -0700 (PDT)
Received: from gmp-ea-fw-1.sun.com ([129.156.42.5])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0JMU00G2O9D9J750@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Wed,
 15 Aug 2007 16:31:57 -0700 (PDT)
Received: from d1-emea-10.sun.com (d1-emea-10.sun.com [192.18.2.120])
	by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l7FNVu8K017644	for
 <PSARC-ext@sun.com>; Wed, 15 Aug 2007 23:31:56 +0000 (GMT)
Received: from conversion-daemon.d1-emea-10.sun.com by d1-emea-10.sun.com
 (Sun Java System Messaging Server 6.2-6.01 (built Apr  3 2006))
 id <0JMU00C019AI8Y00@d1-emea-10.sun.com>
 (original mail from Calum.Mackay@Sun.COM)
 for PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 16 Aug 2007 00:31:56 +0100 (BST)
Received: from [192.168.254.1] ([62.24.230.83])
 by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr  3
 2006)) with ESMTPSA id <0JMU006TN9CNSNRQ@d1-emea-10.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 16 Aug 2007 00:31:56 +0100 (BST)
Date: Thu, 16 Aug 2007 00:31:32 +0100
From: Calum Mackay <Calum.Mackay@sun.com>
Subject: Re: 2007/440 nbmand changes for CIFS Service
In-reply-to: <46AFBD94.80104@sun.com>
Sender: Calum.Mackay@sun.com
To: Calum Mackay <Calum.Mackay@sun.com>
Cc: PSARC-ext@sun.com, Bob Mastors <Robert.Mastors@sun.com>
Message-id: <46C38CD4.5080705@sun.com>
Organization: Sun Microsystems
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.2.0.264296
References: <46AFBD94.80104@sun.com>
User-Agent: Thunderbird 3.0a1pre (X11/2007081507)
Status: RO
Content-Length: 109

This case timed out last week, Weds 8th, and was marked approved during 
today's PSARC meeting.

cheers,
c.


