| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:to:from:subject:date:message-id:references | |
| :mime-version:content-type:content-transfer-encoding; q=dns; s= | |
| default; b=ncfO1eDb6VYWfvGot7taptVlMC0Ly7bRIiDoWzEqA6UQFiB7y9IkW | |
| 9US1yff4GK8gb9kHiKisRHGPautUF4w5mCHAQz0urZgg2fFnB0IyNFqY0MQZU9X+ | |
| RgKZwlDISd2y76OfvyiHoNkjkHEboj7OqWR4KRtWka7TMHTUkl2ZCw= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:to:from:subject:date:message-id:references | |
| :mime-version:content-type:content-transfer-encoding; s=default; | |
| bh=R7tjx7Ue8g541euk0uTM8sXeWoA=; b=UhIlhN0wpN8eFWoyuYusp9C2K9VY | |
| vCCCPpNWH5G0/wsxSZAyh8rhdrmFVtaPJfFzlaWSPGEWcMWwD5AO4NVyAcmjVvyL | |
| bqvzXJUAvz9ncZvsCLCUONYwi0vSAhdulBfFaAiyGquKlc+QOe/dZbfdNvCXL+Yt | |
| IHa3SL/CA4CBh9o= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=1.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_NONE,SPF_FAIL autolearn=no version=3.3.2 |
| X-HELO: | plane.gmane.org |
| To: | cygwin AT cygwin DOT com |
| From: | Matthias Meyer <matthias DOT meyer AT gmx DOT li> |
| Subject: | Re: How to read ntfs_reparse_data |
| Followup-To: | gmane.os.cygwin |
| Date: | Fri, 13 Sep 2013 19:14:36 +0200 |
| Lines: | 61 |
| Message-ID: | <l0vh5k$bui$1@ger.gmane.org> |
| References: | <l0qodr$5cn$1 AT ger DOT gmane DOT org> <473536895 DOT 20130912015738 AT mtu-net DOT ru> <l0t81p$6te$1 AT ger DOT gmane DOT org> <243576293 DOT 20130913015334 AT mtu-net DOT ru> |
| Mime-Version: | 1.0 |
| User-Agent: | KNode/4.4.11 |
| X-IsSubscribed: | yes |
Andrey Repin wrote: > Greetings, Matthias Meyer! > >>>> I've installed cygwin 1.7.20 on my Windows7 and try to get reparse data >>>> of a junction point: >>>> getfattr -h -e hex -n system.ntfs_reparse_data >>>> /cygdrive/C/Users/Default\ User but I get an error: >>>> /cygdrive/C/Users/Default User: system.ntfs_reparse_data: Not supported >>> >>>> If I mount the drive in Linux with ntfs-3g it will work. I get: >>>> # file: /cygdrive/C/Users/Default User >>>> system.ntfs_reparse_data=0x030000a0f00000000000760078006e005c.... >>> >>>> Anyone knows this "problem"? Is there a(nother) way to get the >>>> system.ntfs_reparse_data? Maybee with a windows program? >>> >>>> I'ld like to restore a junction point within Linux/ntfs-3g. >>> >>> http://www.cygwin.com/ >>> The first four paragraphs. >>> TL;DR: You're looking the wrong way. > >> Thanks for the answer but it doesn't help me ;) > > Ok, I can give you another answer, more detailed, but I have no idea, how > much more usable, as I'm no expert in low-level NTFS specifics. > I can imagine Cygwin tools being able to read, store and restore > OS-specific file attributes, but I doubt these attributes have any use > outside OS. I.e., I was unable to use NTFS junction point under Linux. But not me ;) If I can get the reparse data of a junction and store it in a backup I'm able to boot a PC into Linux and recreate the junction-point. That's my goal. > Junction was to a second partition of the same drive, so there's no > possibility of missing partitions or similar mistakes on my part. ntfs-3g > just doesn't work the same way, as native Windows NTFS driver. Maybee I missunderstood what you are saying. My english isn't well too :) But ntfs-3g supports the reparse data. I can read (getfattr) the reparse data and I can create (setfattr) junctions too. Unfortunatly it seems that getfattr didn't read the reparse data in cygwin environment. > > Oh, also... Are you sure you have full low-level access to partition in > question? I.e., it is not blocked by antivirus, or UAC? > No, I'm not sure. In the meantime I find fsutil.exe and tried: C:\> cd \Users\meyer C:\> fsutil Cookies Error: Access is denied. But than I tried: C:\> mklink /J test C:\Users\meyer\AppData\Roaming\....\Cookies C:\> fsutil test and this will work. I get my reparse data :) I will see if I can reuse this data with setfattr. br Matthias -- Don't Panic -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |