aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* mount: undo recent breakage when mount flags were made unsignedDenys Vlasenko2012-06-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: set up RO loop device if mount -o ro. Closes 4784Denys Vlasenko2012-06-211-14/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2012-04-201-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: resolve hosts to IPs in nfs mountsDenys Vlasenko2011-11-101-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: make FEATURE_MOUNT_NFS not needed for Linux 2.6.23+Denys Vlasenko2011-11-101-6/+41
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: support -o noaclDave Love2011-11-101-22/+30
| | | | | Signed-off-by: Dave Love <fx@gnu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: handle list of comma-separated fs types in -t optionKarol Lewandowski2011-11-031-3/+12
| | | | | | | | | Allows one to specify list of filesystem types to be tried when mounting particular device. E.g. mount -t vfat,ext2 ... Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: free commented /etc/filesystems lines when we read itDenys Vlasenko2011-11-031-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add INIT_G()'s. No code changes.Denys Vlasenko2011-09-211-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* losetup: implement -r option. Closes 4033.Denys Vlasenko2011-09-121-1/+1
| | | | | | | | | | function old new delta packed_usage 28595 28633 +38 losetup_main 285 290 +5 singlemount 906 908 +2 set_loop 674 672 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-051-1/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: for NFS use tcp per default rather than udpBernhard Reutner-Fischer2011-05-041-1/+1
| | | | | | | | nfs-utils's mount.nfs uses TCP per default unless explicitly asked for otherwise. This is also the expected behaviour for NFSv4, so ok there, too. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* move remaining help text from include/usage.src.hPere Orga2011-04-111-0/+60
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: add --rbind option supportRoman Borisov2011-03-261-0/+2
| | | | | Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: rprivate option fixRoman Borisov2011-03-261-1/+1
| | | | | | | fixed the mistake in writing for -make-rprivate option Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: strip multiple trailing slashes, not just oneDenys Vlasenko2011-02-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: update /etc/mtab properly on mount --moveRoman Borisov2011-02-281-9/+67
| | | | | Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: ignore unknown mount options when remounting NFS mountsPeter Korsgaard2011-02-261-0/+3
| | | | | | | | | | | | | | | Don't fail on unknown nfs mount options. The kernel automatically adds a few mount options that we don't currently handle, like: sec=null|sys|krb5.. mountaddr=<ip> mountproto=tcp|udp local_lock=none|all|flock|posix Which causes a simple mount -o remount,rw <mountpoint> to fail. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: fix wrong long option namessRoman Borisov2011-02-261-8/+8
| | | | | | | | | | Fixed the --make-shared, --make-rshared, ... etc. (--make-*) options in the mount command. Now parse_mount_options() may reasonably process such options. Fixed: http://lists.busybox.net/pipermail/busybox/2011-January/074511.html Signed-off-by: Roman Borisov <ext-roman.borisov@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: pass NULL, not "", as "data" to mount syscall if we have no optsAlexander Shishkin2010-10-281-12/+22
| | | | | | | | | When mounting a filesystem without any additional options (data parameter to the mount(2) syscall), pass NULL instead of an empty string like GNU mount does. This fixes, for example mounting cgroup fs with bbox mount. Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: code shrink (-81 bytes)Alexander Shishkin2010-10-221-41/+15
| | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-2/+2
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: s/xatoi_u/xatoi_positive/g - I got bored of mistyping xatoi_u as xatou_iDenys Vlasenko2010-08-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: fix a case when sometimes error message is not printedDenys Vlasenko2010-06-271-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: handle EDQUOT > 255 properly. closes bug 1579Denys Vlasenko2010-05-191-1/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: merge some common stringsDenys Vlasenko2010-03-231-1/+1
| | | | | | | | text data bss dec hexfilename 838650 8009 0 846659 ceb43busybox_old 838519 8009 0 846528 ceac0busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: code shrink and better "died from signal" reporting from wait4pidDenys Vlasenko2010-03-181-2/+2
| | | | | | | | | | | | | | function old new delta parse 964 967 +3 udhcp_run_script 670 665 -5 singlemount 911 906 -5 mount_it_now 360 355 -5 inotifyd_main 521 516 -5 xspawn 21 - -21 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/4 up/down: 3/-41) Total: -38 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: gethostname-related fixesDenys Vlasenko2010-02-271-10/+6
| | | | | | | | function old new delta hostname_main 218 231 +13 nfsmount 3541 3474 -67 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixDenys Vlasenko2010-02-061-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: style fixes. no code changes (verified with objdump)Denys Vlasenko2010-01-281-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: dont include NFS headers if not needed; drop support for Linux <2.2.0Denys Vlasenko2009-12-161-31/+36
| | | | | | | | | | | | | function old new delta nfs_err_stat - 18 +18 nfs_err_errnum - 18 +18 nfs_strerror 56 50 -6 nfsmount 3567 3541 -26 nfs_errtbl 80 - -80 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/2 up/down: 36/-112) Total: -76 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: fix goof in last commit; clear errno since we use perror_msg laterDenys Vlasenko2009-12-151-12/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: if we mount //host/xxx, add ip=IPADDR to optionsDenys Vlasenko2009-12-151-30/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: "already mounted" msg appears only if -vDenys Vlasenko2009-12-101-4/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: prevent second mount -a from mounting everything againDenys Vlasenko2009-12-051-19/+58
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: add support for -O list. +44 bytesMichael Abbott2009-12-041-32/+50
| | | | | Signed-off-by: Michael Abbott <michael@araneidae.co.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: and real handling for -N, show usage w/o options; trim textDenys Vlasenko2009-11-251-6/+4
| | | | | | | | | | | | | | | | | | | function old new delta ntp_init 317 348 +31 bb_msg_you_must_be_root - 17 +17 xsocket 66 76 +10 changepath 195 194 -1 bb_msg_perm_denied_are_you_root 35 34 -1 send_tree 355 353 -2 count_lines 74 72 -2 must_be_root 17 - -17 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/4 up/down: 58/-23) Total: 35 bytes text data bss dec hexfilename 832873 441 7548 840862 cd49ebusybox_old 832839 441 7548 840828 cd47cbusybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: clean up #defines. No code changesDenys Vlasenko2009-11-211-10/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use "can't" instead of "cannot"Denys Vlasenko2009-11-131-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wget: fix for code 302; mount: support -o unionVladimir Dronnikov2009-10-051-0/+5
| | | | | Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* swaponoff: add uuid/label support. By Natanael CopaNatanael Copa2009-09-201-18/+3
| | | | | | | | | | | | | function old new delta swap_enable_disable 130 150 +20 resolve_mount_spec 76 96 +20 mount_main 1152 1154 +2 findfs_main 125 80 -45 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 42/-45) Total: -3 bytes Signed-off-by: Natanael Copa <natanael.copa@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: do not execute "mount.(null)" :)Denys Vlasenko2009-09-151-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move libc related stuff out of platform.hDenys Vlasenko2009-07-081-2/+29
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: support -i; pass through -f and -n to helpers as necessaryDenys Vlasenko2009-06-191-27/+46
| | | | | | | | | function old new delta mount_it_now 298 345 +47 singlemount 776 772 -4 Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: save 80 bytes by forced de-inliningDenys Vlasenko2009-05-131-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: document when kernel started accepting string as NFS optionsDenys Vlasenko2009-05-131-1/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-211-14/+14
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* mount: users report that CIFS support is breaking things,Denis Vlasenko2009-04-121-8/+11
| | | | | mostly remove it.
* mount: support "-O option"; stop trying to mount swap partitionsDenis Vlasenko2009-03-141-15/+88
| | | | | | | | | | function old new delta mount_main 975 1152 +177 umount_main 640 636 -4 packed_usage 25666 25662 -4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 177/-8) Total: 169 bytes