History log of /haiku/src/bin/mountvolume.cpp
Revision Date Author Comments
# 876ddc1a 23-Oct-2022 Jérôme Duval <jerome.duval@gmail.com>

mountvolume: return type of ContentName() is now BString

fixes #18011

Change-Id: Ie8dda950005c191c843535b12f7cf8f9819bdcfb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5757
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 77dfc670 10-Mar-2013 Axel Dörfler <axeld@pinc-software.de>

mountvolume: open mounted images/volumes in Tracker.

* This can be done from the command line using the new "-open" option.
* When the application is invoked via Tracker, ie. by double clicking
on an image, then it's being used implicitly.


# 8110732b 01-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added some more binaries to the image.


# 6ba60f63 11-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Making mountvolume an application broke invocating it without any arguments.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33513 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0cab16b 12-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Make mountvolume a BApplication and set it as the preferred one for opening BFS and (for now) ISO images.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32275 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ccee2a8b 05-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* "mountvolume" now can also mount by device path.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32128 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 63d557f0 15-Jul-2009 Michael Lotz <mmlr@mlotz.ch>

Fixing random GCC4 warnings. Mostly missing consts, some parentheses, some braces... Should all be harmless and not change anything.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31600 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4a825054 05-Jun-2009 Axel Dörfler <axeld@pinc-software.de>

* Unmounting a volume now actually works, this fixes bug #3671.
* Added -u as an alias for -unmount. Added -readonly as an alias for -ro.
* Made the volume/fs column width depending on the terminal size.
* Now lists the volumes (-l) when invoked without any arguments instead of
showing the help text.
* Improved output of not mounted volumes.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30972 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e855c37 12-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Patch by Fredrik Ekdahl: gcc 4 build fixes (missing headers).
* Added missing header for mountvolume.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30135 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 67062294 13-Oct-2008 Axel Dörfler <axeld@pinc-software.de>

* Added mounting of file devices by path (they are tried as a fallback when
mounting by name failed).
* Also left some TODO comments in the code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28069 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f8368e2 05-Jul-2007 Axel Dörfler <axeld@pinc-software.de>

Made the output of the volume listing more useful: added size, and device information.
size_string() was taken from df.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21573 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71960e33 12-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed the "Volume XXX is already mounted" warning with the -all{bfs|hfs|dos} options.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17103 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 40d0203c 22-Jan-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed bug #92.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16041 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 30db9f52 18-Jan-2006 Jérôme Duval <korli@users.berlios.de>

print also the mount point, useful in case it's generated


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16007 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 758b1d0e 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96


# da6d1a70 20-Oct-2005 Axel Dörfler <axeld@pinc-software.de>

fs_mount_volume() now returns a dev_t as well - changed mount/mountvolume to take
that into account as well (they were reporting an error even though everything
went fine).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 96cfeb70 26-May-2005 Axel Dörfler <axeld@pinc-software.de>

Now prints "<unknown>" as the name of unrecognized file/partitioning systems.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12852 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b674940b 26-May-2005 Axel Dörfler <axeld@pinc-software.de>

No longer shows "<unnamed>" for partitioning systems that have no name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12851 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1a802114 02-May-2005 Axel Dörfler <axeld@pinc-software.de>

Got the Visit() return value wrong: "true" means to abort visiting the
partitions, because the right entry was found - but we always want to
visist all partitions, anyway.
Also, if a partition has not been mounted yet, no mount point will be
printed.
The device string is still missing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12550 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 509676a0 02-May-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed mountvolume to make it compile and somewhat work (only tested listing volumes yet).
Added it to the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12545 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 17049c45 18-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Moved bin/ directory out of apps/.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 77dfc67033f954b0791a2f744c8d4ea932d62e05 10-Mar-2013 Axel Dörfler <axeld@pinc-software.de>

mountvolume: open mounted images/volumes in Tracker.

* This can be done from the command line using the new "-open" option.
* When the application is invoked via Tracker, ie. by double clicking
on an image, then it's being used implicitly.


# 8110732b0350b7a9bc72e831a56fbc874a113695 01-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added some more binaries to the image.


# 6ba60f63921dfc369c49bc3800ad62dd028b1ce1 11-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Making mountvolume an application broke invocating it without any arguments.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33513 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0cab16b9f138d94bb3d6b57d8e4aa6efa73383e 12-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Make mountvolume a BApplication and set it as the preferred one for opening BFS and (for now) ISO images.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32275 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ccee2a8b3513097cd457985e88c6a959320ffaa1 05-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* "mountvolume" now can also mount by device path.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32128 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 63d557f06f41c0aef30f8a0fcc5b8d2c47981b33 15-Jul-2009 Michael Lotz <mmlr@mlotz.ch>

Fixing random GCC4 warnings. Mostly missing consts, some parentheses, some braces... Should all be harmless and not change anything.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31600 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4a8250546bab891dd5e25479475bb5225a7fb4de 05-Jun-2009 Axel Dörfler <axeld@pinc-software.de>

* Unmounting a volume now actually works, this fixes bug #3671.
* Added -u as an alias for -unmount. Added -readonly as an alias for -ro.
* Made the volume/fs column width depending on the terminal size.
* Now lists the volumes (-l) when invoked without any arguments instead of
showing the help text.
* Improved output of not mounted volumes.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30972 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e855c376c4f785f926c0c4d4d08c827c05da643 12-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Patch by Fredrik Ekdahl: gcc 4 build fixes (missing headers).
* Added missing header for mountvolume.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30135 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 670622943f6aa1589b4e05a82bca04a0a346ed8e 13-Oct-2008 Axel Dörfler <axeld@pinc-software.de>

* Added mounting of file devices by path (they are tried as a fallback when
mounting by name failed).
* Also left some TODO comments in the code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28069 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f8368e2230819528b3daa2f9bc4d135fdfee313 05-Jul-2007 Axel Dörfler <axeld@pinc-software.de>

Made the output of the volume listing more useful: added size, and device information.
size_string() was taken from df.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21573 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71960e33b97b2b7dc1ada016cfa09adf2469ea77 12-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed the "Volume XXX is already mounted" warning with the -all{bfs|hfs|dos} options.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17103 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 40d0203cdb9b8568269630634abe2ccd2cef56f3 22-Jan-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed bug #92.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16041 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 30db9f527dde7fe6c27253ea3b1e3fd172c7b2b5 18-Jan-2006 Jérôme Duval <korli@users.berlios.de>

print also the mount point, useful in case it's generated


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16007 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 758b1d0e05fe1042cce6e00d194a147802d4f9be 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96


# da6d1a7022b1c7a4f0f6fba0dc60ffe0a57958da 20-Oct-2005 Axel Dörfler <axeld@pinc-software.de>

fs_mount_volume() now returns a dev_t as well - changed mount/mountvolume to take
that into account as well (they were reporting an error even though everything
went fine).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 96cfeb706adb9a6404ad52b662192a729890a3b5 26-May-2005 Axel Dörfler <axeld@pinc-software.de>

Now prints "<unknown>" as the name of unrecognized file/partitioning systems.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12852 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b674940baa6082e758b4d22a788f01c3806249eb 26-May-2005 Axel Dörfler <axeld@pinc-software.de>

No longer shows "<unnamed>" for partitioning systems that have no name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12851 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1a802114affef85791359ca922550018a371dd78 02-May-2005 Axel Dörfler <axeld@pinc-software.de>

Got the Visit() return value wrong: "true" means to abort visiting the
partitions, because the right entry was found - but we always want to
visist all partitions, anyway.
Also, if a partition has not been mounted yet, no mount point will be
printed.
The device string is still missing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12550 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 509676a0278d66ba6e9af1da1bfba8401b7a4254 02-May-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed mountvolume to make it compile and somewhat work (only tested listing volumes yet).
Added it to the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12545 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 17049c451a91f427aec94b944b75876b611103e7 18-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Moved bin/ directory out of apps/.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96