search for: column_size

Displaying 6 results from an estimated 6 matches for "column_size".

2016 Jun 08
1
[PATCH] filesystems: don't try to get the size of btrfs subvolume
...c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/cat/filesystems.c b/cat/filesystems.c index f1c2852..f679517 100644 --- a/cat/filesystems.c +++ b/cat/filesystems.c @@ -476,9 +476,27 @@ do_output_filesystems (void) } } if ((columns & COLUMN_SIZE)) { - size = guestfs_blockdev_getsize64 (g, fses[i]); - if (size == -1) + CLEANUP_FREE char *device = guestfs_mountable_device (g, fses[i]); + CLEANUP_FREE char *subvolume = NULL; + + guestfs_push_error_handler (g, NULL, NULL); + + subvolume = guestfs_mountable_subvolu...
2016 Jun 15
1
[PATCH v2] filesystems: don't try to get the size of btrfs subvolume
...| 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/cat/filesystems.c b/cat/filesystems.c index f1c2852..cfdac86 100644 --- a/cat/filesystems.c +++ b/cat/filesystems.c @@ -476,9 +476,28 @@ do_output_filesystems (void) } } if ((columns & COLUMN_SIZE)) { - size = guestfs_blockdev_getsize64 (g, fses[i]); - if (size == -1) + CLEANUP_FREE char *device = guestfs_mountable_device (g, fses[i]); + CLEANUP_FREE char *subvolume = NULL; + + guestfs_push_error_handler (g, NULL, NULL); + + subvolume = guestfs_mountable_subvolu...
2012 Dec 21
0
segfault reading large BLOB from SQL Server
...html or pdf version of a document. The FileType entry is one of TXT, PDF, or HTML. If it's PDF, the FileString variable is empty and the FileBLOB holds the (binary) contents of the pdf. If FileType is TXT or HTML, then FileBLOB is empty and the file contents are in FileString. Note that the COLUMN_SIZE for FileBLOB and FileString are both 2 GB. However, the actual strings and blobs in there are actually only about 60 KB. I can read the FileString column with no problem. But trying to read a FileBLOB entry segfaults, apparently when R is calling malloc(). I suspect that R is trying and failing...
2010 Nov 25
1
RODBC
...Arrests 3 C:\\ARTIFICALDESKTOP\\CurrentDownloads\\termstrc\\data <NA> USArrests 4 C:\\ARTIFICALDESKTOP\\CurrentDownloads\\termstrc\\data <NA> USArrests 5 C:\\ARTIFICALDESKTOP\\CurrentDownloads\\termstrc\\data <NA> USArrests COLUMN_NAME DATA_TYPE TYPE_NAME COLUMN_SIZE BUFFER_LENGTH DECIMAL_DIGITS 1 state 12 VARCHAR 255 510 NA 2 Murder 8 DOUBLE 53 8 NA 3 Assault 4 INTEGER 10 4 0 4 UrbanPop 4 INTEGER 10 4 0 5 Rape...
2007 Aug 14
4
Import of Access data via RODBC changes column name ("NO" to "Expr1014") and the content of the column
...<- function(name, db, drop = NULL){ .con <- try(odbcConnectAccess(db), silent = T) if(!inherits(.con, "RODBC")) return(.con) ## exclude memo columns .t <- try(sqlColumns(.con, name)) if(inherits(.t, "try-error")){close(.con); return(.t)} .t <- .t[.t$"COLUMN_SIZE" < 255, "COLUMN_NAME"] .t <- paste(.t, collapse = ",") ## get table .t <- paste("select", .t, "from", name) .d <- try(sqlQuery(.con, .t), silent = T) if(inherits(.d, "try-error")){close(.con); return(.d)} .con <- try(...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...if (vfs_uuid == NULL) { vfs_uuid = strdup (""); - if (!vfs_uuid) { - perror ("strdup"); - exit (EXIT_FAILURE); - } + if (!vfs_uuid) + error (EXIT_FAILURE, errno, "strdup"); } } if ((columns & COLUMN_SIZE)) { @@ -518,10 +515,8 @@ do_output_lvs (void) } if ((columns & COLUMN_PARENTS)) { parent_name = strdup (lvs[i]); - if (parent_name == NULL) { - perror ("strdup"); - exit (EXIT_FAILURE); - } + if (parent_name == NULL) + error (EXIT_F...