ntfsprogs: add 2.0.0
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 23 Feb 2011 21:07:18 +0000 (21:07 +0000)
committerTom Rini <tom_rini@mentor.com>
Wed, 23 Feb 2011 21:08:24 +0000 (14:08 -0700)
This recipe has been imported from O.S. Systems tree and hence starts
at revision r2.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/ntfsprogs/ntfsprogs/skip-erange-errors.patch [new file with mode: 0644]
recipes/ntfsprogs/ntfsprogs_2.0.0.bb [new file with mode: 0644]

diff --git a/recipes/ntfsprogs/ntfsprogs/skip-erange-errors.patch b/recipes/ntfsprogs/ntfsprogs/skip-erange-errors.patch
new file mode 100644 (file)
index 0000000..7292d77
--- /dev/null
@@ -0,0 +1,30 @@
+diff --git a/libntfs/attrib.c b/libntfs/attrib.c
+index a1fe954..c628d9d 100644
+--- a/libntfs/attrib.c
++++ b/libntfs/attrib.c
+@@ -550,8 +550,10 @@ int ntfs_attr_map_runlist_range(ntfs_attr *na, VCN from_vcn, VCN to_vcn)
+               (long long)from_vcn, (long long)to_vcn);
+       /* Map extent with @from_vcn. */
+-      if (ntfs_attr_map_runlist(na, from_vcn))
+-              goto err_out;
++      if (ntfs_attr_map_runlist(na, from_vcn)) {
++              if (errno != ERANGE)
++                      goto err_out;
++      }
+       for (rl = na->rl; rl->vcn <= to_vcn;) {
+               /* Skip not interesting to us runs. */
+@@ -4924,8 +4926,10 @@ static int ntfs_non_resident_attr_expand(ntfs_attr *na, const s64 newsize,
+               /* Map required part of runlist. */
+               if (ntfs_attr_map_runlist(na, na->allocated_size >>
+                                       vol->cluster_size_bits)) {
+-                      ntfs_log_error("Failed to map runlist.\n");
+-                      return -1;
++                      if (errno != ERANGE) {
++                              ntfs_log_error("Failed to map runlist.\n");
++                              return -1;
++                      }
+               }
+               /*
diff --git a/recipes/ntfsprogs/ntfsprogs_2.0.0.bb b/recipes/ntfsprogs/ntfsprogs_2.0.0.bb
new file mode 100644 (file)
index 0000000..b41985d
--- /dev/null
@@ -0,0 +1,15 @@
+DESCRIPTION = "NTFS utilies"
+HOMEPAGE = "http://www.linux-ntfs.org/"
+DEPENDS = "fuse"
+LICENSE = "GPLv2"
+PR = "r2"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/linux-ntfs/ntfsprogs-2.0.0.tar.bz2 \
+           file://skip-erange-errors.patch"
+
+SRC_URI[md5sum] = "2b39dece8897bc748f4ab4c40ec7699e"
+SRC_URI[sha256sum] = "ad36e19706c7303b10aa0a9bf2c2dd0309b91cd0171f1c9eb361d94a85017432"
+
+inherit autotools 
+
+EXTRA_OECONF += "--disable-gnome-vfs"