Lines Matching refs:rwflag
90 parse_mount_options(char *arg, unsigned long rwflag, struct extra_opts *extra, int* loop, char *loopdev)
118 rwflag &= ~options[i].rwmask;
120 rwflag |= options[i].rwnoset;
122 rwflag |= options[i].rwset;
132 return rwflag;
138 static unsigned long rwflag;
141 do_mount(char *dev, char *dir, char *type, unsigned long rwflag, void *data, int loop,
151 flags = (rwflag & MS_RDONLY) ? O_RDONLY : O_RDWR;
178 if (mount(dev, dir, s, rwflag, data) == -1) {
193 (rwflag & (MS_REMOUNT|MS_RDONLY)) == 0) {
194 rwflag |= MS_RDONLY;
281 rwflag = MS_VERBOSE;
292 rwflag = parse_mount_options(optarg, rwflag, &extra, &loop, loopdev);
295 rwflag |= MS_RDONLY;
301 rwflag &= ~MS_RDONLY;
314 if (rwflag & MS_TYPE)
320 } else if (optind + 1 == argc && rwflag & MS_REMOUNT) {
330 return do_mount(dev, dir, type, rwflag, extra.str, loop, loopdev);