Displaying 20 results from an estimated 704 matches for "dirent".
Did you mean:
direct
2016 Jul 04
1
[PATCH] filesystem_walk: more information into tsk_dirent
Access, modification, last status change and creation time in
Unix format as for statns.
Number of links pointing to a given entry.
If the entry is a symbolic link, report the its target path.
A new flag (DIRENT_COMPRESSED 0x04) indicating whether the file is
compressed using native filesystem compression support.
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
---
daemon/tsk.c | 59 ++++++++++++++++++++++++++++++++++-----
generator/actions.ml | 39 +++++++++++++...
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
Add support for scandir() and alphasort() as defined in POSIX.1-2008.
Signed-off-by: Mike Waychison <mikew at google.com>
---
usr/include/dirent.h | 7 +++++
usr/klibc/Kbuild | 2 +
usr/klibc/scandir.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 84 insertions(+), 1 deletions(-)
create mode 100644 usr/klibc/scandir.c
diff --git a/usr/include/dirent.h b/usr/include/dirent.h
index e324474..3b1ff59 1...
2016 Jul 04
1
Re: [PATCH 1/2] filesystem_walk: more information into tsk_dirent
On Monday 04 July 2016 00:00:59 Matteo Cafasso wrote:
> Access, modification, last status change and creation time in
> Unix format as for statns.
>
> Number of links pointing to a given entry.
>
> If the entry is a symbolic link, report its target path.
>
> A new flag (DIRENT_COMPRESSED 0x04) indicating whether the file is
> compressed using native filesystem compression support.
>
> Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
> ---
> daemon/tsk.c | 39 +++++++++++++++++++++++++++++++--------
> generator/actions.ml | 34 +++++++++...
2016 Jul 03
4
[PATCH 0/2] More information reported by filesystem_walk
Report access, modification, status update and creation time in Unix format.
Report number of links pointing to a given entry.
If the entry is a symbolic link, report the path of its target.
If the filesystem supports native/transparent compression, report compressed
files with dedicated flag (DIRENT_COMPRESSED 0x04).
Matteo Cafasso (2):
filesystem_walk: more information into tsk_dirent
filesystem_walk: update tests
daemon/tsk.c | 39 +++++++++++++++++++++++++++-------
generator/actions.ml | 34 ++++++++++++++++++++++++++++++
generator/structs.ml...
2016 Jun 28
2
[PATCH] Reserve entries to tsk_dirent struct
...k/test-filesystem-walk.sh | 16 ++++++++++++++--
3 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/daemon/tsk.c b/daemon/tsk.c
index 65159ad..446213e 100644
--- a/daemon/tsk.c
+++ b/daemon/tsk.c
@@ -128,7 +128,9 @@ fswalk_callback (TSK_FS_FILE *fsfile, const char *path, void *data)
dirent.tsk_name = fname;
dirent.tsk_flags = file_flags (fsfile);
dirent.tsk_spare1 = dirent.tsk_spare2 = dirent.tsk_spare3 =
- dirent.tsk_spare4 = dirent.tsk_spare5 = 0;
+ dirent.tsk_spare4 = dirent.tsk_spare5 = dirent.tsk_spare6 =
+ dirent.tsk_spare7 = dirent.tsk_spare8 = dirent.tsk_spare9...
2016 Jul 03
0
[PATCH 1/2] filesystem_walk: more information into tsk_dirent
Access, modification, last status change and creation time in
Unix format as for statns.
Number of links pointing to a given entry.
If the entry is a symbolic link, report its target path.
A new flag (DIRENT_COMPRESSED 0x04) indicating whether the file is
compressed using native filesystem compression support.
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
---
daemon/tsk.c | 39 +++++++++++++++++++++++++++++++--------
generator/actions.ml | 34 ++++++++++++++++++++++++++++++++++
gen...
2016 Jul 07
1
[PATCH] filesystem_walk: more information into tsk_dirent
Access, modification, last status change and creation time in
Unix format as for statns.
Number of links pointing to a given entry.
If the entry is a symbolic link, report the its target path.
A new flag (DIRENT_COMPRESSED 0x04) indicating whether the file is
compressed using native filesystem compression support.
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
---
daemon/tsk.c | 44 ++++++++++++++++++++++++++++++++-------
generator/actions.ml | 39 +++++++++++++...
2016 Apr 03
0
[PATCH v2 4/5] appliance: Added filesystem_walk command
The filesystem_walk command is the appliance's
counterpart of the daemon's
internal_filesystem_walk command.
It writes the daemon's command output
on a temporary file and parses it, deserialising
the XDR formatted tsk_dirent structs.
It returns to the caller the list
of tsk_dirent structs generated by the
internal_filesystem_walk command.
Signed-off-by: Matteo Cafasso <noxdafox at gmail.com>
---
generator/actions.ml | 69 ++++++++++++++++++++++
src/Makefile.am | 1 +
src/tsk.c | 162 ++++++++...
2016 Apr 05
1
Re: [PATCH v3 4/5] appliance: Added filesystem_walk command
...ce is the small VM used to do all the operations with the
disk images, and the guestfsd daemon runs there.
This non-daemon API exists only in the library, hence in userspace.
> It writes the daemon's command output on a temporary file and parses it,
> deserialising the XDR formatted tsk_dirent structs.
>
> It returns to the caller the list of tsk_dirent structs generated by the
> internal_filesystem_walk command.
>
> Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
> ---
> generator/actions.ml | 69 +++++++++++++++++++++++++++++
> src/Makefile.am...
2016 Apr 04
2
Re: [PATCH v2 4/5] appliance: Added filesystem_walk command
...16 16:30:49 Matteo Cafasso wrote:
> The filesystem_walk command is the appliance's
> counterpart of the daemon's
> internal_filesystem_walk command.
>
> It writes the daemon's command output
> on a temporary file and parses it, deserialising
> the XDR formatted tsk_dirent structs.
>
> It returns to the caller the list
> of tsk_dirent structs generated by the
> internal_filesystem_walk command.
>
> Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
> ---
> generator/actions.ml | 69 ++++++++++++++++++++++
> src/Makefile.am |...
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline.
This patchset introduces the ability to kinit to execute scripts or
executable files present in in the initramfs before switching over to
the root filesystem.
It is implemented by first implementing scandir() and alphasort() as
present in POSIX.1-2008 in klibc itself, and then using that as the
basis for iterating and executing files via a run_scripts()
2011 Aug 17
2
[PATCH] btrfs: fix d_off in the first dirent
Since the d_off in the first dirent for "." (that originates from
the 4th argument "offset" of filldir() for the 2nd dirent for "..")
is wrongly assigned in btrfs_real_readdir(), telldir returns same
offset for different locations.
| # mkfs.btrfs /dev/sdb1
| # mount /dev/sdb1 fs0
| # cd fs0
| # touc...
2016 Apr 05
0
[PATCH v3 4/5] appliance: Added filesystem_walk command
The filesystem_walk command is the appliance's
counterpart of the daemon's internal_filesystem_walk command.
It writes the daemon's command output on a temporary file and parses it,
deserialising the XDR formatted tsk_dirent structs.
It returns to the caller the list of tsk_dirent structs generated by the
internal_filesystem_walk command.
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
---
generator/actions.ml | 69 +++++++++++++++++++++++++++++
src/Makefile.am | 1 +
src/tsk.c | 123 ++++...
2014 Oct 31
4
[PATCH] fish: fix dir completion on filesystems w/o dirent.d_type (RHBZ#1153844).
On filesystems whose dirent.d_type is DT_UNKNOWN or some unknown value,
manually check whether an entry is a directory, thus completing in the
proper way.
---
fish/destpaths.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/fish/destpaths.c b/fish/destpaths.c
index f224106..df1ec00 100644
--- a/fis...
2016 Apr 03
7
[PATCH v2 0/5] Added filesystem_walk command
...al command.
- Code improvement based on comments.
- Adhere to project's coding style.
- Better command documentation.
- More robust tests.
Patch ready for review, code available at:
https://github.com/noxdafox/libguestfs/tree/filesystem_walk
Matteo Cafasso (5):
generator: Added tsk_dirent struct
configure: Added libtsk compile-time check
daemon: Added internal_filesystem_walk command
appliance: Added filesystem_walk command
appliance: Added filesystem_walk command tests
daemon/Makefile.am | 4 +-
daemon/tsk.c | 225 ++++++++++++++++++++...
2016 Jun 13
0
[PATCH v8 2/3] New API: filesystem_walk
Library's counterpart of the daemon's internal_filesystem_walk command.
It writes the daemon's command output on a temporary file and parses it,
deserialising the XDR formatted tsk_dirent structs.
It returns to the caller the list of tsk_dirent structs generated by the
internal_filesystem_walk command.
Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
---
generator/actions.ml | 108 ++++++++++++++++++++++++++++++++++++++++++
src/Makefile.am | 1 +
src/tsk.c...
2016 Aug 25
0
[PATCH v2 2/6] daemon: refactor tsk code
...lt;noxdafox@gmail.com>
---
daemon/tsk.c | 89 ++++++++++++++++++++++++++++++------------------------------
1 file changed, 44 insertions(+), 45 deletions(-)
diff --git a/daemon/tsk.c b/daemon/tsk.c
index 6e6df6d..eb4f301 100644
--- a/daemon/tsk.c
+++ b/daemon/tsk.c
@@ -44,12 +44,12 @@ enum tsk_dirent_flags {
static int open_filesystem (const char *, TSK_IMG_INFO **, TSK_FS_INFO **);
static TSK_WALK_RET_ENUM fswalk_callback (TSK_FS_FILE *, const char *, void *);
+static int send_dirent_info (TSK_FS_FILE *, const char *);
static char file_type (TSK_FS_FILE *);
static int file_flags (TSK_FS_...
2016 Jun 28
0
Re: [PATCH] Reserve entries to tsk_dirent struct
...+++++--
> 3 files changed, 23 insertions(+), 3 deletions(-)
>
> diff --git a/daemon/tsk.c b/daemon/tsk.c
> index 65159ad..446213e 100644
> --- a/daemon/tsk.c
> +++ b/daemon/tsk.c
> @@ -128,7 +128,9 @@ fswalk_callback (TSK_FS_FILE *fsfile, const char *path, void *data)
> dirent.tsk_name = fname;
> dirent.tsk_flags = file_flags (fsfile);
> dirent.tsk_spare1 = dirent.tsk_spare2 = dirent.tsk_spare3 =
> - dirent.tsk_spare4 = dirent.tsk_spare5 = 0;
> + dirent.tsk_spare4 = dirent.tsk_spare5 = dirent.tsk_spare6 =
> + dirent.tsk_spare7 = dirent.tsk_s...
2016 Apr 04
0
Re: [PATCH v2 4/5] appliance: Added filesystem_walk command
...> > The filesystem_walk command is the appliance's
> > counterpart of the daemon's
> > internal_filesystem_walk command.
> >
> > It writes the daemon's command output
> > on a temporary file and parses it, deserialising
> > the XDR formatted tsk_dirent structs.
> >
> > It returns to the caller the list
> > of tsk_dirent structs generated by the
> > internal_filesystem_walk command.
> >
> > Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
> > ---
> > generator/actions.ml | 69 ++++++++++++++...
2016 Apr 05
10
[PATCH v3 0/5] Added filesystem_walk command
v3:
- File size will be reported as - 1 if it cannot be retrieved.
- Code improvements based on comments.
Matteo Cafasso (5):
generator: Added tsk_dirent struct
configure: Added libtsk compile-time check
daemon: Added internal_filesystem_walk command
appliance: Added filesystem_walk command
appliance: Added filesystem_walk command tests
daemon/Makefile.am | 4 +-
daemon/tsk.c | 233 ++++++++++++++++++++...