|
|
* | * |
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License |
* along with this program; if not, write to the Free Software | * along with this program; if not, write to the Free Software |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* | * |
******************************************************************** | ******************************************************************** |
* | * |
|
|
#include <sys/types.h> | #include <sys/types.h> |
#include <sys/stat.h> | #include <sys/stat.h> |
#include <fcntl.h> | #include <fcntl.h> |
|
#include <stdlib.h> |
| |
int main(int argc, char *argv[]) | int main(int argc, char *argv[]) |
{ | { |
|
|
if (argc == 2) { | if (argc == 2) { |
device = argv[1]; | device = argv[1]; |
} else if (argc == 1) { | } else if (argc == 1) { |
device = DEFAULTDEVICE; |
device = "/dev/" DEFAULTDEVICE; |
} else { | } else { |
fprintf(stderr, _("usage: volname [<device-file>]\n")); | fprintf(stderr, _("usage: volname [<device-file>]\n")); |
exit(1); | exit(1); |