~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/block/pr.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/block/pr.rst (Version linux-6.11.5) and /Documentation/block/pr.rst (Version linux-4.10.17)


  1 ==============================================    
  2 Block layer support for Persistent Reservation    
  3 ==============================================    
  4                                                   
  5 The Linux kernel supports a user space interfa    
  6 Persistent Reservations which map to block dev    
  7 these (like SCSI). Persistent Reservations all    
  8 access to block devices to specific initiators    
  9 setup.                                            
 10                                                   
 11 This document gives a general overview of the     
 12 For a more detailed reference please refer to     
 13 Commands standard, specifically the section on    
 14 "PERSISTENT RESERVE IN" and "PERSISTENT RESERV    
 15                                                   
 16 All implementations are expected to ensure the    
 17 a power loss and cover all connections in a mu    
 18 These behaviors are optional in SPC but will b    
 19 by Linux.                                         
 20                                                   
 21                                                   
 22 The following types of reservations are suppor    
 23 ----------------------------------------------    
 24                                                   
 25  - PR_WRITE_EXCLUSIVE                             
 26         Only the initiator that owns the reser    
 27         device.  Any initiator can read from t    
 28                                                   
 29  - PR_EXCLUSIVE_ACCESS                            
 30         Only the initiator that owns the reser    
 31         device.                                   
 32                                                   
 33  - PR_WRITE_EXCLUSIVE_REG_ONLY                    
 34         Only initiators with a registered key     
 35         Any initiator can read from the device    
 36                                                   
 37  - PR_EXCLUSIVE_ACCESS_REG_ONLY                   
 38         Only initiators with a registered key     
 39                                                   
 40  - PR_WRITE_EXCLUSIVE_ALL_REGS                    
 41                                                   
 42         Only initiators with a registered key     
 43         Any initiator can read from the device    
 44         All initiators with a registered key a    
 45         holders.                                  
 46         Please reference the SPC spec on the m    
 47         holder if you want to use this type.      
 48                                                   
 49  - PR_EXCLUSIVE_ACCESS_ALL_REGS                   
 50         Only initiators with a registered key     
 51         All initiators with a registered key a    
 52         holders.                                  
 53         Please reference the SPC spec on the m    
 54         holder if you want to use this type.      
 55                                                   
 56                                                   
 57 The following ioctl are supported:                
 58 ----------------------------------                
 59                                                   
 60 1. IOC_PR_REGISTER                                
 61 ^^^^^^^^^^^^^^^^^^                                
 62                                                   
 63 This ioctl command registers a new reservation    
 64 is non-null.  If no existing reservation exist    
 65 if an existing reservation should be replaced     
 66 the old reservation key.                          
 67                                                   
 68 If the new_key argument is 0 it unregisters th    
 69 in old_key.                                       
 70                                                   
 71                                                   
 72 2. IOC_PR_RESERVE                                 
 73 ^^^^^^^^^^^^^^^^^                                 
 74                                                   
 75 This ioctl command reserves the device and thu    
 76 devices based on the type argument.  The key a    
 77 reservation key for the device as acquired by     
 78 IOC_PR_REGISTER_IGNORE, IOC_PR_PREEMPT or IOC_    
 79                                                   
 80                                                   
 81 3. IOC_PR_RELEASE                                 
 82 ^^^^^^^^^^^^^^^^^                                 
 83                                                   
 84 This ioctl command releases the reservation sp    
 85 and thus removes any access restriction implie    
 86                                                   
 87                                                   
 88 4. IOC_PR_PREEMPT                                 
 89 ^^^^^^^^^^^^^^^^^                                 
 90                                                   
 91 This ioctl command releases the existing reser    
 92 old_key and replaces it with a new reservation    
 93 reservation key new_key.                          
 94                                                   
 95                                                   
 96 5. IOC_PR_PREEMPT_ABORT                           
 97 ^^^^^^^^^^^^^^^^^^^^^^^                           
 98                                                   
 99 This ioctl command works like IOC_PR_PREEMPT e    
100 any outstanding command sent over a connection    
101                                                   
102 6. IOC_PR_CLEAR                                   
103 ^^^^^^^^^^^^^^^                                   
104                                                   
105 This ioctl command unregisters both key and an    
106 registered with the device and drops any exist    
107                                                   
108                                                   
109 Flags                                             
110 -----                                             
111                                                   
112 All the ioctls have a flag field.  Currently o    
113                                                   
114  - PR_FL_IGNORE_KEY                               
115         Ignore the existing reservation key.      
116         IOC_PR_REGISTER, and some implementati    
117         IOC_PR_RESERVE.                           
118                                                   
119 For all unknown flags the kernel will return -    
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php