diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2014-02-07 22:28:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-10 09:02:21 +0100 |
commit | f97f4b6571d1297973f08b9f921778e0b2e7f064 (patch) | |
tree | 2f270dff58b9b90d11c455f6498389177ec1bd21 /lib | |
parent | f43f827bb4bc03526cbfa4ac58fac6747e3caddb (diff) | |
download | barebox-f97f4b6571d1297973f08b9f921778e0b2e7f064.tar.gz barebox-f97f4b6571d1297973f08b9f921778e0b2e7f064.tar.xz |
mount: support filesystem options passed via -o
Similar to mount(8) the barebox command mount now supports passing a string
to the file system driver via -o.
This is used in the next commit to let the user specify port numbers for
nfs mounts.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bootstrap/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bootstrap/disk.c b/lib/bootstrap/disk.c index 879d3315e8..527e430897 100644 --- a/lib/bootstrap/disk.c +++ b/lib/bootstrap/disk.c @@ -20,7 +20,7 @@ void* bootstrap_read_disk(char *dev, char *fstype) int len; char *path = "/"; - ret = mount(dev, fstype, path); + ret = mount(dev, fstype, path, NULL); if (ret) { bootstrap_err("mounting %s failed with %d\n", dev, ret); return NULL; |