Displaying 16 results from an estimated 16 matches for "fattr".
Did you mean:
attr
1998 Oct 31
0
Linux 2.1.126 kernel smbfs SMBwrite 2x speed improvement
...98
+++ linux/fs/smbfs/proc.c Sat Oct 31 02:48:31 1998
@@ -25,6 +25,9 @@
#include <asm/string.h>
+#include <asm/page.h>
+#define SMB_ST_BLKSIZE (PAGE_SIZE)
+
#define SMBFS_PARANOIA 1
/* #define SMBFS_DEBUG_TIMESTAMP 1 */
/* #define SMBFS_DEBUG_VERBOSE 1 */
@@ -1224,7 +1227,7 @@
fattr->f_nlink = 1;
fattr->f_uid = server->mnt->uid;
fattr->f_gid = server->mnt->gid;
- fattr->f_blksize = 512;
+ fattr->f_blksize = SMB_ST_BLKSIZE;
}
static void
@@ -1234,7 +1237,7 @@
if (fattr->attr & aDIR)
{
fattr->f_mode = server->mnt->dir_mod...
2000 Jun 28
1
[Patch] Shorter patch for smbfs 2.2.16
...else if (mnt->version & SMB_FIX_DIRATTR)
+ printk("SMBFS: Using dir ff getattr\n");
/*
* Keep the super block locked while we get the root inode.
@@ -501,7 +510,9 @@
if ((attr->ia_valid & ATTR_ATIME) != 0)
{
fattr.f_atime = attr->ia_atime;
- changed = 1;
+ /* Earlier protocols don't have an access time */
+ if (server->opt.protocol >= SMB_PROTOCOL_LANMAN2)
+ changed = 1;
}
if (changed)
{
Index: fs/smbfs/proc....
2005 Jan 04
0
[2.6 patch] smbfs: make some functions static
...ll/fs/smbfs/proto.h.old 2005-01-04 00:57:42.000000000 +0100
+++ linux-2.6.10-mm1-full/fs/smbfs/proto.h 2005-01-04 01:00:11.000000000 +0100
@@ -25,7 +25,6 @@
extern int smb_proc_flush(struct smb_sb_info *server, __u16 fileid);
extern void smb_init_root_dirent(struct smb_sb_info *server, struct smb_fattr *fattr,
struct super_block *sb);
-extern void smb_decode_unix_basic(struct smb_fattr *fattr, struct smb_sb_info *server, char *p);
extern int smb_proc_getattr(struct dentry *dir, struct smb_fattr *fattr);
extern int smb_proc_setattr(struct dentry *dir, struct smb_fattr *fattr);
extern int...
2002 Jul 27
6
mode=777 does not work as fstab option
I need to mount a samba share as mode 777, so all users can
read/write/delete/create.
I have this as fstab entry
//host/public /mnt/home smbfs
auto,uid=user,umask=000,defaults,username=Perkins,password=
see, i've had to put uid=user just to get it owned by user user, so i could
edit files
i put mode=777, but it does nothing.
i want to let all users read/write/create/delete
2015 Jul 07
2
Bug in ast_frame_adjust_volume in 12.2.0?
...a SIGSEGV at ast_slinear_saturated_multiply at the line:
351 res = (int) *input * *value;
It's called from ast_frame_adjust_volume.
The frame looks like:
(gdb) print *f
$6 = {frametype = AST_FRAME_VOICE, subclass = {integer = 100021, format = {
id = AST_FORMAT_SLINEAR16, fattr = {format_attr = {
0 <repeats 64 times>}, rtp_marker_bit = 0 '\000'}}}, datalen = 0,
samples = 320, mallocd = 1, mallocd_hdr_len = 1076, offset = 64,
src = 0x51623b0 "func_jitterbuffer interpolation", data = {ptr = 0x0,
uint32 = 0, pad = "\000\000\0...
2014 Oct 18
1
Asterisk Crashes Randomly with Cepstral Swift TTS
...results = '\000' <repeats 19 times>
u = 0x7f7974001dc0
f = 0x7f7928f9a4c0
next = {tv_sec = 6014649, tv_usec = 21020457123253}
ps = 0x7f79740165e0
parse = 0x7f7928f9a230 "413 E 3RD ST"
old_writeformat = {id = 687449040, fattr = {format_attr =
{32633, 5184330, 0, 687448768, 32633, 5710841, 0, 48, 48, 687448992,
32633, 687448800, 32633, 1946162544, 0, 1946162544, 32633, 8448136, 0,
84, 0, 4294967292, 0, 687449104, 32633, 5827993, 0, 84, 0, 1717986919,
1717986918, 8448135, 0, 5623124, 0, 687449040, 32633, 5630801, 0, 9...
2011 Sep 06
1
Inconsistent md5sum of replicated file
I was wondering if anyone would be able to shed some light on how a file
could end up with inconsistent md5sums on Gluster backend storage.
Our configuration is running on Gluster v3.1.5 in a distribute-replicate
setup consisting of 8 bricks.
Our OS is Red Hat 5.6 x86_64. Backend storage is an ext3 RAID 5.
The 8 bricks are in RR DNS and are mounted for reading/writing via NFS
automounts.
2001 Mar 23
0
[linux-lvm] EXT2-fs panic (device lvm(58,0)):
..._ISREG (inode->i_mode)) {
diff -ru linux-2.4.3p6/fs/smbfs/inode.c linux-2.4.3p6-aed/fs/smbfs/inode.c
--- linux-2.4.3p6/fs/smbfs/inode.c Fri Mar 23 10:54:53 2001
+++ linux-2.4.3p6-aed/fs/smbfs/inode.c Fri Mar 23 10:57:06 2001
@@ -65,7 +65,7 @@
if (!result)
return result;
result->i_ino = fattr->f_ino;
- memset(&(result->u.smbfs_i), 0, sizeof(result->u.smbfs_i));
+ /* The inode->u struct is zeroed for us by new_inode() */
smb_set_inode_attr(result, fattr);
if (S_ISREG(result->i_mode)) {
result->i_op = &smb_file_inode_operations;
diff -ru linux-2.4.3p6/fs/u...
2023 Jan 12
2
Fwd: Can Samba just store ACL information (without interpreting it) without AD?
...ZPAR%
/LOG+:%log%
When I do the same to my Samba, I get a lot of "ERROR 5 (0x00000005)
Changing File Attributes" errors.
I run Samba on ZFS on Linux in a container, Proxmox based. xattrs seem to work:
root at nas2:/mp0/storage/backup# touch userattr
root at nas2:/mp0/storage/backup# setfattr -n user.steffen -v washere userattr
# file: userattr
user.steffen="washere"
but not for security:
root at nas2:/mp0/storage/backup# touch secattr
root at nas2:/mp0/storage/backup# setfattr -n security.NTACL -v 1 secattr
setfattr: secattr: Operation not permitted
(the same works on the...
1998 Nov 15
0
Performance Tuning advice [tracked down]
...n95, using mapped drive: 0:52 (872 kb/sec)
In point (2) Try using 'cat x >y' instead of 'cp'. There's a performance problem
in kernel which can be fixed by tweaking reported filesystem blocksize
constant 1024 to 4096 in
/usr/src/linux/fs/smbfs/proc.c/smb_init_dirent()/fattr->f_blksize=1024;
I wrote about it to samba@samba.anu and linux-kernel@vger but with
no response. :-(
> Obviously, when just doing raw data transfer - i.e. not opening and
> closing a bunch of files - Samba is coming close to FTP in speed. Some
> further testing with different mixes...
2013 Jun 29
0
rake db:create giving undefined method `' for nil:NilClass
My ruby version is 1.8.7
I have installed mysql-essential-5.0.90-win32
and using Fedena 2.3.5
List of all gems installed:*
columnize (0.3.6)
declarative_authorization (0.5.1)
fattr (2.2.1)
ffi (1.9.0)
gem_plugin (0.2.3)
highline (1.6.19)
i18n (0.4.2)
metaclass (0.0.1)
mime-types (1.23)
mocha (0.14.0)
mongrel (1.1.5)
mysql (2.8.1)
net-ping (1.6.0)
prawn (0.6.3)
prawn-core (0.6.3)
prawn-format (0.2.3)
prawn-layout (0.3.2)
prawn-security (0.1.1)
rack (1.5.2, 1.0.1)
rack-protecti...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...******************/
-NTSTATUS can_delete(connection_struct *conn, char *fname, uint32 dirtype, BOOL bad_path, BOOL check_is_at_open)
+NTSTATUS can_delete(connection_struct *conn, char *fname, uint32 dirtype, BOOL bad_path, BOOL check_is_at_open, BOOL can_defer)
{
SMB_STRUCT_STAT sbuf;
uint32 fattr;
@@ -1938,7 +1938,7 @@
FILE_OPEN,
0,
FILE_ATTRIBUTE_NORMAL,
- 0,
+ can_defer ? 0 : INTERNAL_OPEN_ONLY,
NULL);
if (!fsp) {
@@ -1960,7 +1960,7 @@
code.
****************************************************************************/
-NTSTATUS unlink_internals(co...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...******************/
-NTSTATUS can_delete(connection_struct *conn, char *fname, uint32 dirtype, BOOL bad_path, BOOL check_is_at_open)
+NTSTATUS can_delete(connection_struct *conn, char *fname, uint32 dirtype, BOOL bad_path, BOOL check_is_at_open, BOOL can_defer)
{
SMB_STRUCT_STAT sbuf;
uint32 fattr;
@@ -1938,7 +1938,7 @@
FILE_OPEN,
0,
FILE_ATTRIBUTE_NORMAL,
- 0,
+ can_defer ? 0 : INTERNAL_OPEN_ONLY,
NULL);
if (!fsp) {
@@ -1960,7 +1960,7 @@
code.
****************************************************************************/
-NTSTATUS unlink_internals(co...
2009 Apr 07
12
Problem with MYSQL after re-installing rails
Hey all-
Re-installed OSX yesterday and with it, Ruby and Rails
Now when I try to run db:migrate I get the error message:
"!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.
Rake aborted!
no such file to load -- mysql"
So, I try sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
And get:
2003 Dec 01
0
No subject
...Yes, yes! I'm happy not to be alone :-)
Urban kindly provided this fix that worked for me in 2.2.16
--- fs/smbfs/proc.c.orig Wed Sep 20 23:54:27 2000
+++ fs/smbfs/proc.c Wed Sep 20 23:56:59 2000
@@ -1453,6 +1453,11 @@
static void
smb_finish_dirent(struct smb_sb_info *server, struct smb_fattr *fattr)
{
+ /* workaround for win95 giving back a volume label and not a directory
+ if there is a dir with the same name as the volume label. sigh. */
+ if ((server->mnt->version & SMB_FIX_WIN95) && (fattr->attr & aVOLID))
+ fattr->attr |= aDIR;
+
fattr...
2003 Dec 01
0
No subject
...-pre6 kernel but it should be possible to make the
same changes to whatever kernel you use.
The changes are to smb_proc_close_inode.
/Urban
--- linux-2.4.7-pre6-orig/fs/smbfs/proc.c Wed Jul 4 17:09:28 2001
+++ linux/fs/smbfs/proc.c Fri Jul 13 13:15:37 2001
@@ -1111,6 +1111,12 @@
struct smb_fattr fattr;
smb_get_inode_attr(ino, &fattr);
smb_proc_setattr_ext(server, ino, &fattr);
+
+ /* set the archive bit if we modified the file */
+ if (ino->flags & SMB_F_LOCALWRITE) {
+ fattr.attr |= aARCH;
+ smb_proc_setattr(server, ino, &fattr);
+ }
}
result...