Does FileDescriptor.sync() guarantees across different platforms

Looking at the docs: http://docs.oracle.com/javase/6/docs/api/java/io/FileDescriptor.html#sync%28%29 I would like to learn if, regardless of the platform, once the call returns (successfully), both the data and meta-data for the file have been stored to the physical disk (ignoring any cache on the disk, for the sake of completeness). I am especially concerned about the file size attribute. On Linux, this seems to be the case (by invoking fsync()), but I can't tell about the behavior on Windows (or Mac). Do the attributes mentioned in "all modified data and attributes of this FileDescriptor have been written to the relevant device" include size?
I would appreciate any insight on these matters.

I don't see any reason why 'attributes' would exclude size. It's easy enough to test.

Similar Messages

  • Syncing iTunes across Different Platforms (Windws & PC) - Mac Version

    I'm not sure where to put this questions so I'm adding it to the iTunes for Windows section as well. I have an iTouch that I have been using on my Windows platform iTunes. In addition to music, I also use iTunes to sync up my contacts and calendar list from Microsoft Office Outlook to my Touch.
    Last week I switched to Mac and ported all my music to a new iTunes libary on my Mac. Due to issues with Office I can not use the Mac ver of office for my contacts and calendar.
    I loaded VMware Fusion and Windows XP on my Mac and installed iTunes for Windows. I did not move any music, podcasts, etc... over to the Fusion/Windows iTunes - only my contacts and calendar info is on that version.
    Now I have two instances of iTunes on my Mac... a Mac version and a Windows version under Fusion.
    What I would like to do is:
    - Sync my iTouch for Music only using the iTunes running under Mac.
    - Sync my iTouch to the Windows version under Fusion for the contact list and calendar updates. This version will not have any music in the library.
    Questions:
    1) Can I do this without causing a melt down on my touch?
    2) What happens when you sync to a library without music? Does it erase the music on the touch?
    3) I haven't tried to sync my touch to the Mac yet- what will happen when a windows based touch tries to load a mac based iTunes?
    If this doesnt work I guess I could reload all my music to the Fusion(PC) version of iTunes and be done with it but I would really like to use my Mac version.
    Thanks,
    Jim

    You have got to be kidding! I have been trying for months to do this between my three machines. What exactly is the point to having an iTunes account for multiple machines if you can not have the same library across them? If this isn't the stupidest thing I've come across in years, honest to Pete...
    What if I use a thumb drive to keep the directories manually synced? Or does apple go the extra step to prevent this too? Can you point to a library through the intranet? I could just put up a server and point my machines to it, boy wouldn't that be speedy and elegant.
    I just want to scream this is so annoying. I might as well go back to a system that works, a Windows phone... The iPhone isn't that much nicer than my old tilt.

  • Syncing iTunes across Different Platforms (Windws & PC) - Windows Version

    Im not sure where to put this questions so I'm adding it to the iTunes for Mac secion as well. I have an iTouch that I have been using on my Windows platform iTunes. In addition to music, I also use iTunes to sync up my contacts and calendar list from Micosoft Office Oulook to my Touch.
    Last week I switched to Mac and ported all my music to a new iTunes libary on my Mac. Due to issues with Office I can not use the Mac ver of office for my contacts and calendar.
    I loaded VMware Fusion and Windows XP on my Mac and installed iTunes for Windows. I did not move any music, podcasts, etc... over to the Fusion/Windows iTunes - only my contacts and calendar info is on that version.
    Now I have two instances of iTunes on my Mac... a Mac version and a Windows version under Fusion.
    What I would like to do is:
    - Sync my iTouch for Music only using the iTunes running under Mac.
    - Sync my iTouch to the Windows version under Fusion for the contact list and calendar updates. This version will not have any music in the library.
    Questions:
    1) Can I do this without causing a melt down on my touch?
    2) What happens when you sync to a library without music? Does it erase the music on the touch?
    3) I havent tried to sync my touch to the Mac yet- what will happen when a windows based touch tries to load a mac based iTunes?
    If this doesnt work I guess I could reload all my music to the Fusion(PC) version of iTunes and be done with it but I would really like to use my Mac version.
    Thanks,
    Jim

    You have got to be kidding! I have been trying for months to do this between my three machines. What exactly is the point to having an iTunes account for multiple machines if you can not have the same library across them? If this isn't the stupidest thing I've come across in years, honest to Pete...
    What if I use a thumb drive to keep the directories manually synced? Or does apple go the extra step to prevent this too? Can you point to a library through the intranet? I could just put up a server and point my machines to it, boy wouldn't that be speedy and elegant.
    I just want to scream this is so annoying. I might as well go back to a system that works, a Windows phone... The iPhone isn't that much nicer than my old tilt.

  • HT4191 Syncing Notes across different devices

    I seem to have separate Notes on iPhone, iPad and MacBook Pro although I would love to sync them across all of these. When I try to activate the Notes facility it keeps asking me to create an iCloud account, which I already have. When I try to enter my existing iCloud account it says, unsurprisingly, that "this address is already taken"??? I'm going round in ever decreasing circles, please help. Thank you.

    Hello Demo, I'm sorry if I seemed a little curt with your very welcome, helpful response. I wasn't intending to be rude.
    It obviously doesn't help that I'm a moron with Apple applications as I'm relatively new having come from many years of Windows platforms.
    The problem seems to lie in my having TWO iCloud email addresses: ***@iCloud.com and ***@me.com. When I first joined iCloud through 'mobile me' some time ago, I was still using a Toshiba laptop but had purchased my first Apple product, an iPhone. This required me applying for an Apple account with an iCloud.com suffix but I have NEVER used either as an email address. I still use my old hotmail.com address. I'm now thinking that it's probably best to ditch this and my iCloud.com email address and transfer everything over to my me.com email address? Is this feasible and easy to do?
    I'll understand totally if you just want to go and lie down in a darkened room! :-) Many thanks, Martin

  • [HOW TO] Sync contacts across different devices.

    Well recently ran into a problem, i had to get a new phone due iphone giving up the ghost, so switched to a Android device, now i wanted to transfer all my contacts over from my iphone to my android.
    I followed countless instructions, but always faced the same hurdles, itunes failed to sync my contacts to google via itunes, it just kept getting stuck in the enter pass word loop, which no one seems to be able to fix.
    I then tried adding an exchange account, but this also failed, it failed at the login, then even when i finally got it to login, it failed to sync with no user input to tell it to sync it was looking bleak.
    With frustration i tried adding a CardDAV account, this too kept failing on the varification process.
    At this point it seemed that OS was doing all it could to stop me syncing my contacts to move them to a new device.
    So i thought id search the App store for something that would do the job for me.
    And now im here.
    First off if you have faced the same issues as me, then please save your self a head ache and just do this.
    On your iphone > app store > search for NQ contacts sync.
    Download and install it.
    On your Adroid device > Play store > search NQ contacts sync.
    Download and install it.
    On your iphone, open NQ contacts that has now installed on your iphone, create new account, put in your email, and chose a password (not the same one you use for your email account) once created, drag your finger from the bottom of the screen (still in HQ) from the icon that shows your contacts, to the cloud on the top of the screen. this will transfer your contacts to NQ servers.
    On your Android device, sign in with the NQ account you just made. it will automatically sync your contacts to your android device.
    Job done.
    link for NQ contacts sync on appstore.
    https://itunes.apple.com/us/app/nq-contacts-sync/id450088684?mt=8
    Link for NQ contact sync on playstore.
    https://play.google.com/store/apps/details?id=com.netqin.contactbackup&feature=n av_result#?t=W10.
    Why it takes a third party app to actually do a hassle free contacts transfer is beyond me, between google and apple i was about to throw both phones out of the window and go back to using a note pad and a house phone, they have made it so complicated that it causes more hassle than its worth.
    And no i have nothing to do with NQ, i just found it so frigging easy to do something two major companys couldnt get wright in the first place i thought id share to help others out.

    Sorry for double post, doesnt seem to be an edit option, this also works both ways.

  • When using Alpha to outline photos in an ebook does it stay outlined across other platforms or programs

    I am creating an ebook in Keynote with animation, and some movies. Then I plan on publishing it with iAuthor. Then I want to publish it with other book sellers, i.e. Amazon and others. What are the concerns with everything working in the other platforms and what do I need to do? Also, I'm concerned about using the Alpha programs to outline photos. It does not seem to work after Alpha to save them into iphoto for reuse. What happens to those photos when going to another device, program. Do they stay outlined? Any help you can offer would be appreciated. Thanks

    Tom -
    In Keystone I have some art that apprear in the image and text and they stay there in playing after importing them into quicktime movie and placing them into iAuthor. When I preview them on the iPad they appear and then dissapear. The page goes back to the beginning after the movie is complete without the image. The page is to stay with the image while the reader finishes the page and then goes to the next. How can I get the  page to stat intact. All ideas appreciated.
    Thanks Jack

  • Using FTP to Mirror hard drives across different platforms

    Hello,
    I was wondering if anyone knows of an easy to use program that can mirror 2 external hard drives over the internet securely. My friend and I have been attempting to set up a system where my external is backed up to his computer and his to mine so that both hard drives are identical. He has winxp and I have OSX.
    I have done some research and this seems to be the easiest program that I can find:
    https://www.foldershare.com/info/aboutFoldershare.php?
    However, it states that it only supports g series macs and I am planning to update to an intel based mac in the very near future. (I would have done it already but apple is taking their sweet time updating the mini to c2d!)
    I have come across some other programs/applications that claim to do this such as:
    http://dirvish.org/
    http://www.cis.upenn.edu/%7Ebcpierce/unison/
    They all appear to be fairly techie to figure out and/or have week cross platform abilities. Any help you can offer would be greatly appreciated. Thanks for taking the time.

    "However, it states that it only supports g series macs"
    It should still work on Intel based Macs through the Rosetta translation engine.

  • Icloud bookmark plugin for chrome does not sync probably between different PCs

    The bookmarks I set on one of my PCs goes into a seperate folder on another PC, it seems a bug.
    I am using Google Chrome on Windows 7 Home 64-bit, which Simplified Chinese Locale.
    Regards,

    Hi Jonah,
    Have you tried going to Setting>iCloud and turning On the "Bookmarks" option with the Safari next to it?
    On all devices?
    This might help sync bookmarks between your devices.

  • How do I fix colour picker to work across different colour-managed monitors?

    Hey everyone!
    I'm assuming this problem I'm having stems from having colour-calibrated monitors, but let me know if I'm wrong!
    To preface, this is the setup I have:
    Windows 7
    3 monitors as follows, all have individual colour profiles calibrated using the Spyder 3
    Cintiq 12WX
    Dell U2410
    Dell 2409WFP
    Photoshop CS6 - Proofed with Monitor RGB, and tested with colour-managed and non-colour-managed documents
    I usually do most of my work on the Cintiq 12WX, but pull the photoshop window to my main monitor to do large previews and some corrections. I noticed that the colour picker wouldn't pick colours consistently depending on the monitor the Photoshop window is on.
    Here are some video examples:
    This is how the colour picker works on my Dell U2410: http://screencast.com/t/lVevxk5Ihk
    This is how it works on my Cintiq 12WX: http://screencast.com/t/tdREx4Xyhw9
    Main Question
    I know the Cintiq's video capture makes the picture look more saturated than the Dell's, but it actually looks fine physically, which is okay. But notice how the Cintiq's colour picker doesn't pick a matching colour. It was actually happening the opposite way for a while (Dell was off, Cintiq was fine), but it magically swapped while I was trying to figure out what was going on. Anyone know what's going on, and how I might fix it?
    Thanks for *any* help!
    Semi-related Question regarding Colour Management
    Colour management has always been the elephant-in-the-room for me when I first tried to calibrate my monitors with a Spyder colourimeter years ago. My monitors looked great, but Photoshop's colours became unpredictable and I decided to abandon the idea of calibrating my monitors for years until recently. I decided to give it another chance and follow some tutorials and articles in an attempt to keep my colours consistent across Photoshop and web browsers, at least. I've been proofing against monitor colour  and exporting for web without an attached profile to keep pictures looking good on web browsers. However, pictures exported as such will look horrible when uploaded to Facebook. Uploading pictures with an attached colour profile makes it look good on Facebook. This has forced me to export 2 versions of a picture, one with an attached colour profile and one without, each time I want to share it across different platform. Is there no way to fix this issue?
    Pictures viewed in Windows Photo Viewer are also off-colour, but I think that's because it's not colour managed... but that's a lesser concern.

    I think I've figured out the colour management stuff in the secondary question, but the weird eyedropper issue is still happening. Could just be a quirk from working on things across multiple monitors, but I'm hoping someone might know if this is a bug/artifact.
    Going to lay out what I inferred from my experiments regarding colour management in case other noobs like me run into the same frustrations as I did. Feel free to correct me if I'm wrong - the following are all based on observation.
    General Explanation
    A major source of my problems stem from my erroneous assumption that all browsers will use sRGB when rendering images. Apparently, most popular browsers today are colour-managed, and will use an image's embedded colour profile if it exists, and the monitor's colour profile if it doesn't. This was all well and good before I calibrated my monitors, because the profile attached to them by default were either sRGB or a monitor default that's close to it. While you can never guarantee consistency on other people's monitors, you can catch most cases by embedding a colour profile - even if it is sRGB. This forces colour-managed browsers to use sRGB to render your image, while non-colour-managed browsers will simply default to sRGB. sRGB seems to be the profile used by Windows Photo Viewer too, so images saved in other wider gamut colour spaces will look relatively drab when viewed in WPV versus a colour-managed browser.
    Another key to figuring all this out was understanding how Profile Assignment and Conversion work, and the somewhat-related soft-proofing feature. Under Edit, you are given the option to either assign a colour profile to the image, or convert the image to another colour profile. Converting an image to a colour profile will replace the colour profile and perform colour compensations so that the image will look as physically close to the original as possible. Assigning a profile only replaces the colour profile but performs no compensations. The latter is simulated when soft-proofing (View > Proof Colors or ctrl/cmd-Y). I had followed bad advice and made the mistake of setting up my proofing to Monitor Color because this made images edited in Photoshop look identical when the same image is viewed in the browser, which was rendering my images with the Monitor's colour profile, which in turn stemmed from yet another bad advice I got against embedding profiles .  This should formally answer Lundberg's bewilderment over my mention of soft-proofing against Monitor Colour.
    Conclusion and Typical Workflow (aka TL;DR)
    To begin, these are the settings I use:
    Color Settings: I leave it default at North American General Purpose 2, but probably switch from sRGB to AdobeRGB or  ProPhoto RGB so I can play in a wider gamut.
    Proof Setup: I don't really care about this anymore because I do not soft-proof (ctrl/cmd-Y) in this new workflow.
    Let's assume that I have a bunch of photographs I want to post online. RAWs usually come down in the AdobeRGB colour space - a nice, wide gamut that I'll keep while editing. Once I've made my edits, I save the source PSD to prep for export for web.
    To export to web, I first Convert to the sRGB profile by going to Edit > Convert to Profile. I select sRGB as the destination space, and change the Intent to either Perceptual or Relative Colorimetric, depending on what looks best to me. This will convert the image to the sRGB colour space while trying to keep the colours as close to the original as possible, although some shift may occur to compensate for the narrower gamut. Next, go to Save for Web. The settings you'll use:
    Embed Color Profile CHECKED
    Convert to sRGB UNCHECKED (really doesn't matter since you're already in the sRGB colour space)
    and Preview set to Internet Standard RGB (this is of no consequence - but it will give a preview of what the image will look like in the sRGB space)
    That's it! While there might be a slight shift in colour when you converted from AdobeRGB to sRGB, everything from then on should stay consistent from Photoshop to the browser
    Edit: Of course, if you'd like people to view your photos in glorious wide gamut in their colour-managed browsers, you can skip the conversion to sRGB and keep them in AdobeRGB. When Saving for Web, simply remember to Embed the Color Profile, DO NOT convert to sRGB, and set Preview to "Use Document Profile" to see what the image would look like when drawn with the embedded color profile

  • HT4236 Hello, does anyone have any advice on how to sort photos in an albumn on an Iphone by date of photo? I've ordered them all in my Pictures but then when I sync them across through Itunes, they all end up in a jumble on my phone. Thanks!

    Hello, does anyone have any advice on how to sort photos in an albumn on an Iphone by date of photo? I've ordered them all in my Pictures but then when I sync them across through Itunes, they all end up in a jumble on my phone. Thanks!

    When viewing an album on the iPhone you can tap "Photos" at the bottom and that will show all photos by date. Unfortunately though it is all photos, not just the album you are currently viewing.
    What I have done is the following. On the computer I have a main folder (e.g. iPhone photos) and then make sub-folders within that. Placing photos that will be synched to the iPhone into various subfolders gives quite a bit of organizational capablility. In iTunes when you select the main folder to sync, the sub-folders will show on the iPhone as separate albums. Beyond that, in one case where I really wanted a specific sort within an album I renamed the photos on the computer (something like A-picxxx, B-picxxx) so they sorted on the computer alphabetically in the order I want on the phone. That sort order was maintained after the sync.
    Note that each time you sync using iTunes, the non-Camera Roll pictures on the phone will be set to match the current iTunes settings/photos -- so you can experiment.

  • Any way to sync icalendar across 4 different iphones, each with a different icloud account?, Any way to sync icalendar across 4 different iphones, each with a different icloud account?

    Basically the subject describes my question. Any way to sync icalendar across 4 iphones? so each of us could access the app, change an event time, location, etc. and it would edit across all 4 devices. Any pointers would be super helpful. thanks

    You can share an iCloud calendar. Easiest way... log into icloud.com from a browser on your computer. Go to the calendar. Create a calendar to share. Click the little wifi-looking sharing icon next to the calendar name, invite the people you want to share it with, and Bob's your uncle.

  • On My Mac folders Synchronizing problems across different MACs

    I am getting frustrated dealing with synchronizing "On My Mac" folders across different MACs (I have 3, a laptop, a tower at home and one at office).
    Let's just talk about my tower and laptop. When I need to get going, I always sync files so my laptop will have the same info as my tower. Before i sync tower/laptop, on my tower, I would transfer mail from the mail server to my local hard drive in "On My Mac" folders. I would then run a sync program to sync "On My Mac" folders between tower & laptop. Unfortunatly, when new mail files are loaded to the laptop, the mail program DOES NOT SEEM to automatically view the new mail "1234.emlx" file. The solution would be to run the "Rebuild" function. When that happens, sure, all the new mail loaded on my laptop becomes visible. But the repercussion is that Mail reconfigures and renumbers the original "1234.emlx" file to say "9876.emlx" file.
    Well, guess what, when I have to sync my laptop with my tower again, the files in the tower now have to erase the "1234.emlx" files and have to load the "9876.emlx" files and the "Rebuild" button has to be engaged again, which would then again create a new file sequence "5432.emlx." Good gracious!!!!
    And that's just sync between my tower and laptop. What about my third machine, the one at the office?? It gets confusing, and I end up losing mail. It's absurd.
    Engineers at Apple, do the steps I describe above sound Apple-esque?? I hope you find a simple way to synch "On My Mac" folders, and might I hope you would even find a way to sync Pop mail??!! And whats the point of calling it full sync if .mac cannot give me the option of synching "On My Mac" mail??
    Thanks
    Power PC Tower   Mac OS X (10.4.7)  
    Power PC Tower   Mac OS X (10.4.7)  

    Synchronization of local mail data between computers by means of a file synchronization utility is a really bad idea if more than one computer is allowed to access mail between synchronizations.
    The most prominent issue is that Mail keeps a reference to every message within the ~/Library/Mail/ folder in a global Envelope Index file. If this file is modified in more than one computer between synchronizations, there is no way a file synchronization utility can handle the situation properly.
    Another, more subtle, and potentially more dangerous issue, is that Mail may use different *.emlx sequence numbers to name the same message in different computers or, worse yet, the same sequence number to name different messages in different computers. Again, the only thing a file synchronization utility can do about it is either overwrite files with the same name (thus potentially losing data) or not synchronize them at all.
    Mail data "synchronization" at the filesystem level can only be done reliably if it's a one-way operation, i.e. if the entire contents of the Mail folder in one of the computers are overwritten by the entire contents of the other, and even then it may not work properly because of the issues described here:
    Mac Backup Software Harmful
    This is not an Apple thing, not even a Mail thing. You would encounter similar issues with any other mail client. The only reliable way to achieve mail synchronization between computers is using an IMAP account and storing mail on the server -- that's precisely what IMAP is for.

  • Sync mailboxes across macs

    Hey,
    Just wondering if it is possible to sync mailboxes across macs without having to subscribe to .mac?? Is it possible if they are on the same network but NOT connected to the internet??
    Crazy

    There are 2 different things at work here:
    The .Mac Mail sync does not sync the contents of mailboxes that exist on your Mac. It only syncs Mail rules and Mail preferences across different Macs. It does not sync messages.
    IMAP or .Mac type access to .Mac email account. If all of your folders exist on the .Mac mail server and you have your Mac configured to access the .Mac mail account as a .Mac type or IMAP type, you will be able to see the same messages in those folders regardless of which Mac you are at.

  • How do I sync audiobooks across to my iPhone?

    Can anyone tell me how I am supposed to sync audiobooks across to my iPhone?
    I have a whole bunch of them, and they are all plain old MP3 files, with a .mp3 file extension, but I have changed the "Media Kind" for them, by selecting File > Get Info, and then choosing the Options tab. Under there, I change Media Kind from "Music" to "Audiobook".
    Having done that, they do all show up under the Audiobooks section in iTunes on my Mac.
    I have my iPhone set to auto-sync, ie: "Manually manage music and videos" is unchecked.
    I have "Sync only checked songs and videos" checked, and the relevant individual audiobooks that I do want to copy across are checked.
    I just want a few at a time, so I only have a few checked.
    Needless to say, Apple doesn't supply an Audiobook tab when viewing the iPhone settings in iTunes when the iPhone is plugged in.
    I have plenty of space left on my iPhone. I do not get any error messages when attempting to sync. iTunes on my mac has no problems locating the files. But still, the audiobooks will not copy across.
    The only way I can get them to copy across is to create a playlist for them, copy them from the Audiobooks section into this playlist, then go under the iPhone's settings/preferences when it's plugged in, and check this new playlist that I've created.
    Then they will copy across to the iPhone.
    But that's a bit of a hack-job. Is there no way to "correctly" copy across an audiobook to an iPhone?
    I am running the latest versions of everything:
    Mac OS X 10.5.5
    iTunes 8.0.2
    iPhone OS 2.2.1

    I'm such an idiot...
    Well, actually, I'm not entirely to blame on this one...
    I just figured out that Apple has buried an "Audiobook playlist" checkbox under the Music tab in the iPhone's settings / preferences.
    I didn't have this "playlist" checked.
    So even though the individual audiobooks themselves were checked, because the main playlist itself was not, nothing was copying across.
    So I'm the fool for not noticing the box wasn't checked — but can you blame me when Apple decides to hide the "Audiobooks" section under the "Music" tab instead of in its own dedicated tab, like they do with "Video", "Podcasts", etc.
    Why does "Podcasts" get its own section, but "Audiobooks" doesn't?
    How is an audiobook any more like "music" than a podcast is?
    Now where's that rolls-eyes emoticon...?

  • Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.

    Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.
    Solutions?

    No, I never really found an easy solution.  I believe it is an issue with some corruption in the iTunes database on the specific device.  In my case, both my iPad and iPhone now show duplicate stream songs if viewed through iTunes on my Mac, but they show different songs.  A couple years ago I had a similar issue on my iPhone, and Apple support suggested I back up the phone, completely reset it, and then restore it from the backup.  It did work, so I imagine it would probably work for my current issues with the iPhone and iPad.  But resetting and restoring an iPad or iPhone always makes me a little nervous that something will get lost.  When I did reset/restore the iPhone, I do have to say, the restore process was 100% perfect and I did not lose any data at all even though Apple support said I might.  If you try to go that route, I would suggest backing the device up both to a computer through iTunes, and to the iCloud so that you have a double backup.
    None of this really resolves the issue with how the iTunes databases are becoming corrupted on the apple devices though, so it is very likely to happen again until they fix it.  I have been unable to determine if there were any specific actions or conditions which caused the corruption to happen in the first place.
    Might be worth another call to Apple support, or dropping in the local Apple store if you have one near by.

Maybe you are looking for