search for: mntent

Displaying 20 results from an estimated 60 matches for "mntent".

Did you mean: intent
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
hello hpa, please review and on ack merge belows patchset. thanks maks git pull git://git.debian.org/~maks/klibc.git maks for the changes: maximilian attems (8): [klibc] Add initial mntent.h with setmntent() and endmntent() [klibc] add getmntent() [klibc] mount: add help arg for usage() [klibc] mount: list all mounted file systems [klibc] mount: list fs of particular type [klibc] mount: read /proc/mounts preferably [klibc] ipconfig: raise field len...
2008 Jul 23
2
[RFC] klibc add minimal mntent.h
belows patch is a first step towards a mntent.h we'll need it anyways later for mdadm support. it allows to compile util-linux-ng mount against klibc. due to the missing features there is a severe size difference: text data bss dec hex filename 1507 0 40 1547 60b /usr/lib/klibc/bin/mount 58526...
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
[ gsi.de pretends this is massmailing so removed from CC's ] hello hpa, please review and on ack merge belows patchset. changes from v1, thanks to review by kzak: * add strtok_r() * use it in getmntent_r() * getment_r() parses mnt_freq and mnt_passno too isn't that hard. thanks maks git pull git://git.debian.org/~maks/klibc.git maks for the changes: maximilian attems (9): [klibc] add strtok_r() [klibc] Add initial mntent.h with setmntent() and endmntent() [klibc] add ge...
2011 Aug 30
0
[PATCH] include: [mntent.h] Add MNTTYPE_SWAP definition
It is used by util-linux mount code: mount.c:1004:30: error: ?MNTTYPE_SWAP? undeclared (first use in this function) .. Signed-off-by: maximilian attems <max at stro.at> --- usr/include/mntent.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/usr/include/mntent.h b/usr/include/mntent.h index 210610c..104f35e 100644 --- a/usr/include/mntent.h +++ b/usr/include/mntent.h @@ -1,6 +1,8 @@ #ifndef _MNTENT_H #define _MNTENT_H 1 +#define MNTTYPE_SWAP "swa...
2002 Jun 13
1
[mntent]: line x in /etc/fstab is bad
...//DEDALE/SHAREDIR /mnt/smb/dedale/sharedir smbfs credentials=/home/win2k/VALBONE/slautier/.smbpw,uid='slautier', gid='Domain users',fmask=664,dmask=775 0 0 and then try to mount it using the mount command I get the following error: $ mount /mnt/smb/dedale/sharedir | [mntent]: line 9 in /etc/fstab is bad | mount: can't find /mnt/smb/dedale/sharedir in /etc/fstab or /etc/mtab I don't get this error if I replace username uid with numeric uid: //DEDALE/SHAREDIR /mnt/smb/dedale/sharedir smbfs credentials=/home/win2k/VALBONE/slautier/.smbpw,uid=1000...
2010 Sep 12
2
dovecot 2.0.2 compile issues on Solaris 10u8 Sparc
...In function `mountpoint_get': mountpoint.c:88: error: field `ent' has incomplete type mountpoint.c:89: error: field `ext' has incomplete type mountpoint.c:172: warning: implicit declaration of function `resetmnttab' mountpoint.c:173: warning: implicit declaration of function `getextmntent' mountpoint.c:174: warning: implicit declaration of function `hasmntopt' make[4]: *** [mountpoint.lo] Error 1 make[4]: Leaving directory `/usr/local/src/d/dovecot-2.0.2/src/lib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/usr/local/src/d/dovecot-2.0.2/src/lib' make[2]: *...
2006 Jun 23
2
Needed help to fix corrupted ext3 fs
I have been trying very hard to seek help with my very complex issue but so far none have been successful. So I would like to try this mailing list, maybe there are some experts who know what they're talking about. Please refer to my experts-exchange question, all the required information will be there. It is more practical to send you to the webpage than paste out what I've done.
2004 Sep 14
6
initrd / initramfs future
...like to know if initrd is here to stay, now that klibc and initramfs are ready. As the multipath-tools maintainer, I'm facing the choice to 1) put the multipath configuration tool in the initrd * dynamic binary is possible * storage hba drivers as modules loaded * no klibc limitations (no mntent for libsysfs ...) 2) put the multipath configuration tool in the initramfs * small static binary * storage drivers must be compiled static ? * udev available ? Putting it this way, it seems the initrd is the right place for stuff like lvm2, multipath, mdadm ... but I'd like to be sure befor...
2015 Oct 22
2
[PATCH] Added btrfs support for vfs_min_size.
...n char *ntfs_get_label (const char *device); diff --git a/daemon/fs-min-size.c b/daemon/fs-min-size.c index 4f93f8c..cb67b6f 100644 --- a/daemon/fs-min-size.c +++ b/daemon/fs-min-size.c @@ -21,16 +21,57 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#include <mntent.h> +#include <sys/stat.h> +#include <sys/types.h> #include "daemon.h" #include "actions.h" +static char* +get_mount_point (const char *device) +{ + FILE *fp; + struct mntent *m; + struct stat stat1, stat2; + char *path; + + if (stat (device, &stat1) =...
2002 Feb 27
2
why I don't have smbmount????
hi all I had compiled samba 2.2.1a and it is working... but when I tried to mount a share from my windows 2000, it happened I don't have smbmount!!!! do you know what happens? I compiled it with configure make make install Do I need a option for compile smbmount.c??? I hope U can helpme pleas?
2010 Aug 12
1
building libvirt-0.8.3 for windows ( with dlls )
...ary doesn't exist. Should I get another XDR lib? The command I run: $ ./configure --with-esx --without-sasl --without-avahi --without-polkit --without-python --without-xen --without-qemu --without-lxc --without-o penvz --without-libvirtd the last 10 lines of configure: checking for mntent.h... no checking net/ethernet.h usability... no checking net/ethernet.h presence... no checking for net/ethernet.h... no checking linux/magic.h usability... no checking linux/magic.h presence... no checking for linux/magic.h... no checking for xdrmem_create in -lportablexdr... no checking for libra...
2011 Nov 22
0
[PATCH] kinit: Add ability to mount filesystems via /etc/fstab or cmdline
...anged, 104 insertions(+), 2 deletions(-) diff --git a/usr/kinit/do_mounts.c b/usr/kinit/do_mounts.c index 3ffac91..5d36385 100644 --- a/usr/kinit/do_mounts.c +++ b/usr/kinit/do_mounts.c @@ -7,6 +7,7 @@ #include <string.h> #include <unistd.h> #include <inttypes.h> +#include <mntent.h> #include "do_mounts.h" #include "kinit.h" @@ -199,12 +200,97 @@ mount_root(int argc, char *argv[], dev_t root_dev, const char *root_dev_name) return ret; } +int do_cmdline_mounts(int argc, char *argv[]) +{ + int arg_i; + + for (arg_i = 0; arg_i < argc; arg_i++)...
2015 Oct 23
0
Re: [PATCH] Added btrfs support for vfs_min_size.
...> diff --git a/daemon/fs-min-size.c b/daemon/fs-min-size.c > index 4f93f8c..cb67b6f 100644 > --- a/daemon/fs-min-size.c > +++ b/daemon/fs-min-size.c > @@ -21,16 +21,57 @@ > #include <stdio.h> > #include <stdlib.h> > #include <unistd.h> > +#include <mntent.h> > +#include <sys/stat.h> > +#include <sys/types.h> > > #include "daemon.h" > #include "actions.h" > > +static char* > +get_mount_point (const char *device) > +{ This function now exists in daemon/mount.c and here. It should be s...
2012 Mar 08
3
[PATCH 0/3] kinit: Allow mount options
This patch series allows user-specified mount commands to be sent in via kernel command line ("kinit_mount=...") or via an embedded /etc/fstab file. The first patch is a cleanup of a patch sent last November by San Mehat (http://web.archiveorange.com/archive/v/EazJNBMORV2U7E0coh5h); the next two are small improvements or bug fixes.
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...tlinux/main.c b/extlinux/main.c index 55a1495..b7cdf92 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -1044,12 +1044,12 @@ err: } #ifndef __KLIBC__ -static const char *find_device(const char *mtab_file, dev_t dev) +static char *find_device(const char *mtab_file, dev_t dev) { struct mntent *mnt; struct stat dst; FILE *mtab; - const char *devname = NULL; + char *devname = NULL; bool done; mtab = setmntent(mtab_file, "r"); @@ -1131,7 +1131,7 @@ static const char *find_device(const char *mtab_file, dev_t dev) * On newer Linux kernels we can use sy...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
...tlinux/main.c b/extlinux/main.c index 55a1495..7bb7443 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -1044,12 +1044,12 @@ err: } #ifndef __KLIBC__ -static const char *find_device(const char *mtab_file, dev_t dev) +static char *find_device(const char *mtab_file, dev_t dev) { struct mntent *mnt; struct stat dst; FILE *mtab; - const char *devname = NULL; + char *devname = NULL; bool done; mtab = setmntent(mtab_file, "r"); @@ -1131,7 +1131,7 @@ static const char *find_device(const char *mtab_file, dev_t dev) * On newer Linux kernels we can use sy...
2009 Nov 14
2
[PATCH] btrfs-progs: Check mount status of multidevice filesystems
...R); + root = open_ctree(file, 0, O_RDWR, 1); root->fs_info->alloc_start = alloc_start; ret = make_root_dir(root); diff --git a/utils.c b/utils.c index 2f4c6e1..60c3f24 100644 --- a/utils.c +++ b/utils.c @@ -31,6 +31,8 @@ #include <fcntl.h> #include <unistd.h> #include <mntent.h> +#include <linux/loop.h> +#include <limits.h> #include "kerncompat.h" #include "radix-tree.h" #include "ctree.h" @@ -586,46 +588,105 @@ error: return ret; } +int is_loop_device (const char *device) { + struct stat statbuf; + + if(stat(device,...
2005 Dec 15
2
Patch: More of kqueue() support.
...C AC_C_INLINE -AM_PROG_LIBTOOL +AC_PROG_LIBTOOL AM_ICONV -AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h \ +AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h time.h \ sys/uio.h sys/sysmacros.h sys/resource.h sys/select.h libgen.h \ - sys/quota.h sys/fs/ufs_quota.h ufs/ufs/quota.h mntent.h sys/mnttab.h) - -# check posix headers -AC_CHECK_HEADERS(sys/time.h) + sys/quota.h sys/fs/ufs_quota.h ufs/ufs/quota.h mntent.h sys/mnttab.h \ + sys/event.h sys/time.h) AC_ARG_ENABLE(ipv6, [ --enable-ipv6 Enable IPv6 support (default)], @@ -54,13 +53,14 @@ AC_ARG_WITH(mem-align,...
2002 Jun 14
1
groupname gid with blank char in file /etc/fstab
...sers'. I've added the following line to my /etc/fstab file for the win2k share to be mounted at system boot: //DERVER/SHARE /mnt/smb smbfs credentials=/home/toto/.smbpw,uid=toto, gid='Domain users',fmask=664,dmask=775 0 0 But the mount command failed with error: | [mntent]: line 9 in /etc/fstab is bad | mount: can't find /mnt/smb in /etc/fstab or /etc/mtab This because the groupname gid contains blank char, ' or ". It wokfs fine if I replace 'Domain Users' wih 10000 (toto numeric gid). Any idea of how to use username/groupname uid/gid with bla...
2005 Mar 11
1
select.h not working on ia64
__FD_SET, __FD_CLR, __FD_ISSET, __FD_ZERO are inside of __KERNEL__ in: include/asm-ia64/posix_types.h and therefore not available. I've added stuff like this to our code: #ifndef __FD_SET #define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d)) #endif but it would be nice if this can be solved in klibc. Thanks, Kay