search for: s_iflnk

Displaying 20 results from an estimated 25 matches for "s_iflnk".

2024 Jun 07
1
missing msdfs referrals from samba directory listing: wrong order in smbd_dirptr_get_entry()?
07.06.2024 07:59, Michael Tokarev wrote: > 07.06.2024 07:54, Jeremy Allison wrote: >>> msdfs is broken in 4.19.? It worked fine in 4.18. > > This is not entirely true. Nope. Things are more interesting than that. I've a 4.19 installation where msdfs links works both in listing and when specified directly. There are 2 other installations of 4.19 where msdfs links
2010 Oct 08
1
patch for mysterious maildir symlink error
...may resolve the mysterious "Maildir: Symlink destination doesn't exist" errors. --- a/src/lib-storage/index/maildir/maildir-util.c +++ b/src/lib-storage/index/maildir/maildir-util.c @@ -91,7 +91,7 @@ { struct stat st; - if (lstat(path, &st) == 0 && (st.st_mode & S_IFLNK) != 0) { + if (lstat(path, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { /* most likely a symlink pointing to a nonexistent file */ mail_storage_set_critical(&mbox->storage->storage, "Maildir: Symlink destination doesn't exist: %s", path);
2010 Aug 13
26
DO NOT REPLY [Bug 7618] New: symlinks and --link-dest
https://bugzilla.samba.org/show_bug.cgi?id=7618 Summary: symlinks and --link-dest Product: rsync Version: 3.0.7 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: the_majkl at seznam.cz QAContact:
2000 Aug 18
0
[PATCH] Support symlinks in scp of openssh 2
...t = lstat(name, &stb); + } + else { + if ((fd = open(name, O_RDONLY, 0)) < 0) + goto syserr; + result = fstat(fd, &stb); + } + if (result < 0) { syserr: run_err("%s: %s", name, strerror(errno)); goto next; } switch (stb.st_mode & S_IFMT) { + case S_IFLNK: + /* readlink later */ + break; case S_IFREG: + if (fd < 0 && (fd = open(name, O_RDONLY, 0)) < 0) + goto syserr; break; case S_IFDIR: @@ -586,6 +606,7 @@ syserr: run_err("%s: %s", name, strerr } #define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|...
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
2005 Jul 12
1
problem mounting ocfs2: heartbeat
When attempting to mount the OCFS2 file system I'm getting the following error message: ocfs2_hb_ctl: Internal logic failure while starting heartbeat mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted" I followed the steps given in the users_guide: modprobe ocfs2_dlmfs mount -t configfs none /config mount -t ocfs2_dlmfs none /dlm o2cb_ctl
2000 Jan 27
0
service_ok, redux.
...0') > { > if (stat(iSERVICE(iService).szPath,&buf) == -1) > DEBUG(0,("ERROR: can't stat path %s in service %s.\n", > iSERVICE(iService).szPath, iSERVICE(iService).szService)); > else if (buf.st_mode != S_IFDIR && buf.st_mode != S_IFLNK) > DEBUG(0,("ERROR: Path %s in service %s isn't a directory.\n", > iSERVICE(iService).szPath, iSERVICE(iService).szService)); > } > > /* Contradictions in terms: */ 1789c1855 < DEBUG(0,( "WARNING: [%s] service MUST be printable!\n&quot...
2010 May 19
1
DO NOT REPLY [Bug 7438] New: rsync timeouts and stays in state D
...f the strace tracks on both the client and the server: client: ================= lstat("archives/private/sun-exploit-build/2009-August/date.html", 0x7fff4c604ec0) = -1 ENOENT (No such file or directory) lstat("archives/private/sun-exploit-build/2009-August/index.html", {st_mode=S_IFLNK|0777, st_size=11, ...}) = 0 lstat("archives/private/sun-exploit-build/2009-August/subject.html", 0x7fff4c604ec0) = -1 ENOENT (No such file or directory) lstat("archives/private/sun-exploit-build/2009-August/thread.html", 0x7fff4c604ec0) = -1 ENOENT (No such file or directory) se...
2009 May 29
1
[PATCH v2] klibc-utils: add simple ls
...*st, const char *path) +{ + char *fmt, *link_name; + int rc; + + switch (st->st_mode & S_IFMT) { + case S_IFBLK: putchar('b'); break; + case S_IFCHR: putchar('c'); break; + case S_IFDIR: putchar('d'); break; + case S_IFIFO: putchar('p'); break; + case S_IFLNK: putchar('l'); break; + case S_IFSOCK: putchar('s'); break; + case S_IFREG: putchar('-'); break; + default: putchar('?'); break; + } + putchar(STAT_ISSET(st->st_mode, S_IRUSR) ? 'r' : '-'); + putchar(STAT_ISSET(st->st_mode, S_IWUSR) ?...
2000 Jan 27
1
Proposed improvements to service_ok()
...0') > { > if (stat(iSERVICE(iService).szPath,&buf) == -1) > DEBUG(0,("ERROR: can't stat path %s in service %s.\n", > iSERVICE(iService).szPath, iSERVICE(iService).szService)); > else if (buf.st_mode != S_IFDIR && buf.st_mode != S_IFLNK) > DEBUG(0,("ERROR: Path %s in service %s isn't a directory.\n", > iSERVICE(iService).szPath, iSERVICE(iService).szService)); > } > > /* Contradictions in terms: */ 1789c1855 < DEBUG(0,( "WARNING: [%s] service MUST be printable!\n&quot...
2009 May 28
1
[PATCH] klibc-utils: add minils
...e_t max_siz = 128; + size_t sz; + char *fmt, *link_name; + + switch (st->st_mode & S_IFMT) { + case S_IFBLK: printf("b"); break; + case S_IFCHR: printf("c"); break; + case S_IFDIR: printf("d"); break; + case S_IFIFO: printf("p"); break; + case S_IFLNK: printf("l"); break; + case S_IFSOCK: printf("s"); break; + case S_IFREG: printf("-"); break; + default: printf("?"); break; + } + printf ("%s%s", + STAT_ISSET(st->st_mode, S_IRUSR) ? "r" : "-", + ST...
2008 Jan 25
3
symbolic links to root node
Hello, I have a question about the way Dovecot limits file system access. Currently we're using Dovecot 1.0.5 (Solaris 10). In some cases users have a symbolic link like "z: -> /" in their mail directory. As a result there are log entries like Jan 25 13:30:31 imap1 dovecot: [ID 107833 mail.error] IMAP(xyz):
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...ine EXT4_EXT_MAGIC 0xf30a -#define EXT4_EXTENTS_FLAG 0x00080000 +#define EXT4_EXT_MAGIC 0xf30a +#define EXT4_EXTENTS_FLAG 0x00080000 + +/* for EXT4 inline data */ +#define EXT4_INLINE_DATA_FLAG 0x10000000 /* * File types and file modes @@ -57,11 +59,8 @@ #define T_IFLNK (S_IFLNK >> S_IFSHIFT) #define T_IFSOCK (S_IFSOCK >> S_IFSHIFT) - #define ext2_group_desc_lg2size 5 - - /* * super block structure: * include/linux/ext2_fs.h @@ -168,7 +167,6 @@ struct ext2_group_desc { #endif *************************************************************************...
2001 Jan 23
11
cc & no 64bit int patches
Here are a couple of patches against the CVS (Jan 22 18:41 PST) Some C++ comments found their way into ssh.h The no64.patch puts ifdefs around buffer_get_int64() now in bufaux.[c,h] -- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net -------------- next part -------------- --- ssh.h.old Mon Jan 22 18:40:58 2001 +++ ssh.h Mon Jan 22 19:02:02 2001 @@ -25,8 +25,10 @@ # include
2011 May 11
8
[PATCH 1/4] Btrfs: map the node block when looking for readahead targets
If we have particularly full nodes, we could call btrfs_node_blockptr up to 32 times, which is 32 pairs of kmap/kunmap, which _sucks_. So go ahead and map the extent buffer while we look for readahead targets. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> --- fs/btrfs/ctree.c | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git
2011 Jun 01
12
[Bug 8201] New: rsync 3.0.8 destroys SELinux security context of symbolic links
https://bugzilla.samba.org/show_bug.cgi?id=8201 Summary: rsync 3.0.8 destroys SELinux security context of symbolic links Product: rsync Version: 3.0.8 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org
2010 Mar 20
2
[PATCH 4/4] btrfs-convert: split into convert/.
...de->i_mode & S_IFMT) { - case S_IFREG: - ret = create_file_extents(trans, root, objectid, &btrfs_inode, - ext2_fs, ext2_ino, datacsum, packing); - break; - case S_IFDIR: - ret = create_dir_entries(trans, root, objectid, &btrfs_inode, - ext2_fs, ext2_ino); - break; - case S_IFLNK: - ret = create_symbol_link(trans, root, objectid, &btrfs_inode, - ext2_fs, ext2_ino, ext2_inode); - break; - default: - ret = 0; - break; - } - if (ret) - return ret; - - if (!noxattr) { - ret = copy_extended_attrs(trans, root, objectid, &btrfs_inode, - ext2_fs, ext2_ino);...
2008 Jun 24
1
[RFC][PATCH] btrfs orphan code
...ist_empty(&fs_info->hashers)) { struct btrfs_hasher *hasher; diff -r 99b12e2db0f8 inode.c --- a/inode.c Wed Jun 18 20:50:41 2008 -0400 +++ b/inode.c Tue Jun 24 21:04:39 2008 -0400 @@ -76,6 +76,11 @@ static unsigned char btrfs_type_by_mode[ [S_IFSOCK >> S_SHIFT] = BTRFS_FT_SOCK, [S_IFLNK >> S_SHIFT] = BTRFS_FT_SYMLINK, }; + +static inline u8 btrfs_inode_type(struct inode *inode) +{ + return btrfs_type_by_mode[(inode->i_mode & S_IFMT) >> S_SHIFT]; +} int btrfs_check_free_space(struct btrfs_root *root, u64 num_required, int for_del) @@ -599,6 +604,130 @@...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...+#define XFS_DIR2_DATA_MAGIC 0x58443244U /* XD2D: multiblock dirs */ +#define XFS_DIR2_FREE_MAGIC 0x58443246U /* XD2F: free index blocks */ + +#define XFS_DIR2_NULL_DATAPTR ((uint32_t)0) + +/* File types and modes */ +#define S_IFMT 00170000 +#define S_IFSOCK 0140000 +#define S_IFLNK 0120000 +#define S_IFREG 0100000 +#define S_IFBLK 0060000 +#define S_IFDIR 0040000 +#define S_IFCHR 0020000 +#define S_IFIFO 0010000 +#define S_ISUID 0004000 +#define S_ISGID 0002000 +#define S_ISVTX 0001000 + +#define MAXPATHLEN 1024 +/* + * NOTE: The fields in the superblock are...
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...{ case S_IFREG: ret = create_file_extents(trans, root, objectid, &btrfs_inode, - ext2_fs, ext2_ino, &ext2_inode); + ext2_fs, ext2_ino); + break; + case S_IFDIR: + ret = create_dir_entries(trans, root, objectid, &btrfs_inode, + ext2_fs, ext2_ino); break; case S_IFLNK: ret = create_symbol_link(trans, root, objectid, &btrfs_inode, ext2_fs, ext2_ino, &ext2_inode); - break; - case S_IFDIR: - ret = create_dir_entries(trans, root, objectid, - &btrfs_inode, ext2_fs, ext2_ino); break; default: ret = 0; @@ -679,7 +691,8 @@ fail: /*...