search for: endmntent

Displaying 20 results from an estimated 26 matches for "endmntent".

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 length for rootpath DHCP option...
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...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 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 length for rootpath DHCP option...
2015 Oct 22
2
[PATCH] Added btrfs support for vfs_min_size.
...tent: %s: %m\n", "/proc/mounts"); + exit (EXIT_FAILURE); + } + + while ((m = getmntent (fp)) != NULL) { + if (stat (m->mnt_fsname, &stat2) == 0) { + if (stat1.st_rdev == stat2.st_rdev) { + /* found it */ + path = strdup (m->mnt_dir); + endmntent (fp); + return path; + } + } + } + + endmntent (fp); + reply_with_error ("device not mounted: %s", device); + return NULL; +} + int64_t do_vfs_minimum_size (const mountable_t *mountable) { int64_t r; - /* How we set the label depends on the filesystem type...
2000 Jul 31
0
[patch] smbmount fixes for samba-2.0.7, testers wanted!
...NTED_TMP, "w")) == NULL) { - fprintf(stderr, "Can't open " MOUNTED_TMP ": %s\n", - strerror(errno)); + DEBUG(0,("Can't open " MOUNTED_TMP ": %s\n", + strerror(errno))); endmntent(mtab); return; } @@ -262,21 +256,21 @@ endmntent(mtab); if (fchmod (fileno (new_mtab), S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) < 0) { - fprintf(stderr, "Error changing mode of %s: %s\n", - MOUNTED_TMP, strerro...
2001 Nov 06
0
[PATCH] nomtab support
...{ - fprintf(stderr, "Can't write mount entry"); - return 1; - } - if (fchmod(fileno(mtab), 0644) == -1) - { - fprintf(stderr, "Can't set perms on "MOUNTED); - return 1; - } - endmntent(mtab); + if ((mtab = setmntent(MOUNTED, "a+")) == NULL) { + fprintf(stderr, "Can't open " MOUNTED); + return 1; + } - if (unlink(MOUNTED"~") == -1) - { - fprintf(stderr, "Can't remove "MOUNTED"~"); -...
2006 May 10
1
Floating Point Exception
I have a Fedora Core server running: Fedora Core release 4 (Stentz) kernel version: 2.6.15-1.1833_FC4smp ( I have also tried kernel version: 2.6.16-1.2108_FC4smp) I compiled the ocfs2 and ocfs2-tools using the following steps: # MODULES: tar zxvpf ocfs2-1.2.1.tar.gz cd ocfs2-1.2.1 ./configure make make install # TOOLS: tar zxf ocfs2-tools-1.2.1.tar.gz cd ocfs2-tools-1.2.1 ./configure
2015 Oct 23
0
Re: [PATCH] Added btrfs support for vfs_min_size.
...;); > + exit (EXIT_FAILURE); > + } > + > + while ((m = getmntent (fp)) != NULL) { > + if (stat (m->mnt_fsname, &stat2) == 0) { > + if (stat1.st_rdev == stat2.st_rdev) { > + /* found it */ > + path = strdup (m->mnt_dir); > + endmntent (fp); > + return path; > + } > + } > + } > + > + endmntent (fp); > + reply_with_error ("device not mounted: %s", device); > + return NULL; > +} > + > int64_t > do_vfs_minimum_size (const mountable_t *mountable) > { >...
2012 Mar 09
5
[PATCH 0/5] Fixes to resize2fs (RHBZ#755729, RHBZ#801640)
https://bugzilla.redhat.com/show_bug.cgi?id=755729 This bug reports that the error message printed by the resize2fs API calls (which comes directly from the resize2fs command) says: Please run 'e2fsck -f /dev/vda1' first. That command is not possible from guestfish (where it would be 'e2fsck-f' or 'e2fsck ... forceall:true'). Fixing that bug caused this bug:
2012 Mar 13
2
[PATCH 0/2] 'int' to 'size_t' changes
These two patches are probably not completely independent, but separating them is a lot of work. With *both* patches applied, all the tests and extra-tests pass. That's no guarantee however that there isn't a mistake, so I don't think this patch is a candidate for the 1.16 branch, until it's had a lot more testing in development. Rich.
2009 Nov 14
2
[PATCH] btrfs-progs: Check mount status of multidevice filesystems
...out_err; + else if(ret) break; + } else { + ret = -errno; + goto out_err; } + } else { + /* normal block device */ + if(is_same_blk_file(file, mnt->mnt_fsname) > 0) + break; } } @@ -634,6 +695,7 @@ int check_mounted(char *file) ret = 1; } +out_err: endmntent (f); return ret; } diff --git a/utils.h b/utils.h index 7ff542b..695686b 100644 --- a/utils.h +++ b/utils.h @@ -19,6 +19,12 @@ #ifndef __UTILS__ #define __UTILS__ +#define LOOP_MAJOR 7 + +#ifndef major +#define major(dev) ((dev) >> 8) +#endif + #define BTRFS_MKFS_SYSTEM_GROUP_SIZE (4...
2011 Jul 07
5
[PATCH 0/5] checkpatch cleanups
It seems checkpatch errors krept in, this is a first go. Next run will go into usr/kinit directory. No code changes, just codingstyle fixes (verified with size(3)). maximilian attems (5): [klibc] sleep: have argument on next line [klibc] readklink: remove unneeded braces [klibc] mount: whitespace policy [klibc] ls: fix various checkpatch complaints [klibc] tests: checkpatch fixlets
2011 Sep 23
0
ANNOUNCE: cifs-utils release 5.1 available for download
...08:19:33 2011 -0400 mtab: handle ENOSPC/EFBIG condition properly when altering mtab It's possible that when mount.cifs goes to append the mtab that there won't be enough space to do so, and the mntent won't be appended to the file in its entirety. Add a my_endmntent routine that will fflush and then fsync the FILE if that succeeds. If either fails then it will truncate the file back to its provided size. It will then call endmntent unconditionally. Have add_mtab call fstat on the opened mtab file in order to get the size of the file before...
2013 Aug 02
0
Wine release 1.7.0
...icode 6.2.0. libwine: Update the codepage tables to Unicode 6.2.0. libwine: Compress code page tables by merging identical sequences. d3d8/tests: Remove a todo from a test that succeeds. ddraw/tests: Remove a todo from a test that succeeds. ntdll: Use fclose instead of endmntent since we use fopen anyway. ntdll: Don't use TIOCGICOUNT if we don't have linux/serial.h to define the necessary struct. ntdll: Add context definitions missing from the Android NDK. loader: ELF hash table entries are always 32-bit on Linux. include: Android supports s...
2013 Dec 17
9
[PATCH] Btrfs-progs: receive: fix the case that we can not find subvolume
...ts", "r"); + if (f == NULL) + return ret; + while ((mnt = getmntent(f)) != NULL) { + if (strcmp(mnt->mnt_type, "btrfs")) + continue; + if (strcmp(mnt->mnt_dir, mnt_dir)) + continue; + *dev = strdup(mnt->mnt_fsname); + if (*dev) + ret = 0; + break; + } + endmntent(f); + + return ret; +} + /* This finds the mount point for a given fsid, * subvols of the same fs/fsid can be mounted * so here this picks and lowest subvol id diff --git a/utils.h b/utils.h index 00f1c18..9b2f79c 100644 --- a/utils.h +++ b/utils.h @@ -98,5 +98,6 @@ int btrfs_scan_lblkid(int...
2004 Jan 15
2
Installation Problem !!!
...king if struct dqblk has .dqb_fsoftlimit... no checking for long quotactl(int cmd, char *special, qid_t id, caddr_t addr)... yes checking mntent.h usability... yes checking mntent.h presence... yes checking for mntent.h... yes checking for setmntent... yes checking for getmntent... yes checking for endmntent... yes checking devnm.h usability... no checking devnm.h presence... no checking for devnm.h... no checking for devnm... no checking whether the sys_quota interface works... yes checking whether to use the new lib/sysquotas.c interface... no checking whether the old quota support works... yes check...
2013 Oct 25
8
[PATCH] btrfs: add framework to read fs info from btrfs-control
This adds ioctl BTRFS_IOC_GET_FSIDS which reads the fs info through the btrfs-control Signed-off-by: Anand Jain <anand.jain@oracle.com> --- fs/btrfs/super.c | 47 ++++++++++++++++++++++++++++++++++++++----- fs/btrfs/volumes.c | 33 ++++++++++++++++++++++++++++++ fs/btrfs/volumes.h | 2 + include/uapi/linux/btrfs.h | 19 +++++++++++++++++ 4 files changed,
2005 Aug 10
2
Compiling smbtorture
...(const char *path, int cmd, int id, char *addr)... no checking for CRAY int quotactl (char *spec, int request, char *arg)... no checking mntent.h usability... yes checking mntent.h presence... yes checking for mntent.h... yes checking for setmntent... yes checking for getmntent... yes checking for endmntent... yes checking devnm.h usability... no checking devnm.h presence... no checking for devnm.h... no checking for devnm... no checking whether the old quota support works... yes checking whether to use the old quota support... no checking whether to support utmp accounting... yes checking chosen man...
2010 Feb 04
3
3.3 and 3.4 compile failure on dbwrap
...cial, qid_t id, caddr_t addr)... no checking for int quotactl(const char *path, int cmd, int id, char *addr)... no checking for CRAY int quotactl (char *spec, int request, char *arg)... no checking for mntent.h... (cached) no checking for setmntent... no checking for getmntent... yes checking for endmntent... no checking devnm.h usability... no checking devnm.h presence... no checking for devnm.h... no checking for devnm... no checking whether the old quota support works... no checking whether to support utmp accounting... yes checking whether to use shared libraries internally... true checking wheth...
2004 Jun 02
0
Re: samba Digest, Vol 18, Issue 3
...l(const char *path, int cmd, int id, char *addr)... no checking for CRAY int quotactl (char *spec, int request, char *arg)... no checking mntent.h usability... yes checking mntent.h presence... yes checking for mntent.h... yes checking for setmntent... yes checking for getmntent... yes checking for endmntent... yes checking devnm.h usability... no checking devnm.h presence... no checking for devnm.h... no checking for devnm... no checking whether the old quota support works... yes checking whether to use the old quota support... no checking whether to support utmp accounting... yes checking chosen man...
2004 Jun 02
0
SAMBA 3.0.4 on AIX 5.2 configure usability question?
...l(const char *path, int cmd, int id, char *addr)... no checking for CRAY int quotactl (char *spec, int request, char *arg)... no checking mntent.h usability... yes checking mntent.h presence... yes checking for mntent.h... yes checking for setmntent... yes checking for getmntent... yes checking for endmntent... yes checking devnm.h usability... no checking devnm.h presence... no checking for devnm.h... no checking for devnm... no checking whether the old quota support works... yes checking whether to use the old quota support... no checking whether to support utmp accounting... yes checking chosen man...