OSDN Git Service

* Makefile.in (path-mount.o): Add a rule to build stripped down version
authorcorinna <corinna>
Wed, 22 Jul 2009 10:20:25 +0000 (10:20 +0000)
committercorinna <corinna>
Wed, 22 Jul 2009 10:20:25 +0000 (10:20 +0000)
commit58dd203d61e7661cee0109c460eb73b7e86c38c7
tree57adccb6c685c700102a417763834f59c2d7bd01
parentc1b17047722a3df9a1305fd8c821fdbdf58bf673
* Makefile.in (path-mount.o): Add a rule to build stripped down version
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.
winsup/utils/ChangeLog
winsup/utils/Makefile.in
winsup/utils/mount.cc
winsup/utils/path.cc
winsup/utils/path.h
winsup/utils/utils.sgml