[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ntfs-cvs
Subject: [Linux-NTFS-cvs] CVS: ntfsprogs/ntfsprogs ntfsmount.c,1.110,1.111
From: Yura Pakhuchiy <yura () delta357 ! server4you ! de>
Date: 2007-03-13 18:52:04
Message-ID: E1HRC6O-00040A-A9 () delta357 ! server4you ! de
[Download RAW message or body]
Changes by: yura
Update of /cvs/linux-ntfs/ntfsprogs/ntfsprogs
In directory delta357:/tmp/cvs-serv15353/ntfsprogs
Modified Files:
ntfsmount.c
Log Message:
ntfsmount: use utimens() instead of deprecated utime().
Index: ntfsmount.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/ntfsprogs/ntfsmount.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -p -r1.110 -r1.111
--- ntfsmount.c 7 Jan 2007 19:19:53 -0000 1.110
+++ ntfsmount.c 13 Mar 2007 18:52:02 -0000 1.111
@@ -1120,7 +1120,7 @@ static int ntfs_fuse_rmdir(const char *p
return ntfs_fuse_rm(path);
}
-static int ntfs_fuse_utime(const char *path, struct utimbuf *buf)
+static int ntfs_fuse_utimens(const char *path, const struct timespec ts[2])
{
ntfs_inode *ni;
@@ -1129,10 +1129,10 @@ static int ntfs_fuse_utime(const char *p
ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
if (!ni)
return -errno;
- if (buf) {
- ni->last_access_time = buf->actime;
- ni->last_data_change_time = buf->modtime;
- ni->last_mft_change_time = buf->modtime;
+ if (ts) {
+ ni->last_access_time = ts[0].tv_sec;
+ ni->last_data_change_time = ts[1].tv_sec;
+ ni->last_mft_change_time = ts[1].tv_sec;
} else {
time_t now;
@@ -1468,7 +1468,7 @@ static struct fuse_operations ntfs_fuse_
.rename = ntfs_fuse_rename,
.mkdir = ntfs_fuse_mkdir,
.rmdir = ntfs_fuse_rmdir,
- .utime = ntfs_fuse_utime,
+ .utimens = ntfs_fuse_utimens,
.destroy = ntfs_fuse_destroy,
#ifdef HAVE_SETXATTR
.getxattr = ntfs_fuse_getxattr,
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-NTFS-cvs mailing list
Linux-NTFS-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-ntfs-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic