Web lists-archives.com

Re: [Samba] (DeviceIoControl, FSCTL_SET_SPARSE)




-----Original Message-----
Subject: Re: [Samba] (DeviceIoControl, FSCTL_SET_SPARSE)

I wanted to also mention, that during this sparse write, I have captured the strace, which shows the file attributes specifically that it is trying to pass.  

I see a difference, for e.g. I see that its st_size is 0 for the file that’s causing the failure, which this is a tmp sparse file so the application can add a placeholder for the file, so that it can do a fail safe copy I presume.  (also turning off the fail safe file copy doesn’t help).

Strace below for one of several PID's that were running. Not sure if the results will be the same on all pids, or why I even see multiple PID's for smb when I run ps -ax.  Note, the trace I copied the portion that goes all the way from the previous file's filename portion, to the following filename, so that you can place yourself in the log.  Also note, the first file copied in successfully.  Also note, the program is designed now to delete file if found, then add new.  Also note, the file does exist, and if the other files exist, it only complains when they are sparse, and ONLY these .tmp files are the sparse files, not sure really why they are there to be honest with you, if fail-safe copy mode is off....    
------------------------
newfstatat(8, "MSIAfterburnerSetup.zip", {st_mode=S_IFREG|0744, st_size=40376862, ...}, 0) = 0
fcntl(21, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=35036, len=1}) = 0
fcntl(21, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=35036, len=1}) = 0
newfstatat(8, "MPC-HCPortable_1.7.10.paf.exe", {st_mode=S_IFREG|0744, st_size=12670432, ...}, 0) = 0
fcntl(21, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=38448, len=1}) = 0
fcntl(21, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=38448, len=1}) = 0
newfstatat(8, "esetsmartinstaller_enu.exe", {st_mode=S_IFREG|0744, st_size=2870984, ...}, 0) = 0
fcntl(21, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=21484, len=1}) = 0
fcntl(21, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=21484, len=1}) = 0
newfstatat(8, "My Family Tree.zip.ffs_tmp", {st_mode=S_IFREG|0544, st_size=0, ...}, 0) = 0
fcntl(21, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=11552, len=1}) = 0
fcntl(21, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=11552, len=1}) = 0
newfstatat(8, "2006-2008", {st_mode=S_IFDIR|0755, st_size=9, ...}, 0) = 0
fcntl(21, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=6300, len=1}) = 0
fcntl(21, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=6300, len=1}) = 0
newfstatat(8, "kodi-16.1-Jarvis.exe", {st_mode=S_IFREG|0744, st_size=87266194, ...}, 0) = 0
fcntl(21, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=34432, len=1}) = 0
fcntl(21, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=34432, len=1}) = 0
newfstatat(8, "expressBuilder.tar.gz", {st_mode=S_IFREG|0744, st_size=1055704, ...}, 0) = 0
 



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba