Displaying 20 results from an estimated 23 matches for "mnt_dir".
2009 Jan 28
3
mount.cifs is not working (smbclient does work), somekind of recursive content in mount-dir
...all,
When I try to make a connection to our windows server with smbclient:
smbclient //server/dira/dirb/dirc -U username -W workgroup
Password: *****
I get a working ftp-like connection to our data.
When I try to make the same connection with mount.cifs:
mount.cifs //server/dira/dirb/dirc /mnt/mnt_dir -o user=877790
dom=workgroup
Password: *****
I get a mount to a location which appears to be //server/dir, but with
some kind of recursive content, similar to //server/dir in each
subdirectory:
/mnt/mnt_dir contains:
dira
dira2
dira3
/mnt/mnt_dir/dira also contains:
dira
dira2
dira3
Further dow...
2007 Nov 16
8
[PATCH 0/6] Add online resize for ocfs2-tools,take 1
Add online resize in tunefs.ocfs2 so that user can increase
the volume when it is mounted.
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,
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.
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
...while ((mnt = getmntent(mfp)) != NULL) {
if (mnt->mnt_fsname && !strncmp(mnt->mnt_fsname, "no", 2))
continue;
+ if (type && mnt->mnt_type && strcmp(type, mnt->mnt_type))
+ continue;
printf("%s on %s", mnt->mnt_fsname, mnt->mnt_dir);
if (mnt->mnt_type != NULL && mnt->mnt_type != '\0')
printf (" type %s", mnt->mnt_type);
@@ -136,6 +138,9 @@ int main(int argc, char *argv[])
}
} while (1);
+ if (optind == argc)
+ print_mount(type);
+
/*
* If remount, bind or move was specifi...
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:
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...while ((mnt = getmntent(mfp)) != NULL) {
if (mnt->mnt_fsname && !strncmp(mnt->mnt_fsname, "no", 2))
continue;
+ if (type && mnt->mnt_type && strcmp(type, mnt->mnt_type))
+ continue;
printf("%s on %s", mnt->mnt_fsname, mnt->mnt_dir);
if (mnt->mnt_type != NULL && mnt->mnt_type != '\0')
printf (" type %s", mnt->mnt_type);
@@ -136,6 +138,9 @@ int main(int argc, char *argv[])
}
} while (1);
+ if (optind == argc)
+ print_mount(type);
+
/*
* If remount, bind or move was specifi...
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.
2011 Jul 12
0
[PATCH]: Use a general way to get the default subvolume for btrfs
...return subvol;
+}
+
int install_file(const char *path, int devfd, struct stat *rst)
{
if (fs_type == EXT2 || fs_type == VFAT)
@@ -546,19 +809,9 @@ static const char *find_device(const char *mtab_file, dev_t dev)
if (!strcmp(mnt->mnt_type, "btrfs") &&
!stat(mnt->mnt_dir, &dst) &&
dst.st_dev == dev) {
- char *opt = strstr(mnt->mnt_opts, BTRFS_SUBVOL_OPT);
-
- if (opt) {
- if (!subvol[0]) {
- char *tmp;
-
- strcpy(subvol, opt + sizeof(BTRFS_SUBVOL_OPT) - 1);
- tmp = strchr(subvol, 32);
- if (tmp)
- *tmp =...
2015 Oct 22
2
[PATCH] Added btrfs support for vfs_min_size.
...(stderr, "setmntent: %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...
2019 Jan 18
0
[klibc:master] mount_main: Fix empty string check
...ab3cb71..0d299c4 100644
--- a/usr/utils/mount_main.c
+++ b/usr/utils/mount_main.c
@@ -43,9 +43,9 @@ static __noreturn print_mount(char *type)
if (type && mnt->mnt_type && strcmp(type, mnt->mnt_type))
continue;
printf("%s on %s", mnt->mnt_fsname, mnt->mnt_dir);
- if (mnt->mnt_type != NULL && mnt->mnt_type != '\0')
+ if (mnt->mnt_type != NULL && *mnt->mnt_type != '\0')
printf(" type %s", mnt->mnt_type);
- if (mnt->mnt_opts != NULL && mnt->mnt_opts != '\0')
+ if (mnt-&g...
2008 Jul 23
2
[RFC] klibc add minimal mntent.h
...T_H 1
+
+#define MNTTYPE_IGNORE "ignore" /* Ignore this entry. */
+#define MNTTYPE_SWAP "swap" /* Swap device. */
+
+/* Structure describing a mount table entry. */
+struct mntent
+{
+ char *mnt_fsname; /* Device or server for filesystem. */
+ char *mnt_dir; /* Directory mounted on. */
+ char *mnt_type; /* Type of filesystem: ufs, nfs, etc. */
+ char *mnt_opts; /* Comma-separated options for fs. */
+ int mnt_freq; /* Dump frequency (in days). */
+ int mnt_passno; /* Pass number for `fsck'. */
+};
+
+#endif /* mntent.h */
2011 Aug 30
0
[PATCH] include: [mntent.h] Add MNTTYPE_SWAP definition
...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 "swap"
+
struct mntent {
char *mnt_fsname; /* name of mounted file system */
char *mnt_dir; /* file system path prefix */
--
1.7.5.4
2011 Nov 22
0
[PATCH] kinit: Add ability to mount filesystems via /etc/fstab or cmdline
..._type,
+ flags, new_fs_opts)) {
+ fprintf(stderr, "Skipping failed mount '%s'\n",
+ fs_name);
+ }
+ }
+ return 0;
+}
+
+int do_fstab_mounts(FILE *fp)
+{
+ struct mntent *ent = NULL;
+
+ while ((ent = getmntent(fp))) {
+ if (!mount_block(ent->mnt_fsname,
+ ent->mnt_dir,
+ ent->mnt_type,
+ 0,
+ ent->mnt_opts)) {
+ fprintf(stderr, "Skipping failed mount '%s'\n",
+ ent->mnt_fsname);
+ }
+ }
+ return 0;
+}
+
int do_mounts(int argc, char *argv[])
{
const char *root_dev_name = get_arg(argc, argv, "root=");
co...
2013 Dec 17
9
[PATCH] Btrfs-progs: receive: fix the case that we can not find subvolume
...parent_subvol->path);
free(parent_subvol);
diff --git a/utils.c b/utils.c
index a92696e..da5291b 100644
--- a/utils.c
+++ b/utils.c
@@ -2194,6 +2194,34 @@ out:
return ret;
}
+/*
+ * Given mount point, this function will return
+ * its corresponding device
+ */
+int mnt_to_dev(const char *mnt_dir, char **dev)
+{
+ struct mntent *mnt;
+ FILE *f;
+ int ret = -1;
+
+ f = setmntent("/proc/self/mounts", "r");
+ if (f == NULL)
+ return ret;
+ while ((mnt = getmntent(f)) != NULL) {
+ if (strcmp(mnt->mnt_type, "btrfs"))
+ continue;
+ if (strcmp(mnt->mnt_dir,...
2015 Oct 23
0
Re: [PATCH] Added btrfs support for vfs_min_size.
...;, "/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...
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
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
Implement classless static routes support as specified in RFC3442.
Bug-Debian: https://bugs.debian.org/884716
Bug-Ubuntu: https://launchpad.net/bugs/1526956
Signed-off-by: Benjamin Drung <benjamin.drung at profitbricks.com>
---
usr/kinit/ipconfig/bootp_proto.c | 109 +++++++++++++++++++++++++++++++
usr/kinit/ipconfig/dhcp_proto.c | 1 +
usr/kinit/ipconfig/main.c | 54
2013 Apr 09
19
[PATCH 00/17] Btrfs-progs: some receive related patches
Most fixes are trivial.
The one from Alex is fixing a real bug that several users have reported.
Alex sent the patch half a year ago and it was not yet integrated.
The patch "Use /proc/mounts instead of /etc/mtab" is a repost.
The patch "btrfs-receive optionally honors the end-cmd" is a preparation
step to allow backup tools to multiplex a single communication stream
(e.g. a
2016 Nov 03
6
CTDB and locking issues in 4.4.6 (Classic domain)
On 03/11/16 19:37, Volker Lendecke wrote:
> On Thu, Nov 03, 2016 at 07:11:12PM +0000, Alex Crow via samba wrote:
>>
>> On 03/11/16 14:28, Ralph Böhme wrote:
>>>> Ah, my smb.conf is missing the "ctdb socket" parameter. According to "man
>>>> smb.conf" this should be set, but I don't remember seeing it on the wiki
>>>> pages.