Commit Graph

22 Commits

Author SHA1 Message Date
Hiltjo Posthuma
9af24d8a29 mount: show devicename in error output for clarity
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 19:29:21 +00:00
Hiltjo Posthuma
7569fd3805 mount: match on source rule too if argument is set
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 17:52:10 +00:00
Hiltjo Posthuma
5b5cb8447e mount: if no options flag given, use matched mount rule options
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 17:52:02 +00:00
Hiltjo Posthuma
781cf0ed52 mount: implement some error status codes for mount -a
see mount man page:
32: all failed.
64: some failed.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 17:51:46 +00:00
Hiltjo Posthuma
c444139aea mount: just set data empty in declaration
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-03-15 17:51:32 +00:00
sin
6c926cd1d4 Use weprintf() instead of fprintf() for mount(8) 2014-03-15 14:01:59 +00:00
Hiltjo Posthuma
35e3f401ab Major mount(8) refactor 2014-03-15 13:27:02 +00:00
sin
4879ea07b4 Implement mount -a
This code needs refactoring.
2014-03-11 19:47:08 +00:00
sin
d0dc4dc2b7 Fix some more instances of enprintf(EXIT_FAILURE, ...); 2014-02-27 15:10:39 +00:00
sin
3f98a7abc8 Convert mount(8) to mntent and kill grabmntinfo.[ch] 2014-02-24 13:44:15 +00:00
Hiltjo Posthuma
f8f4a96cc1 mount: siz variable can potentially be used uninitialized
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:10:45 +00:00
sin
5b0d03acc6 Free minfo table 2014-01-25 22:34:30 +00:00
sin
0476f601b2 Fix alignment for table `optnames[]' 2013-10-28 16:53:21 +00:00
s-p-k
e340e1373e exit with EXIT_SUCCESS/EXIT_FAILURE 2013-10-07 19:15:00 +01:00
sin
713f1cfdb2 Handle correctly the -n option for mount and umount 2013-09-06 11:01:03 +01:00
sin
65e02d66b5 We do not update /etc/mtab for mount/umount - update usage 2013-09-04 10:55:44 +01:00
sin
80c3bdae3d Keep a list of all mount options
This makes it easier to parse all other options as well.
2013-09-03 14:34:15 +01:00
sin
818794af45 Set target to argv[0] - this is a bit more clear 2013-09-03 14:01:01 +01:00
sin
7afa5b8791 Make mount(8) work based on device id and inode number 2013-08-31 17:39:17 +01:00
sin
f6cf690aa2 Fix usage lines 2013-08-14 14:40:49 +01:00
sin
97cbad7eef Remove OpenBSD support
This is becoming a nightmare.  Just support Linux.
2013-08-14 14:40:47 +01:00
sin
92c3390657 Add mount(8) 2013-08-14 13:51:50 +01:00