Displaying 9 results from an estimated 9 matches for "do_ntfscat_i".
2016 Mar 02
0
[PATCH] daemon: ntfs: fix format strings
...itch from asprintf_nowarn to asprintf, since no
custom formats (eg %Q, %R) are used.
---
daemon/ntfs.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/daemon/ntfs.c b/daemon/ntfs.c
index 92088f7..e555c63 100644
--- a/daemon/ntfs.c
+++ b/daemon/ntfs.c
@@ -282,8 +282,8 @@ do_ntfscat_i (const mountable_t *mountable, int64_t inode)
}
/* Construct the command. */
- if (asprintf_nowarn (&cmd, "ntfscat -i %ld %s",
- inode, mountable->device) == -1) {
+ if (asprintf (&cmd, "ntfscat -i %" PRIi64 " %s",
+...
2016 Feb 21
2
[PATCH] added ntfscat_i api
...++++++++++
generator/actions.ml | 15 +++++++++++++
2 files changed, 77 insertions(+)
diff --git a/daemon/ntfs.c b/daemon/ntfs.c
index 568899e..58f62fa 100644
--- a/daemon/ntfs.c
+++ b/daemon/ntfs.c
@@ -266,3 +266,65 @@ do_ntfsfix (const char *device, int clearbadsectors)
return 0;
}
+
+int
+do_ntfscat_i (const mountable_t *mountable, int64_t inode)
+{
+ int r;
+ FILE *fp;
+ CLEANUP_FREE char *cmd = NULL;
+ char buffer[GUESTFS_MAX_CHUNK_SIZE];
+
+ /* Inode must be greater than 0 */
+ if (inode < 0) {
+ reply_with_error("Inode must be greater than 0");
+ return -1;
+ }
+
+...
2016 Feb 22
2
Re: [PATCH] added ntfscat_i api
...f --git a/daemon/ntfs.c b/daemon/ntfs.c
>> index 568899e..58f62fa 100644
>> --- a/daemon/ntfs.c
>> +++ b/daemon/ntfs.c
>> @@ -266,3 +266,65 @@ do_ntfsfix (const char *device, int clearbadsectors)
>>
>> return 0;
>> }
>> +
>> +int
>> +do_ntfscat_i (const mountable_t *mountable, int64_t inode)
>> +{
>> + int r;
>> + FILE *fp;
>> + CLEANUP_FREE char *cmd = NULL;
>> + char buffer[GUESTFS_MAX_CHUNK_SIZE];
>> +
>> + /* Inode must be greater than 0 */
>> + if (inode < 0) {
>> + repl...
2016 Feb 22
0
Re: [PATCH] added ntfscat_i api
...changed, 77 insertions(+)
>
> diff --git a/daemon/ntfs.c b/daemon/ntfs.c
> index 568899e..58f62fa 100644
> --- a/daemon/ntfs.c
> +++ b/daemon/ntfs.c
> @@ -266,3 +266,65 @@ do_ntfsfix (const char *device, int clearbadsectors)
>
> return 0;
> }
> +
> +int
> +do_ntfscat_i (const mountable_t *mountable, int64_t inode)
> +{
> + int r;
> + FILE *fp;
> + CLEANUP_FREE char *cmd = NULL;
> + char buffer[GUESTFS_MAX_CHUNK_SIZE];
> +
> + /* Inode must be greater than 0 */
> + if (inode < 0) {
> + reply_with_error("Inode must be gre...
2016 Feb 22
0
Re: [PATCH] added ntfscat_i api
...gt; >>index 568899e..58f62fa 100644
> >>--- a/daemon/ntfs.c
> >>+++ b/daemon/ntfs.c
> >>@@ -266,3 +266,65 @@ do_ntfsfix (const char *device, int clearbadsectors)
> >>
> >> return 0;
> >> }
> >>+
> >>+int
> >>+do_ntfscat_i (const mountable_t *mountable, int64_t inode)
> >>+{
> >>+ int r;
> >>+ FILE *fp;
> >>+ CLEANUP_FREE char *cmd = NULL;
> >>+ char buffer[GUESTFS_MAX_CHUNK_SIZE];
> >>+
> >>+ /* Inode must be greater than 0 */
> >>+ if (in...
2016 Feb 29
2
[PATCH 1/2] added ntfscat_i api
...++++++++++
generator/actions.ml | 15 +++++++++++++
2 files changed, 77 insertions(+)
diff --git a/daemon/ntfs.c b/daemon/ntfs.c
index 568899e..58f62fa 100644
--- a/daemon/ntfs.c
+++ b/daemon/ntfs.c
@@ -266,3 +266,65 @@ do_ntfsfix (const char *device, int clearbadsectors)
return 0;
}
+
+int
+do_ntfscat_i (const mountable_t *mountable, int64_t inode)
+{
+ int r;
+ FILE *fp;
+ CLEANUP_FREE char *cmd = NULL;
+ char buffer[GUESTFS_MAX_CHUNK_SIZE];
+
+ /* Inode must be greater than 0 */
+ if (inode < 0) {
+ reply_with_error("Inode must be greater than 0");
+ return -1;
+ }
+
+...
2016 Feb 22
2
Re: [PATCH] added ntfscat_i api
...100644
>>>> --- a/daemon/ntfs.c
>>>> +++ b/daemon/ntfs.c
>>>> @@ -266,3 +266,65 @@ do_ntfsfix (const char *device, int clearbadsectors)
>>>>
>>>> return 0;
>>>> }
>>>> +
>>>> +int
>>>> +do_ntfscat_i (const mountable_t *mountable, int64_t inode)
>>>> +{
>>>> + int r;
>>>> + FILE *fp;
>>>> + CLEANUP_FREE char *cmd = NULL;
>>>> + char buffer[GUESTFS_MAX_CHUNK_SIZE];
>>>> +
>>>> + /* Inode must be greater than...
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames.
Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...) && GUESTFS_GCC_VERSION >= 40800 /* gcc >= 4.8.0 */
+#pragma GCC diagnostic pop
+#endif
+
static int
glob_errfunc (const char *epath, int eerrno)
{
diff --git a/daemon/ntfs.c b/daemon/ntfs.c
index e555c63..e191a19 100644
--- a/daemon/ntfs.c
+++ b/daemon/ntfs.c
@@ -273,7 +273,13 @@ do_ntfscat_i (const mountable_t *mountable, int64_t inode)
int r;
FILE *fp;
CLEANUP_FREE char *cmd = NULL;
- char buffer[GUESTFS_MAX_CHUNK_SIZE];
+ CLEANUP_FREE char *buffer = NULL;
+
+ buffer = malloc (GUESTFS_MAX_CHUNK_SIZE);
+ if (buffer == NULL) {
+ reply_with_perror ("malloc");
+...