search for: print_usag

Displaying 20 results from an estimated 25 matches for "print_usag".

Did you mean: print_usage
2012 Oct 16
0
[PATCH] btrfs-progs: add -V description in print_usage
mkfs supports the option -V/--version. Add its description to print_usage(). Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com> --- mkfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mkfs.c b/mkfs.c index 47f0c9c..2cc6051 100644 --- a/mkfs.c +++ b/mkfs.c @@ -349,6 +349,7 @@ static void print_usage(void) fprintf(stderr, "\t -s --...
2010 Oct 25
7
[PATCH 0/6] Ocfs2-tools: Add a new tool 'o2info'.
Now it's a good time to introduce the new tool 'o2info' since kernel part of OCFS2_IOC_INFO ioctl has been pulld upstream by linus. The following 6 patches have already got sunil's SOBs, and now they're trying to attract more reviewers before it goes to central repo with a modification of getting manual pages being introduced.
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...:Singleton* singleton; -HostWrapper* HostWrapper::hostSingleton = NULL; -void cleanup(void) +void +shutdown(int /*signal*/) { - HostWrapper::disposeHostWrapper(); - delete singleton; -} - -void shutdown(int) -{ - cleanup(); - exit(0); + exit(0); } static void @@ -69,21 +62,22 @@ print_usage() printf("\t-p | --port specify broker port.\n"); } -int do_main(int argc, char **argv) +int +main(int argc, char **argv) { int arg; int idx = 0; bool daemonize = false; bool gssapi = false; bool verbose = false; - char *host = NULL; + char *...
2015 Nov 06
2
[PATCH supermin] build: use a custom test driver
...lease report +# bugs to <bug-automake@gnu.org> or send patches to +# <automake-patches@gnu.org>. + +# Make unconditional expansion of undefined variables an error. This +# helps a lot in preventing typo-related bugs. +set -u + +usage_error () +{ + echo "$0: $*" >&2 + print_usage >&2 + exit 2 +} + +print_usage () +{ + cat <<END +Usage: + test-driver --test-name=NAME --log-file=PATH --trs-file=PATH + [--expect-failure={yes|no}] [--color-tests={yes|no}] + [--enable-hard-errors={yes|no}] [--] + TEST-SCRIPT [TEST-SCRIPT-AR...
2004 Oct 19
1
include insmod in klibc?
...t;fcntl.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> #include <asm/unistd.h> #define streq(a,b) (strcmp((a),(b)) == 0) extern long init_module(void *, unsigned long, const char *); static void print_usage(const char *progname) { fprintf(stderr, "Usage: %s filename [args]\n", progname); exit(1); } /* We use error numbers in a loose translation... */ static const char *moderror(int err) { switch (err) { case ENOEXEC: return "Invalid module format"; case ENOENT: return &q...
2009 Jun 23
1
[PATCH server] added ovirt-wait4service and invokation in installer to wait for psql/ldap
...pts/ovirt-wait4service @@ -0,0 +1,34 @@ +#!/bin/sh +# ovirt-wait4service +# run a command a specified number times or until succesful, +# sleeping a specified number of seconds between tries + +testcmd=$1; shift +n_retries=$1; shift +sleep_seconds=$1; shift +total=$((n_retries*sleep_seconds)) + +print_usage(){ + echo "ovirt-wait4service test_command number_of_retries seconds_between_retries" +} + +if [ "$testcmd" == "" -o \ + "$sleep_seconds" == "" -o \ + "$n_retries" == "" ]; then + print_usage + exit 1 +fi + +echo...
2007 Dec 10
1
[git patch] m-i-t support, ipconfig fix
.../mman.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> -#include <errno.h> - -#define streq(a,b) (strcmp((a),(b)) == 0) - -/* This really needs to be in a header file... */ -extern long init_module(void *, unsigned long, const char *); - -static void print_usage(const char *progname) -{ - fprintf(stderr, "Usage: %s filename [args]\n", progname); - exit(1); -} - -/* We use error numbers in a loose translation... */ -static const char *moderror(int err) -{ - switch (err) { - case ENOEXEC: - return "Invalid module format"; - case ENOENT:...
2013 Feb 23
4
Changing node & leaf size on live partition.
Hi, Question is pretty simple: "How to change node size and leaf size on previously created partition?" Now, I know what most people will say: "you should''ve be smarter while typing mkfs.btrfs". Well, I''m intending to convert in place ext4 partition but there seems to be no option for leaf and node size in this tool. If it''s not possible I guess
2013 Mar 15
0
[PATCH] Btrfs-progs: add skinny metadata support to progs V3
...uper_copy; + super_flags = btrfs_super_incompat_flags(disk_super); + super_flags |= BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA; + trans = btrfs_start_transaction(root, 1); + btrfs_set_super_incompat_flags(disk_super, super_flags); + btrfs_commit_transaction(trans, root); + + return 0; +} + static void print_usage(void) { fprintf(stderr, "usage: btrfstune [options] device\n"); fprintf(stderr, "\t-S value\tenable/disable seeding\n"); fprintf(stderr, "\t-r \t\tenable extended inode refs\n"); + fprintf(stderr, "\t-x enable skinny metadata extent refs\n"); } in...
2007 Sep 22
3
[git patch] module-init-tools fixes
.../mman.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> -#include <errno.h> - -#define streq(a,b) (strcmp((a),(b)) == 0) - -/* This really needs to be in a header file... */ -extern long init_module(void *, unsigned long, const char *); - -static void print_usage(const char *progname) -{ - fprintf(stderr, "Usage: %s filename [args]\n", progname); - exit(1); -} - -/* We use error numbers in a loose translation... */ -static const char *moderror(int err) -{ - switch (err) { - case ENOEXEC: - return "Invalid module format"; - case ENOENT:...
2013 Jan 29
8
[RFC] Move btrfsck in to the btrfs command
NOTE: in order to apply this patch you should: git mv btrfsck.c cmd-fsck.c This patch moves btrfsck in to "btrfs fsck". It also adds support for symlinks to the btrfs binary to retain compablity, =) I think something should be done to the help description but i''m not sure what... Anyway, feedback is welcome. -- To unsubscribe from this list: send the line "unsubscribe
2019 Jun 07
1
[Bug 1341] New: Usage message does not mention [file] argument
...g trivial update to bring the usage message in sync as well: diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index 86f6a3a..13b9320 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -43,7 +43,7 @@ static const struct option options[] = { static void print_usage(const char *name, const char *version) { - fprintf(stderr, "Usage: %s [-c] [-v] [-V] [-t] [-h] [-n] [-T table] [-M command] [-4] [-6]\n" + fprintf(stderr, "Usage: %s [-c] [-v] [-V] [-t] [-h] [-n] [-T table] [-M command] [-4] [-6] [file]\n" " [ --c...
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...!= first_free); + ret = fsync(fd); + if (ret) { + fprintf(stderr, "error during fsync %d\n", ret); + goto fail; + } + close(fd); + free(buf); + printf("rollback complete.\n"); + return 0; +fail: + fprintf(stderr, "rollback aborted.\n"); + return -1; +} + +static void print_usage(void) +{ + printf("usage: btrfs-convert [-d] [-r] device\n"); + printf("\t-d disable data checksum\n"); + printf("\t-r roll back to ext2fs\n"); exit(1); } + +int main(int argc, char *argv[]) +{ + int ret; + int datacsum = 1; + int rollback = 0; + char *file; + + wh...
2011 Nov 01
0
[PATCH] Btrfs-progs: change the way mkfs picks raid profiles
...BLOCK_GROUP_RAID1; } else if (strcmp(s, "raid10") == 0) { - return BTRFS_BLOCK_GROUP_RAID10 | BTRFS_BLOCK_GROUP_DUP; + return BTRFS_BLOCK_GROUP_RAID10; } else if (strcmp(s, "single") == 0) { return 0; } else { fprintf(stderr, "Unknown option %s\n", s); print_usage(); } + /* not reached */ return 0; } @@ -1170,8 +1198,8 @@ int main(int ac, char **av) u64 dev_block_count = 0; u64 blocks[7]; u64 alloc_start = 0; - u64 metadata_profile = BTRFS_BLOCK_GROUP_RAID1 | BTRFS_BLOCK_GROUP_DUP; - u64 data_profile = BTRFS_BLOCK_GROUP_RAID0; + u64 metadata_pr...
2004 Nov 20
0
ffmpeg2theora start and end time support
..."\t\t\tVideo: Quality 5;\n" "\t\t\tAudio: Quality 1 - 44,1kHz - Stereo\n\n" "pro\t\tfull size DV video. encoded with Ogg Theora/Ogg Vorbis \n" "\t\t\tVideo: Quality 7;\n" "\t\t\tAudio: Quality 3 - 48kHz - Stereo\n" "\n"); } void print_usage (){ fprintf (stderr, PACKAGE " " PACKAGE_VERSION "\n\n" " usage: " PACKAGE " [options] input\n\n" " Options:\n" "\t --output,-o\t\talternative output\n" "\t --format,-f\t\tspecify input format\n" "\t --width,...
2013 May 16
0
[PATCH] btrfs-progs: mkfs: add -O option to specify fs features
...l features are +supported by old kernels. + +To see all run + +\fBmkfs.btrfs -O list-all\fR +.TP \fB\-V\fR, \fB\-\-version\fR Print the \fBmkfs.btrfs\fP version and exit. .SH UNIT diff --git a/mkfs.c b/mkfs.c index 7ff60e5..79a5779 100644 --- a/mkfs.c +++ b/mkfs.c @@ -336,6 +336,7 @@ static void print_usage(void) fprintf(stderr, "\t -s --sectorsize min block allocation\n"); fprintf(stderr, "\t -r --rootdir the source directory\n"); fprintf(stderr, "\t -K --nodiscard do not perform whole device TRIM\n"); + fprintf(stderr, "\t -O --features comma separated list...
2013 Apr 15
8
[PATCH] btrfs-progs: No-op when called as fsck.btrfsck
Hi, I thought that I would attempt a quick little patch that will make btrfsck into a No-op when called as fsck.btrfsck. The reasoning is that the FAQ states that it is recommended and safe to do so, and the current 12.04 version of Ubuntu just symlinks fsck.btrfsck to btrfsck instead of /bin/true. PS - Apologies if I mess this git send-email up! Dan McGrath (1): btrfs-progs: No-op when
2009 Nov 14
2
[PATCH] btrfs-progs: Check mount status of multidevice filesystems
...(&root_cache); - root = open_ctree(av[1], 0, 0); + root = open_ctree(av[1], 0, 0, 1); if (root == NULL) return 1; diff --git a/debug-tree.c b/debug-tree.c index 1d47519..a8e85f4 100644 --- a/debug-tree.c +++ b/debug-tree.c @@ -137,7 +137,7 @@ int main(int ac, char **av) if (ac != 1) print_usage(); - root = open_ctree(av[optind], 0, 0); + root = open_ctree(av[optind], 0, 0, 0); if (!root) { fprintf(stderr, "unable to open %s\n", av[optind]); exit(1); diff --git a/disk-io.c b/disk-io.c index addebe1..f8e623b 100644 --- a/disk-io.c +++ b/disk-io.c @@ -570,7 +570,7 @@ str...
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...rx_fh);close(vtpm_tx_fh); -+#endif -+ -+ printf("\tReturing from loading NVM\n"); -+ if (res != (int)*data_length) { -+ free(*data); -+ printf("Error in read_from_file:398\n"); -+ return -1; -+ } else { -+ return 0; -+ } -+ -+ -+ - } - - static void print_usage(char *name) - { - printf("usage: %s [-d] [-f] [-s storage file] [-u unix socket name] " -- "[-o user name] [-g group name] [-h] [startup mode]\n", name); -+ "[-o user name] [-g group name] [-h]" -+#ifdef VTPM_MULTI_VM -+ "clear|save|...
2009 Sep 22
1
[PATCH] edit-livecd in python
...ue", dest="skip_compression") + + parser.add_option("", "--skip-minimize", action="store_true", dest="skip_minimize") + + setup_logging(parser) + + (options, args) = parser.parse_args() + + if len(args) != 1: + parser.print_usage() + sys.exit(1) + + return (args[0], options) + + +def main(): + (livecd, options) = parse_options(sys.argv[1:]) + + if os.geteuid () != 0: + print >> sys.stderr, "You must run edit-livecd as root" + return 1 + + if options.name: + name = opt...