How to access file system in  kernel?

hi
i need to access disk file system in kernel.
is it possible using UFS data structure and function in
other modules in kernel?
or i need to create file system access function based on DDI/DKI?

Short answer is "you cannot".
The longer one is "see topics in this forum" - there was an exhaustive discussion about this issue...
The thead "File I/O from withing a driver" in Driver Development forum may be of particular interest.
Hope this helps,
     Ilya.

Similar Messages

  • How i access file which stored at application server .? Is there any fm ?

    Hi,
    How i access file which stored at application server . Is there any function module which provide same funtinality.
    Regards,
    Gurprit Bhatia

    Hi ,
            U need to use datasets for reading data from application server.Do a f1 on dataset,u will get to know rest of the things.
    TRY.
        OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING UTF-8.
      ENDTRY.
      IF sy-subrc = 0.
          READ DATASET file INTO <wa_data> MAXIMUM LENGTH 200.
               move the data in to internal table
        close dataset
    Edited by: A kumar on Aug 21, 2008 1:37 PM

  • How to create file system datagrid in flex web application

    how to create file system datagrid in flex web application

    Hi,
    Check this out:
    http://shigeru-nakagaki.com/flex_samples/FileReference/FileUploadExample2/FileUploadExampl e2.html
    Johnny
    Please rate answer.

  • SVM with QFS and a don´t know how growing a File Systems

    Hello Experts
    Please, Could some help me. I have a SVM with QFS and a don´t know how growing a File Systems in this configuration.
    can someone help me or share me a doc that would help me to do it?
    Thanks a Lot
    Joao Paulo ( email address removed by moderator so that you don't get spammed for all Eternity )

    I'm guessing that you mean a QFS file system built using SVM volumes? You want to grow a filesystem on these volumes?
    - How to grow the volumes depends on how they're built; this would require seeing either the command that built them or metastat -c for them. You have to expand each column of the volume equally if it is a striped volume type.
    - To extend the file system, you need to stop using it, edit the MCF properly to add the next extents, and then extend the file system. See the samgrowfs man page for details.
    I realize this isn't a definitive answer, but it's not possible to give you one without seeing the metastat output and the QFS MCF file.

  • Bought a mac for my sons bday present of eBay :( it starts up in osx utilities screen, iv never seen the actual desktop(launch pad) I dnt know how to access the systemI know the basics for start up but says to delete files so I can dwnload the software?

    AS above states the computer seems to run normally as far as turning it on, tabs & pages are fine. But I can't access the system to delete some files.. Which is what the 'error' keeps saying everytime I tr and download a helpful link/app or software.. The instal disc that seems to be stored on the comp says its mountain lion 10.8 install disk 'read only' & this is the only disc it gives me to select to startup.. I have the full software on USB as its very large.. So .. PLEASE TELL ME finally, 
    HOW to ... Access comp files to delete required memory for software install?? If this is the best option..
    HOW to ... Erase everything on computer & install 10.8 via USB?
    And when or what enables me to see and use this computer correctly..ie, launch pad? Etc..
    PLease reply back in 'normal terms' as I'm already exceeding my boundaries of imac knowledge

    First: no, you cannot use someone else's install DVD unless it is a retail version; all others are machine specific. It will not work and would be illegal.
    Is this what you bought?
    http://www.everymac.com/systems/apple/imac/specs/imac_cd_2.0_20.html
    IF that is correct, then you are not on 10.8 because the highest OS it can go to would be 10.6
    So, you'd either need the original install disks (preferred) or buy a retail Snow Leopard (10.6) - that is as high as you can go with that machine. And, your maximum RAM is 2 GB, so you couldn't go higher with the OS because of that either because it would not run well on 2 GB.
    If you do get 10.6, then I'd suggest increasing the RAM to the max. of 2 GB.
    If this is not the machine you got (maybe the seller just used any old box), then I'd suggest taking it to an Apple store/Genius Bar to have them sort out how to get out of this mess.

  • How to access file from AIX server to windows

    HI all,
    My question is how to represent file folder name of that server
    my file folder in AIX server and i want to access that file in window s machine.
    * is this the right way to represent the data folder in physical schema declaration
    file:///<aix server IP>/usr/oracledi/oracldi/data

    No, it is not. Filename magic alone will not do the job.
    AIX supports NFS (network file system) or you can use samba (implementation of the Microsoft SMB protocol to share resources in Un*x) .

  • How to access files in a jar file?

    Can anyone tell me how to access a file contained in my jar file?
    I have about 15 classes jarred and deployed as an applet. I want to include in the jar file some .gif files to be used as icons in a tree view. Rather than trying to access them locally with all the security headaches this brings, can I not simply jar them as resources and point to them in my code?
    Any help much appreciated,
    Thanks in advance,
    Chris

    Hello Chris,
    Please read this note taken directly from Sun, from their Java Tutorial/Creating a GUI with Swing/Using Other Swing Features/How to use Icons/Specifying the Image Source (whew!)
    Note:  Applets are supposed to be able to load images from JAR files.
    Currently, however, some browsers can't read images from a JAR file,
    although they do successfully get classes from a JAR file.
    With our applets, we currently hedge our bets by both putting
    the image files in the applet's archive file (the JAR file containing
    the applet's class files) and by putting the image files in the file
    system on the server.
    */So......Do you want to take a chance?
    -Ron

  • How to delete file systems from a Live Upgrade environment

    How to delete non-critical file systems from a Live Upgrade boot environment?
    Here is the situation.
    I have a Sol 10 upd 3 machine with 3 disks which I intend to upgrade to Sol 10 upd 6.
    Current layout
    Disk 0: 16 GB:
    /dev/dsk/c0t0d0s0 1.9G /
    /dev/dsk/c0t0d0s1 692M /usr/openwin
    /dev/dsk/c0t0d0s3 7.7G /var
    /dev/dsk/c0t0d0s4 3.9G swap
    /dev/dsk/c0t0d0s5 2.5G /tmp
    Disk 1: 16 GB:
    /dev/dsk/c0t1d0s0 7.7G /usr
    /dev/dsk/c0t1d0s1 1.8G /opt
    /dev/dsk/c0t1d0s3 3.2G /data1
    /dev/dsk/c0t1d0s4 3.9G /data2
    Disk 2: 33 GB:
    /dev/dsk/c0t2d0s0 33G /data3
    The data file systems are not in use right now, and I was thinking of
    partitioning the data3 into 2 or 3 file systems and then creating
    a new BE.
    However, the system already has a BE (named s10) and that BE lists
    all of the filesystems, incl the data ones.
    # lufslist -n 's10'
    boot environment name: s10
    This boot environment is currently active.
    This boot environment will be active on next system boot.
    Filesystem fstype device size Mounted on Mount Options
    /dev/dsk/c0t0d0s4 swap 4201703424 - -
    /dev/dsk/c0t0d0s0 ufs 2098059264 / -
    /dev/dsk/c0t1d0s0 ufs 8390375424 /usr -
    /dev/dsk/c0t0d0s3 ufs 8390375424 /var -
    /dev/dsk/c0t1d0s3 ufs 3505453056 /data1 -
    /dev/dsk/c0t1d0s1 ufs 1997531136 /opt -
    /dev/dsk/c0t1d0s4 ufs 4294785024 /data2 -
    /dev/dsk/c0t2d0s0 ufs 36507484160 /data3 -
    /dev/dsk/c0t0d0s5 ufs 2727290880 /tmp -
    /dev/dsk/c0t0d0s1 ufs 770715648 /usr/openwin -
    I browsed the Solaris 10 Installation Guide and the man pages
    for the lu commands, but can not find how to remove the data
    file systems from the BE.
    How do I do a live upgrade on this system?
    Thanks for your help.

    Thanks for the tips.
    I commented out the entries in /etc/vfstab, also had to remove the files /etc/lutab and /etc/lu/ICF.1
    and then could create the Boot Environment from scratch.
    I was also able to create another boot environment and copied into it,
    but now I'm facing a different problem, error when trying to upgrade.
    # lustatus
    Boot Environment           Is       Active Active    Can    Copy     
    Name                       Complete Now    On Reboot Delete Status   
    s10                        yes      yes    yes       no     -        
    s10u6                      yes      no     no        yes    -        Now, I have the Solaris 10 Update 6 DVD image on another machine
    which shares out the directory. I mounted it on this machine,
    did a lofiadm and mounted that at /cdrom.
    # ls -CF /cdrom /cdrom/boot /cdrom/platform
    /cdrom:
    Copyright                     boot/
    JDS-THIRDPARTYLICENSEREADME   installer*
    License/                      platform/
    Solaris_10/
    /cdrom/boot:
    hsfs.bootblock   sparc.miniroot
    /cdrom/platform:
    sun4u/   sun4us/  sun4v/Now I did luupgrade and I get this error:
    # luupgrade -u -n s10u6 -s /cdrom    
    ERROR: The media miniroot archive does not exist </cdrom/boot/x86.miniroot>.
    ERROR: Cannot unmount miniroot at </cdrom/Solaris_10/Tools/Boot>.I find it strange that this sparc machine is complaining about x86.miniroot.
    BTW, the machine on which the DVD image is happens to be x86 running Sol 10.
    I thought that wouldn't matter, as it is just NFS sharing a directory which has a DVD image.
    What am I doing wrong?
    Thanks.

  • How to access file from AIX server

    Hi ,
    I am facing a problem with Aix Machine .
    I want to access the file from AIX server machine .I am in Windows machine.
    Regards
    Raghava

    HI all,
    My question is how to represent file folder name of that server
    my file folder in AIX server and i want to access that file in window s machine.
    * is this the right way to represent the data folder in physical schema declaration
    file:///<aix server IP>/usr/oracledi/oracldi/data
    Regards
    Raghava
    Message was edited by:
    Raghava.java

  • How to set file system in WebLogic 6.0?

    I've been using WebLogic 5.1 and there I have a 'file system' declared in
    weblogic.properties file:
    weblogic.io.fileSystem.testFS=/home/test/testing
    Is there similar thing in version 6.0?
    I didn't find it from properties mapping table.
    I've been using it (the filesystem) to fetch files from the server.
    If there is some other way to get files from server to client I would
    appreciate any information.

    If you access your console , on the LHS you will
    find FileT3 option under Services section. From there
    you can File systems.
    Kumar
    Johannes Nurmi wrote:
    I've been using WebLogic 5.1 and there I have a 'file system' declared in
    weblogic.properties file:
    weblogic.io.fileSystem.testFS=/home/test/testing
    Is there similar thing in version 6.0?
    I didn't find it from properties mapping table.
    I've been using it (the filesystem) to fetch files from the server.
    If there is some other way to get files from server to client I would
    appreciate any information.

  • How to access files stored in a portal

    Hi All,
    I have a file stored in the root directory ..somewhere in root/portalapps/myfile.csv
    This is an xl file ...
    I want to read the contents of this file and write it on the screen..
    even though there is data in my file but i am not being able to read it..
    Below is the code i am using...
    Here pramFile is the corresponding file in the portal server
    //Code
    FileInputStream fis = null;
    BufferedInputStream bis = null;
    DataInputStream dis = null;
    try {
         fis = new FileInputStream(pramFile.getAbsolutePath());
    // Here BufferedInputStream is added for fast reading.
        bis = new BufferedInputStream(fis);
       dis = new DataInputStream(bis);
    // dis.available() returns 0 if the file does not have more lines.
       while (dis.readLine() != null) {
    // this statement reads the line from the file and print it to
    // the console.
                                       response.write("line is "+dis.readLine());
    // dispose all the resources after using them.
         fis.close();
         bis.close();
                    dis.close();
         } catch (FileNotFoundException e) {
         response.write("FileNotFoundException");
    e.printStackTrace();
         } catch (IOException e) {
    response.write("IOException");
         e.printStackTrace();
    //END
    Here dis.readLine() is giving null
    Kindly suggest if there is any mistake in my approach
    Thanks Sundeep

    Hello Sundeep,
    As the Root/Portalapps folder is not accessible, you can only specify yourFilePath to absolute path on your file system
    (ex: c:/...../Root/Portalapps/yourfile)
    Using file system absolute path is not at all a good idea as the application is not portable to other servers. So my suggesion is to keep this csv file in your Applications webresource path like: ROOT/portalapps/com.yourapplication/csvfile
    Now your csvfile is accessible like this: ".../irj/root/portalapps/com.yourapplication/csvfile"
    Here is example how to get Image which is in public path:
    IResource rs = componentRequest.getResource(IResource.IMAGE,
                   "../mimes/mypicture.gif");
    image.setSrc(rs.getResourceInformation().getURL(componentRequest));
    Greetings,
    Praveen Gudapati

  • How to accessing files in os and display as tree

    i have worked lot to access the files in os and display them as tree structure but could not suceed can any one help me

    * Light Development Java Library
    * Copyright (C) 2003, 2004 Ulrich Hilger
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    package com.lightdev.lib.ui;
    import javax.swing.JTree;
    import javax.swing.tree.TreePath;
    import java.io.File;
    public class JFileTree extends JTree {
      public JFileTree(File root) {
        super();
        FileTreeModel model = new FileTreeModel(root);
        this.setModel(model);
      public JFileTree() {
        this(new File(System.getProperty("user.home")));
      private String parsePath(TreePath treePath) {
        int pathSize = treePath.getPathCount();
        String path = null;
        for (int i = 0; i < pathSize; i++) {
          if (path == null) {
            path = treePath.getPathComponent(i).toString();
          else {
            path += File.separatorChar + treePath.getPathComponent(i).toString();
        return path;
      public String[] getSelectedUrls() {
        int treepathAmount = getSelectionCount();
        TreePath[] treePaths = getSelectionPaths();
        String[] stringSet = new String[treepathAmount];
        if (treepathAmount != 0) {
          for (int i = 0; i < treepathAmount; i++) {
            stringSet[i] = parsePath(treePaths);
    return stringSet;
    return null;
    * Light Development Java Library
    * Copyright (C) 2003, 2004 Ulrich Hilger
    * This program is free software; you can redistribute it and/or
    * modify it under the terms of the GNU General Public License
    * as published by the Free Software Foundation; either version 2
    * of the License, or (at your option) any later version.
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    * GNU General Public License for more details.
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software
    * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    package com.lightdev.lib.ui;
    import javax.swing.tree.TreeModel;
    import javax.swing.tree.TreePath;
    import javax.swing.event.TreeModelListener;
    import java.io.File;
    import com.lightdev.lib.io.CustomFile;
    public class FileTreeModel implements TreeModel {
      public FileTreeModel(File root) {
        this.root = root;
      public Object getRoot() {
        return root;
      public boolean isLeaf(Object node) {
        return ( (File) node).isFile();
      public int getChildCount(Object parent) {
        File[] children = ( (File) parent).listFiles();
        if (children == null)return 0;
        return children.length;
      public Object getChild(Object parent, int index) {
        File[] children = ( (File) parent).listFiles();
        if ( (children == null) || (index >= children.length)) {
          return null;
        return new CustomFile( (File) parent, children[index].getName());
      public int getIndexOfChild(Object parent, Object child) {
        File[] children = ( (File) parent).listFiles();
        if (children == null)return -1;
        String childname = ( (File) child).getName();
        for (int i = 0; i < children.length; i++) {
          if (childname.equals(children)) {
    return i;
    return -1;
    * this tree model is not intended to be editable which is why
    * this method is not implemented
    * @param path TreePath
    * @param newvalue Object
    public void valueForPathChanged(TreePath path, Object newvalue) {}
    * this tree model is not editable and does not fire events which is why
    * this method is not implemented
    * @param l TreeModelListener
    public void addTreeModelListener(TreeModelListener l) {
    * this tree model is not editable and does not fire events which is why
    * this method is not implemented
    * @param l TreeModelListener
    public void removeTreeModelListener(TreeModelListener l) {}
    * reference to this tree model's root node (a File)
    protected File root;

  • How to access files on internal hard drive

    My Macbook Pro didn't boot so, after I spoke to one of the Apple advisors, I reinstalled the Mavericks on an external HD I had.
    i Was advised that I will be able to access the files on my internal Hd and be able to copy all and saved them before reinstalling the whole computer/internal hd.
    I did what I was told, and after booting my computer through Mavericks which is on external hd I didn't manage to access the files.
    I went to recovery HD to check in disc utility whether my internal HD is still there and it is. And I can see the information about the HD, number of files and etc...
    does anyone have any idea how to access these files and copy them and save the HD somehow?
    make an image of Hd or something?
    I Made a Genius appointment on 19th and I really need the computer...
    help.

    I had some issues with permissions but I managed to sort it out.
    IM moving files separately, not Hd in whole..
    .Moved the desktop first to try if it works and it did.
    now Im moving the whole Home folder...
    IM hoping I wont have a problem moving the applications..?... my whole Adobe is it and I need it..
    SHall I use the Migration assistant later after reinstalling the internal drive...?
    Thank you so much!

  • Resized partitions how to fix file system to new size.

    So I had to resize my /boot partition which required me to resize my root partition. How do I fix the file system to match the new size of the partition?

    I do not understand why this was moved? This is not a new install, I was tuning my hooks to use systemd replaceing udev, autodetect and base.
    running
    mkinitcpio -p Linux
    resulted in an error that said there was not enough space. and that the image was probably not correctly made.
    I based my decision on the placement of the post by the following post which seemed to be in the same category.
    https://bbs.archlinux.org/viewtopic.php?id=173359
    Is there a place that provides a more narrow definition of topics that are acceptable for fourm categories?

  • JCA to access file system

    HI
    I am trying to setup the resource adapter for accessing the file system from ejb layer. Can somebody point me to some documentation or examples that can help me in settting it up.
    Thanks

    Short answer is "you cannot".
    The longer one is "see topics in this forum" - there was an exhaustive discussion about this issue...
    The thead "File I/O from withing a driver" in Driver Development forum may be of particular interest.
    Hope this helps,
         Ilya.

Maybe you are looking for