Changeset 4809715 in mainline
- Timestamp:
- 2017-03-10T09:15:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef4cf62
- Parents:
- 0d35511
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
r0d35511 r4809715 1011 1011 static inline bool walk_flags_valid(int flags) 1012 1012 { 1013 if ((flags &~WALK_ALL_FLAGS) != 0) {1013 if ((flags & ~WALK_ALL_FLAGS) != 0) { 1014 1014 return false; 1015 1015 } 1016 if ((flags &WALK_MAY_CREATE) && (flags&WALK_MUST_CREATE)) {1016 if ((flags & WALK_MAY_CREATE) && (flags & WALK_MUST_CREATE)) { 1017 1017 return false; 1018 1018 } 1019 if ((flags &WALK_REGULAR) && (flags&WALK_DIRECTORY)) {1019 if ((flags & WALK_REGULAR) && (flags & WALK_DIRECTORY)) { 1020 1020 return false; 1021 1021 } 1022 if ((flags &WALK_MAY_CREATE) || (flags&WALK_MUST_CREATE)) {1023 if (!(flags &WALK_DIRECTORY) && !(flags&WALK_REGULAR)) {1022 if ((flags & WALK_MAY_CREATE) || (flags & WALK_MUST_CREATE)) { 1023 if (!(flags & WALK_DIRECTORY) && !(flags & WALK_REGULAR)) { 1024 1024 return false; 1025 1025 } … … 1031 1031 { 1032 1032 int lflags = 0; 1033 if ( flags&WALK_MAY_CREATE || flags&WALK_MUST_CREATE) {1033 if ((flags & WALK_MAY_CREATE) || (flags & WALK_MUST_CREATE)) { 1034 1034 lflags |= L_CREATE; 1035 1035 } 1036 if (flags &WALK_MUST_CREATE) {1036 if (flags & WALK_MUST_CREATE) { 1037 1037 lflags |= L_EXCLUSIVE; 1038 1038 } 1039 if (flags &WALK_REGULAR) {1039 if (flags & WALK_REGULAR) { 1040 1040 lflags |= L_FILE; 1041 1041 } 1042 if (flags &WALK_DIRECTORY) {1042 if (flags & WALK_DIRECTORY) { 1043 1043 lflags |= L_DIRECTORY; 1044 1044 } 1045 if (flags &WALK_MOUNT_POINT) {1045 if (flags & WALK_MOUNT_POINT) { 1046 1046 lflags |= L_MP; 1047 1047 }
Note:
See TracChangeset
for help on using the changeset viewer.