Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-07-17 19:07:48 +0400
committerCorinna Vinschen <corinna@vinschen.de>2008-07-17 19:07:48 +0400
commit874149c80c9f8252a9b11e9f9c070bc2cbc966c1 (patch)
tree7835e2a3345af7b0144bf74f1c1d6d9f8ea7d86a /winsup/utils/mount.cc
parent5fc03e3d73b4247302a7a0844178888fac747660 (diff)
* mount.cc (do_mount): Remove MOUNT_ENC code.
(oopts): Remove "managed" option. (mount_commands): Drop "managed" handling. * path.cc (oopts): Remove "managed" option. (getmntent): Remove MOUNT_ENC code.
Diffstat (limited to 'winsup/utils/mount.cc')
-rw-r--r--winsup/utils/mount.cc24
1 files changed, 1 insertions, 23 deletions
diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc
index bb080ff1c..6739e3c9c 100644
--- a/winsup/utils/mount.cc
+++ b/winsup/utils/mount.cc
@@ -103,25 +103,6 @@ do_mount (const char *dev, const char *where, int flags)
}
}
- if (!force && flags & MOUNT_ENC)
- {
- DIR *dd = opendir (dev);
- if (dd)
- {
- struct dirent *d;
- while ((d = readdir (dd)))
- {
- if (d->d_name[0] != '.')
- /* fall through */;
- else if (d->d_name[1] == '\0'
- || (d->d_name[1] == '.' && d->d_name[2] == '\0'))
- continue;
- fprintf (stderr, "%s: error: don't use \"-o managed\" on non-empty directories\n", progname);
- exit (1);
- }
- }
- }
-
if (mount (dev, where, flags))
error (where);
@@ -192,8 +173,7 @@ struct opt
{"exec", MOUNT_EXEC, 0},
{"notexec", MOUNT_NOTEXEC, 0},
{"cygexec", MOUNT_CYGWIN_EXEC, 0},
- {"nosuid", 0, 0},
- {"managed", MOUNT_ENC, 0}
+ {"nosuid", 0, 0}
};
static void
@@ -417,8 +397,6 @@ mount_commands (void)
strcat (opts, " -E");
if (strstr (p->mnt_opts, ",cygexec"))
strcat (opts, " -X");
- if (strstr (p->mnt_opts, ",managed"))
- strcat (opts, " -o managed");
while ((c = strchr (p->mnt_fsname, '\\')) != NULL)
*c = '/';
printf (format_mnt, opts, p->mnt_fsname, p->mnt_dir);