Changeset 77534 in vbox for trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
- Timestamp:
- Mar 1, 2019 3:12:26 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
r77532 r77534 167 167 int d_type; 168 168 switch (fMode & RTFS_TYPE_MASK) { 169 case RTFS_TYPE_FIFO:170 d_type = DT_FIFO;171 break;172 case RTFS_TYPE_DEV_CHAR:173 d_type = DT_CHR;174 break;175 case RTFS_TYPE_DIRECTORY:176 d_type = DT_DIR;177 break;178 case RTFS_TYPE_DEV_BLOCK:179 d_type = DT_BLK;180 break;181 case RTFS_TYPE_FILE:182 d_type = DT_REG;183 break;184 case RTFS_TYPE_SYMLINK:185 d_type = DT_LNK;186 break;187 case RTFS_TYPE_SOCKET:188 d_type = DT_SOCK;189 break;190 case RTFS_TYPE_WHITEOUT:191 d_type = DT_WHT;192 break;193 default:194 d_type = DT_UNKNOWN;195 break;169 case RTFS_TYPE_FIFO: 170 d_type = DT_FIFO; 171 break; 172 case RTFS_TYPE_DEV_CHAR: 173 d_type = DT_CHR; 174 break; 175 case RTFS_TYPE_DIRECTORY: 176 d_type = DT_DIR; 177 break; 178 case RTFS_TYPE_DEV_BLOCK: 179 d_type = DT_BLK; 180 break; 181 case RTFS_TYPE_FILE: 182 d_type = DT_REG; 183 break; 184 case RTFS_TYPE_SYMLINK: 185 d_type = DT_LNK; 186 break; 187 case RTFS_TYPE_SOCKET: 188 d_type = DT_SOCK; 189 break; 190 case RTFS_TYPE_WHITEOUT: 191 d_type = DT_WHT; 192 break; 193 default: 194 d_type = DT_UNKNOWN; 195 break; 196 196 } 197 197 return d_type; … … 304 304 err = vbsf_getdent(dir, d_name, &d_type); 305 305 switch (err) { 306 case 1:307 return 0;308 309 case 0:310 break;311 312 case -1:313 default:314 /* skip erroneous entry and proceed */315 LogFunc(("vbsf_getdent error %d\n", err));316 dir->f_pos += 1;306 case 1: 307 return 0; 308 309 case 0: 310 break; 311 312 case -1: 313 default: 314 /* skip erroneous entry and proceed */ 315 LogFunc(("vbsf_getdent error %d\n", err)); 316 dir->f_pos += 1; 317 317 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0) 318 ctx->pos += 1;319 #endif 320 continue;318 ctx->pos += 1; 319 #endif 320 continue; 321 321 } 322 322
Note:
See TracChangeset
for help on using the changeset viewer.