Lines Matching full:rwflag
96 parse_mount_options(char *arg, unsigned long rwflag, struct extra_opts *extra, int* loop, char *loopdev)
124 rwflag &= ~options[i].rwmask;
126 rwflag |= options[i].rwnoset;
128 rwflag |= options[i].rwset;
138 return rwflag;
162 static unsigned long rwflag;
165 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop,
175 flags = (rwflag & MS_RDONLY) ? O_RDONLY : O_RDWR;
200 if ((rwflag & MS_RDONLY) == 0) {
206 if (mount(dev, dir, s, rwflag, data) == -1) {
221 (rwflag & (MS_REMOUNT|MS_RDONLY)) == 0) {
222 rwflag |= MS_RDONLY;
309 rwflag = MS_VERBOSE;
320 rwflag = parse_mount_options(optarg, rwflag, &extra, &loop, loopdev);
323 rwflag |= MS_RDONLY;
329 rwflag &= ~MS_RDONLY;
342 if (rwflag & MS_TYPE)
348 } else if (optind + 1 == argc && rwflag & MS_REMOUNT) {
358 return do_mount(dev, dir, type, rwflag, extra.str, loop, loopdev);