- 時間撮記:
- 2020-8-11 下午05:05:29 (5 年 以前)
- svn:sync-xref-src-repo-rev:
- 139838
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/linux/sharedfolders/lnkops.c
r82968 r85698 108 108 } 109 109 110 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5,0)110 #if RTLNX_VER_MIN(4,5,0) 111 111 112 112 /** … … 147 147 #else /* < 4.5 */ 148 148 149 # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6,8)149 # if RTLNX_VER_MAX(2,6,8) 150 150 /** 151 151 * Reads the link into the given buffer. … … 183 183 * Follow link in dentry. 184 184 */ 185 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2,0)185 # if RTLNX_VER_MIN(4,2,0) 186 186 static const char *vbsf_follow_link(struct dentry *dentry, void **cookie) 187 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,13)187 # elif RTLNX_VER_MIN(2,6,13) 188 188 static void *vbsf_follow_link(struct dentry *dentry, struct nameidata *nd) 189 189 # else … … 213 213 */ 214 214 vbsf_dentry_chain_increase_ttl(dentry); 215 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2,0)215 # if RTLNX_VER_MIN(4,2,0) 216 216 *cookie = pszTarget; 217 217 return pszTarget; 218 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,8)218 # elif RTLNX_VER_MIN(2,6,8) 219 219 nd_set_link(nd, pszTarget); 220 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,13)220 # if RTLNX_VER_MIN(2,6,13) 221 221 return NULL; 222 222 # else … … 241 241 rc = -ENOMEM; 242 242 } 243 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2,0)243 # if RTLNX_VER_MIN(4,2,0) 244 244 *cookie = ERR_PTR(rc); 245 245 return (const char *)ERR_PTR(rc); 246 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,8)246 # elif RTLNX_VER_MIN(2,6,8) 247 247 nd_set_link(nd, (char *)ERR_PTR(rc)); 248 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,13)248 # if RTLNX_VER_MIN(2,6,13) 249 249 return NULL; 250 250 # else … … 256 256 } 257 257 258 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,8)258 # if RTLNX_VER_MIN(2,6,8) 259 259 /** 260 260 * For freeing target link buffer allocated by vbsf_follow_link. … … 262 262 * For kernels before 2.6.8 memory isn't being kept around. 263 263 */ 264 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2,0)264 # if RTLNX_VER_MIN(4,2,0) 265 265 static void vbsf_put_link(struct inode *inode, void *cookie) 266 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,13)266 # elif RTLNX_VER_MIN(2,6,13) 267 267 static void vbsf_put_link(struct dentry *dentry, struct nameidata *nd, void *cookie) 268 268 # else … … 270 270 # endif 271 271 { 272 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,13)272 # if RTLNX_VER_MIN(2,6,13) 273 273 char *page = cookie; 274 274 # else … … 287 287 */ 288 288 struct inode_operations vbsf_lnk_iops = { 289 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10,0)290 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,8)289 #if RTLNX_VER_MAX(4,10,0) 290 # if RTLNX_VER_MIN(2,6,8) 291 291 .readlink = generic_readlink, 292 292 # else … … 294 294 # endif 295 295 #endif 296 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5,0)296 #if RTLNX_VER_MIN(4,5,0) 297 297 .get_link = vbsf_get_link 298 298 #else 299 299 .follow_link = vbsf_follow_link, 300 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6,8)300 # if RTLNX_VER_MIN(2,6,8) 301 301 .put_link = vbsf_put_link, 302 302 # endif
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器