summaryrefslogtreecommitdiffstats
path: root/winsup/utils/mount.cc
Commit message (Collapse)AuthorAgeFilesLines
* * mount.cc (oopts): Remove entirely.Corinna Vinschen2010-04-291-48/+8
| | | | | | | | (usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of mount options. (print_version): Fix copyright date. (main): Replace option processing loop with single call to cygwin_internal (CW_CVT_MNT_OPTS).
* * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.Corinna Vinschen2010-01-111-16/+35
|
* * mount.cc (do_mount): Don't exit, just return.Corinna Vinschen2009-08-091-2/+0
|
* * mount.cc (do_mount): Replace --no-executable flag with notexecCorinna Vinschen2009-07-221-1/+1
| | | | | mount option in hint for remote filesystems. * path.cc (getmntent): Fix typo (noexec -> notexec).
* * Makefile.in (path-mount.o): Add a rule to build stripped down versionCorinna Vinschen2009-07-221-12/+93
| | | | | | | | | | | | | | | | | | | | | | | of path.cc for usage in mount. (mount.exe): Add dependency to path-mount.o. * mount.cc (force): Convert to bool value. Accommodate throughout. (from_fstab): New function. (do_mount_from_fstab): New function. (longopts): Add --all option. (opts): Add -a option. (usage): Document -a/--all option. (main): Handle -a option as well as single parameter. * path.cc: Add FSTAB_ONLY conditional to allow building path-mount.o. (mount_table): Remove static storage class. (max_mount_entry): Ditto. (root_here): Unused. Remove. (from_fstab_line): Remove static. * path.h (struct mnt_t): Define here rather than in path.cc. (from_fstab_line): Declare. (mount_table): Declare. (max_mount_entry): Declare. * utils.sgml (mount): Document -a/--all option and mounting of single path from fstab files.
* cygwin ChangeLogChristopher Faylor2009-05-141-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-05-13 Corinna Vinschen <corinna@vinschen.de> Christopher Faylor <me+cygwin@cgf.cx> * mount.cc (mount_info::got_usr_bin): Define. (mount_info::got_usr_lib): Ditto. (mount_info::root_idx): Ditto. (mount_info::create_root_entry): Create root entry as immutable and flag as automatic. (mount_info::init): Remove "Huh? No /etc/fstab..." warning. Unconditionally call from_fstab for user and system tables. Fill in /usr/bin and /usr/lib if they have not been specified in /etc/fstab. (oopts): Alphabetize. Add "override" option to allow overriding immutable mount points. (mount_info::add_item): Accommodate new MOUNT_IMMUTABLE flag intended for root mount. (mount_info::add_item): Detect "/usr/bin", "/usr/lib", and "/" and set appropriate global state. (fillout_mntent): Add ,auto to mount points added by Cygwin DLL. (mount): Remove masking of MOUNT_SYSTEM. Allow user to shoot themselves. Add comment. * mount.h (mount_info::got_usr_bin): Declare. (mount_info::got_usr_lib): Ditto. (mount_info::root_idx): Ditto. * include/sys/mount.h: Reformat enum. Add MOUNT_{OVERRIDE,IMMUTABLE,AUTOMATIC}. doc ChangeLog 2009-05-13 Corinna Vinschen <corinna@vinschen.de> Christopher Faylor <me+cygwin@cgf.cx> * pathnames.sgml (mount-table): Sort mount options and add override option. Add description of root mount handling. utils ChangeLog 2009-05-13 Corinna Vinschen <corinna@vinschen.de> Christopher Faylor <me+cygwin@cgf.cx> * mount.cc (oopts): Sort. Add override option. Add dummy "auto" option for consistency. (mount_entries): Avoid adding auto-mounted entries to -m output. * utils.sgml: Sort mount options. Add description of override option.
* * mount.cc (mount_entries): Handle a "/" cygdrive prefix correctly.Corinna Vinschen2009-03-021-2/+8
| | | | Add comments.
* * mount.cc (NT_MAX_PATH): Define.Corinna Vinschen2008-08-131-76/+76
| | | | | | | | | | | | | | | | | | | | | | | | (longopts): Rename mount-commands option to mount-entries. (opts): Remove removed options. (struct opt): Move up in file to allow using it in usage. (usage): Change text for --mount-entries option. Remove -X option. Add valid options output. (main): Remove handling -b option. (convert_spaces): New static function to convert spaces to "\040" string. (mount_entries): Renamed from mount_commands. Rewrite to emit /etc/fstab compatible output. (show_cygdrive_info): Print "nouser" rather than "system". * umount.cc (longopts): Remove remove-all-mounts, remove-cygdrive-prefix, remove-system-mounts, system and user options. (opts): Remove A, c, s, S, u options. (usage): Remove text for all removed options. (main): Remove handling for all removed options. (remove_all_mounts): Remove. (remove_all_system_mounts): Remove. (remove_cygdrive_prefix): Remove. * utils.sgml: Fix mount and umount documentation. Move description of (cyg,not)exec options to mount table section.
* * mount.cc: Remove non-unix-like options (-x,-t,b) throughout.Christopher Faylor2008-07-251-38/+7
| | | | | | (oopts): Use boolean constants for slightly increased clarity. * configure.in: Remove apparently unneeded program_transfer_name code. * configure: Regenerate.
* * mount.cc (do_mount): Remove MOUNT_ENC code.Corinna Vinschen2008-07-171-23/+1
| | | | | | | (oopts): Remove "managed" option. (mount_commands): Drop "managed" handling. * path.cc (oopts): Remove "managed" option. (getmntent): Remove MOUNT_ENC code.
* * mount.cc (usage): Mark -s and -u as ignored.Corinna Vinschen2008-04-231-15/+8
| | | | | | (print_version): Simplify printing copyright dates. (main): Remove default_flag. Dont set flags on -s and -u options. (mount_commands): Drop handling -s and -u options.
* * cygwin/external.cc (cygwin_internal): Implement CW_SET_DOS_FILE_WARNING.Christopher Faylor2007-03-301-0/+2
| | | | | | * cygwin/include/sys/cygwin.h: Define CW_SET_DOS_FILE_WARNING. * utils/mount.cc (main): Turn dos file warnings off since we know what we're doing.
* * mount.cc (do_mount): Avoid unnecessary cygwin_conv_to_win32_path and passChristopher Faylor2006-12-101-4/+1
| | | | POSIX path directly - this avoids a cygwin DLL warning.
* * mount.cc (longopts): Fix typo which disallows --options option.Corinna Vinschen2005-08-031-2/+2
|
* * mount.cc (mount_commands): Display "-X" option when appropriate.Christopher Faylor2005-05-131-0/+2
|
* * mount.cc (usage): Clarify action of -m option.Christopher Faylor2005-05-011-1/+1
|
* fix whitespace, update some copyrightsChristopher Faylor2004-10-251-1/+1
|
* * mount.cc (mount_commands): Ensure user mode is actually user mode and not theChristopher Faylor2003-09-041-36/+42
| | | | default system mode.
* * mount.cc (do_mount): Issue warning when using managed mount option onChristopher Faylor2003-07-261-0/+20
| | | | non-empty directory.
* * mount.cc (struct opt): Remove posix option.Christopher Faylor2003-07-041-2/+1
|
* * mount.cc (longopts): Add long "options" keyword.Christopher Faylor2003-07-041-2/+62
| | | | | | | | (opts): Add -o option. (usage): Display -o option. (struct opt): New. (concat3): New function. (main): Handle -o flag.
* * cygcheck.cc (usage) Add description output.Joshua Daniel Franklin2003-04-261-0/+2
|
* * mount.cc (usage): Correctly report default mode.Christopher Faylor2002-10-191-2/+2
|
* Add final newlines to utilsJoshua Daniel Franklin2002-09-151-1/+2
|
* * mount.cc (main): Ensure that mount_already_exists() also gets default flagChristopher Faylor2002-07-011-1/+1
| | | | | | | | | that is passed to do_mount. * cygpath.cc (long_options): Add "dos" and "mixed", correct "close", "file" and "type" to use NULL flag. (usage): Clean up usage output (more), accomodate new options. (main): Add --dos and --mixed options; accomodate all output forms in --type. Make UNIXy output default.
* * mount.cc (main): Use default system/user flag for cygdrive stuff, too.Christopher Faylor2002-06-091-2/+2
| | | | | | (change_cygdrive_prefix): Change MOUNT_AUTO to MOUNT_CYGDRIVE. * umount.cc (remove_cygdrive_prefix): Ditto. (main): Use default system/user flag for cygdrive stuff, too.
* * mount.cc (opts): Remove '-i' option.Christopher Faylor2002-06-091-17/+1
| | | | | | (usage): Ditto. (main): Ditto. (longopts): Remove --import-old-mounts option.
* * mount.cc (main): Make -b the default.Christopher Faylor2002-05-301-1/+1
|
* * mount.cc (version) New global variable.Christopher Faylor2002-05-231-23/+64
| | | | | | | | (usage) Standardize usage output. Accomodate new version option. (print_version) New function. (longopts) Accomodate new version option. (opts) Ditto. (main) Ditto.
* * Makefile.in (kill.exe): Add as a specific target.Christopher Faylor2002-05-131-2/+2
| | | | | | | | | | * kill.cc (longopts): New. (opts): Ditto. (get_sig): Accept const char * parameter. Return -1 on unknown signal. (test_for_unknown_sig): New function. (listsig): New function. (main): Use getopt_long for option parsing. Implement -l, and -s options. Use test_for_unknown_sig() to test for signal validity.
* * mount.cc (do_mount): Default to non-exec option for remote drives. ReportChristopher Faylor2002-05-121-9/+46
| | | | | | | | | | | warnings before attempting a mount. (longopts): Add no-executable option. (mount_commands): Ditto. (opts): Ditto. (usage): Ditto. Indicate that system mount is now the default. (main): Accommodate no-executable option. Make system mount the default. * umount.cc (usage): Indicate that system umount is now the default. (main): Make system umount the default.
* * mount.cc (usage): Fix typo in output.Christopher Faylor2002-02-151-2/+2
|
* * Makefile.in: Only build testsuite directory on first 'make check'.Christopher Faylor2001-10-241-1/+1
| | | | | * configure.in: Remove testsuite from SUBDIRS. * configure: Regenerate.
* * mount.cc (mount_commands): Don't write /cygdrive/u mount points.Christopher Faylor2001-09-041-14/+17
|
* * mount.cc (longopts): Add mount-commands to options list.Christopher Faylor2001-09-031-2/+74
| | | | | (usage): Add mount-commands option. (mount_commands): New function. Write commands to recreate current mounts.
* * mount.cc (main): Eliminate excess arguments in printf.Christopher Faylor2001-09-011-1/+1
|
* * mount.cc (main): Issue correct warning for 'not enough arguments'.Christopher Faylor2001-08-281-1/+4
|
* * mount.cc (longopts): Add help to options list.Christopher Faylor2001-04-161-18/+19
| | | | | | (opts): Add 'h' to options string. * umount.cc (longopts): Add help to options list. (opts): Add 'h' to options string and change 'R' to 'A'.
* * mount.cc (main): Use getopt_long for parsing arguments.Christopher Faylor2001-04-031-68/+114
| | | | | (usage): Reformat, show long and short options. * umount.cc (main): Ditto, all of the above.
* * mount.cc (show_mounts): Change format string to more closely resemble UNIXChristopher Faylor2001-04-021-9/+3
| | | | when displaying mount table.
* * mount.cc (main): Call show_cygdrive_info instead of show_cygdrive_prefixes.Christopher Faylor2000-11-081-10/+14
| | | | | | | * mount.cc (show_cygdrive_prefixes): Remove function. * mount.cc (show_cygdrive_info): New function. Actually, show_cygdrive_info is really an enhanced version of show_cygdrive_prefixes renamed to show_cygdrive_info that also displays the user and system flags.
* Cleanup formatting on some files. Remove excessive whitespace.Christopher Faylor2000-10-281-3/+3
|
* * utils/mount.cc (main): Add --show-cygdrive-prefixes option.Christopher Faylor2000-07-281-0/+31
| | | | | | | (show_cygdrive_prefixes): New function. * utils/umount.cc (main): Add --remove-cygdrive-prefix option. (error): Change signature from 'char *' to 'const char *'. (remove_cygdrive_prefix): New function.
* * mount.cc (mount_already_exists): Slightly rearrange.Corinna Vinschen2000-07-131-13/+19
| | | | Change message texts.
* * mount.cc (mount_already_exists): Additional warning messageCorinna Vinschen2000-07-131-0/+6
| | | | if mount point exists with another mount type.
* mount.cc (error): New function to report an error and exit.Corinna Vinschen2000-06-081-10/+11
| | | | | | | umount.cc (error): Ditto. (remove_all_automounts): Check return status of cygwin_umount. (remove_all_user_mounts): Ditto. (remove_all_system_mounts): Ditto.
* * mount.cc: add stdlib.h for exitDJ Delorie2000-06-051-0/+1
| | | | | * umount.cc: ditto * strace.cc: add #define for alloca
* * Makefile.in: Eliminate WINSUP_DEPS.Christopher Faylor2000-05-181-2/+0
| | | | | | | | | * cygpath.cc: Reorganize includes to accomodate sys/cygwin.h changes. * mkgroup.c: Ditto. * mkpasswd.c: Ditto. * mount.cc: Ditto. Eliminate use of cygwin source specific includes. * ps.cc: Ditto. * cygwin.cc: Eliminate obsolete file.
* * mount.cc (main): Add "-X" option to specify a "Cygwin executable".Christopher Faylor2000-04-271-34/+36
|
* import winsup-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+240