search for: fs_name

Displaying 20 results from an estimated 30 matches for "fs_name".

Did you mean: s_name
2011 Nov 22
0
[PATCH] kinit: Add ability to mount filesystems via /etc/fstab or cmdline
This patch adds the ability to mount filesystems via an embedded fstab or via the kernel command line. When using the kernel command-line, the following format is required: 'kinit_mount=<fs_name>;<fs_dir>;<fs_type>;<fs_opts>' Multiple mount options can be specified; they are evaluated in the order they appear in the command-line. Signed-off-by: San Mehat <san at google.com> --- Things I'd like to change: - Move string option parsing into mount_block(...
2014 May 05
2
[PATCH] test-charset-fidelity: allow to skip testing specific FSes
...a/tests/charsets/test-charset-fidelity.c +++ b/tests/charsets/test-charset-fidelity.c @@ -33,6 +33,8 @@ #include "guestfs.h" #include "guestfs-internal-frontend.h" +static const char ourenvvar[] = "SKIP_TEST_CHARSET_FIDELITY"; + struct filesystem { const char *fs_name; /* Name of filesystem. */ int fs_case_insensitive; /* True if filesystem is case insensitive. */ @@ -78,7 +80,7 @@ main (int argc, char *argv[]) struct filesystem *fs; /* Allow this test to be skipped. */ - str = getenv ("SKIP_TEST_CHARSET_FIDELITY"); + str = g...
2011 Jul 05
6
[PATCH 1/7] ln: Check snprintf() return values
Add some semi-useful error message, as printing the failing dir or file seems not really advisable after that error. Signed-off-by: maximilian attems <max at stro.at> --- usr/utils/ln.c | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/usr/utils/ln.c b/usr/utils/ln.c index e826eb8..257b33f 100644 --- a/usr/utils/ln.c +++ b/usr/utils/ln.c @@ -9,7
2008 Oct 11
1
[PATCH] fstype: Fix ext4/ext4dev probing
...112,142 @@ static int minix_image(const void *buf, unsigned long long *bytes) return 0; } -static int ext4_image(const void *buf, unsigned long long *bytes) +/* + * Check to see if a filesystem is in /proc/filesystems. + * Returns 1 if found, 0 if not + */ +static int fs_proc_check(const char *fs_name) +{ + FILE *f; + char buf[80], *cp, *t; + + f = fopen("/proc/filesystems", "r"); + if (!f) + return (0); + while (fgets(buf, sizeof(buf), f)) { + cp = buf; + if (!isspace(*cp)) { + while (*cp && !isspace(*cp)) + cp++; + } + while (*cp && isspace(*cp)) +...
2019 Oct 07
0
[klibc:master] fstype: Drop obsolete support for "ext4dev"
...sr/kinit/fstype/fstype.c +++ b/usr/kinit/fstype/fstype.c @@ -113,88 +113,7 @@ static int minix_image(const void *buf, unsigned long long *bytes) return 0; } -/* - * Check to see if a filesystem is in /proc/filesystems. - * Returns 1 if found, 0 if not - */ -static int fs_proc_check(const char *fs_name) -{ - FILE *f; - char buf[80], *cp, *t; - - f = fopen("/proc/filesystems", "r"); - if (!f) - return 0; - while (fgets(buf, sizeof(buf), f)) { - cp = buf; - if (!isspace(*cp)) { - while (*cp && !isspace(*cp)) - cp++; - } - while (*cp && isspace(*cp)) -...
2020 Feb 20
0
buffer overflow detected in collectd using libguestfs
...} guestfs_umount_all (g); fs = malloc(sizeof(struct fs_info)); if (fs == NULL) { ERROR(PLUGIN_NAME " plugin: Failed malloc for struct fs_info "); continue; //exit(EXIT_FAILURE); } fs->fs_name = strdup(fses[j]); if (fs->fs_name == NULL) { ERROR(PLUGIN_NAME " plugin: Failed strdup for filesystem %s", fses[i]); continue; //exit(EXIT_FAILURE); } fs->dom = dom; fs->usage_percent = (unsigned int) ce...
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about. The goal is not to be 100% checkpatch compliant, but to have more consistent coding style. As this is a trivial patch serie, will land in 24 hours in klibc git, unless of course ml review hits a bugger. Checked with size(3) that the generated kinit, fstype, ipconfig and nfsmount are the same. maximilian attems (4): [klibc] ipconfig: reduce
2011 Aug 04
0
[PATCH] fstype: fix possible null deref in check_for_modules()
...type.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c index 2e26c9a..c5a1432 100644 --- a/usr/kinit/fstype/fstype.c +++ b/usr/kinit/fstype/fstype.c @@ -171,13 +171,13 @@ static int check_for_modules(const char *fs_name) return 0; while (fgets(buf, sizeof(buf), f)) { cp = strchr(buf, ':'); - if (cp != NULL) - *cp = 0; - else + if (cp == NULL) continue; + *cp = 0; cp = strrchr(buf, '/'); - if (cp != NULL) - cp++; + if (cp == NULL) + continue; + cp++; i = strlen(cp);...
2013 Nov 21
0
[PATCH] FSUUID for ext2 filesystem
...;s_uuid[11], + EXT2_SB(fs)->s_uuid[12], + EXT2_SB(fs)->s_uuid[13], + EXT2_SB(fs)->s_uuid[14], + EXT2_SB(fs)->s_uuid[15] + ) < 0) { + free(uuid); + return NULL; + } + + return uuid; +} + const struct fs_ops ext2_fs_ops = { .fs_name = "ext2", .fs_flags = FS_THISIND | FS_USEMEM, @@ -336,5 +374,5 @@ const struct fs_ops ext2_fs_ops = { .readlink = ext2_readlink, .readdir = ext2_readdir, .next_extent = ext2_next_extent, - .fs_uuid = NULL, + .fs_uuid = ext2_fs_...
2014 Dec 17
3
[PATCH 0/3] Allow environment variables to have boolean values.
https://bugzilla.redhat.com/show_bug.cgi?id=1175196 Currently if you write something like LIBGUESTFS_DEBUG=0 or LIBGUESTFS_DEBUG=true then it doesn't do what you probably expect. This patch series fixes that. Rich.
2009 Oct 25
0
[fsc]Adding a generic path_lookup function in VFS
...ot break the sys/iso/pxelinux. So for those haven't applied the generic path_lookup method, I added a detection in the beginning of searhdir function to make the older one work: /* for now, we just applied the universal path_lookup to EXTLINUX */ > if (strcmp(this_fs->fs_ops->fs_name, "ext2") != 0) { > file->fs->fs_ops->searchdir(name, file); > > if (file->u1.open_file) { > regs->esi.w[0] = file_to_handle(file); > regs->eax.l = file->u2.file_len; > regs->eflags.l &=...
2013 Nov 19
2
[PATCH] Add filesystem UUID to SYSAPPEND for FAT
...4x", + (uint16_t)(FAT_SB(fs)->uuid >> 16), + (uint16_t)FAT_SB(fs)->uuid) < 0) { + free(uuid); + return NULL; + } + + for (ptr = uuid; ptr && *ptr; ptr++) + *ptr = toupper(*ptr); + + return uuid; +} + const struct fs_ops vfat_fs_ops = { .fs_name = "vfat", .fs_flags = FS_USEMEM | FS_THISIND, @@ -826,4 +856,5 @@ const struct fs_ops vfat_fs_ops = { .iget = vfat_iget, .next_extent = fat_next_extent, .copy_super = vfat_copy_superblock, + .fs_uuid = vfat_fs_uuid, }; diff --git a/co...
2013 Aug 14
23
[RFC] btrfs-progs: fix sparse checking and warnings
Hi gang, I was a little surprised to see that patch go by recently which fixed an endian bug. I went to see how sparse checking looked and it was.. broken. I got it going again in my Fedora environment. Most of the patches are just cleanups, but there *were* three real bugs lurking in all that sparse warning spam. So I maintain that it''s worth our time to keep it going and fix
2017 Nov 09
10
Experiment on how to improve our temporary file handing.
Currently a power failure or other hard crash can cause lld leave a temporary file around. The same is true for other llvm tools. As an example, put a breakpoint in Writer.cpp:236 ("writeBuildId()") and restart the run a few times. You will get t.tmp43a735a t.tmp4deeabb t.tmp9bacdd3 t.tmpe4115c4 t.tmpeb01fff The same would happen if there was a fatal error between the
2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
..._dev, sb.block_shift); + cs = _get_cache_block(fs->fs_dev, 0); + memset(cs->data, 0, fs->block_size); + cache_lock_block(cs); + + /* For debug purposes */ + //ufs_checking(fs); + + //return -1; + return fs->block_shift; +} + +const struct fs_ops ufs_fs_ops = { + .fs_name = "ufs", + .fs_flags = FS_USEMEM | FS_THISIND, + .fs_init = ufs_fs_init, + .searchdir = NULL, + .getfssec = generic_getfssec, + .close_file = generic_close_file, + .mangle_name = generic_mangle_name, + .open_config = generic_op...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
..._dev, sb.block_shift); + cs = _get_cache_block(fs->fs_dev, 0); + memset(cs->data, 0, fs->block_size); + cache_lock_block(cs); + + /* For debug purposes */ + //ufs_checking(fs); + + //return -1; + return fs->block_shift; +} + +const struct fs_ops ufs_fs_ops = { + .fs_name = "ufs", + .fs_flags = FS_USEMEM | FS_THISIND, + .fs_init = ufs_fs_init, + .searchdir = NULL, + .getfssec = generic_getfssec, + .close_file = generic_close_file, + .mangle_name = generic_mangle_name, + .open_config = generic_op...
2014 May 29
3
[PATCH 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com> Wrote the documentation below. I think it would be good to push the doc to the wiki as soon as the UFS support gets merged. Unix Fast File System (UFS/FFS) 1/2 on Syslinux - (usage/install) ----- There is a confusion about the name of this file system, then I decided to contact the author who replied: "The name has always been
2014 May 29
3
[PATCH v2 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com> Change since v1: * Fix bug on dentry structure (thank you specification; btw, sarcasm), and consequently a bug on ufs_readdir. * Add readlink support (applied tests for symlinks whose destionation path were stored in blk pointers and the file itself). * Several improvements. Wrote the documentation below. I think it would be good to
2003 May 22
0
[PATCH 2.5.69 2/3] Remove NFS root support from the kernel
...nfs_data.flags |= opts->or_mask; - } - } - } - } - if (name[0] && strcmp(name, "default")) { - strncpy(buf, name, NFS_MAXPATHLEN-1); - buf[NFS_MAXPATHLEN-1] = 0; - } -} - - -/* - * Prepare the NFS data structure and parse all options. - */ -static int __init root_nfs_name(char *name) -{ - char buf[NFS_MAXPATHLEN]; - char *cp; - - /* Set some default values */ - memset(&nfs_data, 0, sizeof(nfs_data)); - nfs_port = -1; - nfs_data.version = NFS_MOUNT_VERSION; - nfs_data.flags = NFS_MOUNT_NONLM; /* No lockd in nfs root yet */ - nfs_data.rsize = NFS_D...
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers. These aren't valid for global names in C++. (http://stackoverflow.com/a/228797) These large but completely mechanical patches change the illegal identifiers to legal ones. Rich.